Số bài đã giải: 69
Hạng điểm: #2120
Tổng điểm:
29,64
Đóng góp:
0
Đã tham gia 1 kỳ thi
Hạng rating: #1958
Rating: 1508
Min. rating: 1508
Max rating: 1508
Từ Trường THPT chuyên Nguyễn Huệ, Hà Nội
Thông tin
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Message Box</title> </head> <body> <h2 id="message"></h2>
<div id="vote" style="display: none;">
<p>Bạn thấy tôi đẹp trai không?</p>
<button onclick="voteYes()">Có (<span id="yesCount">0</span>)</button>
<button onclick="voteNo()">Không (<span id="noCount">0</span>)</button>
</div>
<script>
let yesVotes = 0;
let noVotes = 0;
function voteYes() {
yesVotes++;
document.getElementById("yesCount").innerText = yesVotes;
alert("Mình biết mà 😊");
}
function voteNo() {
noVotes++;
document.getElementById("noCount").innerText = noVotes;
alert("Vẫn đẹp hơn bạn mà 😢");
}
window.alert("Ấn OK đi");
window.alert("Ngoan lắm, ấn tiếp đi");
window.alert("Tốt lắm");
window.alert("Ấn nữa bị chửi đấy");
var result = confirm("Thích ăn chửi à");
if (result == true) {
alert("K nỡ chửi bạn");
document.getElementById("message").innerHTML =
'<h2><a href="https://www.youtube.com/@thethaoronaldo" style="font-size: 40px;">SUBSCRIBE</a></h2>';
} else {
alert("Đừng ấn OK nữa");
document.getElementById("message").innerHTML = "<h2 style='font-size: 30px;'>Chọn đi</h2>";
}
// Hiển thị bình chọn sau khi có dòng chữ xuất hiện
document.getElementById("vote").style.display = "block";
</script>
</body> </html>
Huy hiệu
Người dùng này không có huy hiệu nào.Lịch sử rating
, #