-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
61 lines (57 loc) · 1.73 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
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<script src="index.js"></script>
<link rel="stylesheet" href="style.css" />
<!-- <script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@emailjs/browser@3/dist/email.min.js">
</script>
<script type="text/javascript">
(function(){
emailjs.init("muUz-h4m7w4qbH_2P");
})();
</script> -->
</head>
<body>
<div class="container">
<div>
<h1 class="header_text">Oona, Will you go out on a Date with me?</h1>
</div>
<div class="gif_container">
<img
src="https://i.postimg.cc/pdNqPxx1/milk-and-mocha-cute.gif"
alt="Cute animated illustration"
/>
</div>
<div class="buttons">
<button class="btn" id="yesButton" onclick="nextPage()">Yes</button>
<button
class="btn"
id="noButton"
onmouseover="moveButton()"
onclick="moveButton()"
>
No
</button>
<script>
function nextPage() {
window.location.href = "yes.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>
</div>
<script src="index.js"></script>
</body>
</html>