-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (66 loc) · 2.41 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Te amo, cara!</title>
<link rel="icon" href="https://png.pngtree.com/png-vector/20210228/ourmid/pngtree-heart-ink-heart-outline-brush-effect-png-image_2976275.jpg">
<style>
body{
background-color: #9583B6;
}
.painel{
margin: auto;
background-color: white;
width: 500px;
height: 500px;
border-radius: 20px;
text-align: center;
padding-top: 50px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
#sim{
height: 40px;
width: 60px;
background-color: red;
border: 2px solid white;
border-radius: 10px;
color: white;
margin-left: -50px;
}
#nao{
position: absolute;
height: 40px;
width: 60px;
background-color: red;
border: 2px solid white;
border-radius: 10px;
color: white;
margin-left: 10px;
}
</style>
</head>
<body>
<div class="painel">
<h1> 6 meses juntos, comedora de uvinhas ❤️💜💕</h1>
<img src="https://gifman.net/wp-content/uploads/2019/06/ursinho-fofo-apaixonado.gif" alt="">
<h2>Aceita continuar namorando comigo? </h2>
<a href="https://youtu.be/gQY3Huhi75c?si=ywQ-ruo5zg6yo52R"><button id="sim" > Sim! </button></a>
<button onmouseover="fuja()" id="nao"> Não! </button>
</div>
<script>
function fuja(){
var botaoNao = document.getElementById("nao")
var larguraJanela = window.innerWidth;
var alturaJanela = window.innerHeight;
var maxX = larguraJanela - botaoNao.offsetWidth;
var maxY = alturaJanela - botaoNao.offsetHeight;
var aleatorioX = Math.floor(Math.random() * maxX);
var aleatorioY = Math.floor(Math.random() * maxY);
botaoNao.style.left = aleatorioX + "px";
botaoNao.style.top = aleatorioY + "px";
}
</script>
</body>
</html>