-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (38 loc) · 1.28 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>qst?</title>
<link rel="stylesheet" href="styleag.css">
</head>
<body>
<div class="container">
<div>
<h1 class="ask">
أسمع نتاهذي درناها فالكور؟
</h1>
</div>
<div class="gif_container">
<a href="https://imgbb.com/"><img src="https://i.ibb.co/X3tddVM/Screenshot-2023-12-24-125735.png" alt="Screenshot-2023-12-24-125735" border="0"></a>
</div>
<div class="buttons">
<button class="btn" id="yesButton" onclick="nextPage()">YES </button=>
<button class="btn" id="noButton" onmouseover="moveButton()"> NO </button>
</div>
<script>
function nextPage()
{
window.location.href="yesag.html"
}
function moveButton()
{
var x=Math.random() * ( window.innerWidth - document.getElementById('noButton').offsetWidth);
var y= Math.random() * ( window.innerHeight - document.getElementById('noButton').offsetHeight);
document.getElementById('noButton').style.left=`${x}px`;
document.getElementById('noButton').style.top=`${y}px`;
}
</script>
</div>
</body>
</html>