-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (77 loc) · 1.97 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='es'>
<head>
<title>¿Ya me recibí? · fede.dm</title>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
<style>
body {
text-align: center ;
padding: 2rem;
margin: 0 auto;
}
</style>
</head>
<body>
<h1>¿Ya me recibí?</h1>
<h3 id='answer' style='color:red'>No</h3>
<button id="reload" onclick=reload()>¿y ahora?</button>
<div id="img" align="center" style="display: none;">
<img src="./photo.jpg" style="max-width: 80vw;"/>
</div>
<script>
function reload() {
let btn = document.getElementById('answer')
btn.innerHTML = `
<div class="hollow-dots-spinner" :style="spinnerStyle">
<div class="dot"></div>
<div class="dot"></div>
<div class="dot"></div>
</div>`
setTimeout(function () {
btn.innerHTML = "Si!";
btn.style = "color:forestgreen"
document.getElementById('reload').remove()
document.getElementById('img').style = "display: block"
}, 1500);
}
</script>
<style>
.hollow-dots-spinner, .hollow-dots-spinner * {
margin: 0 auto;
box-sizing: border-box;
}
.hollow-dots-spinner {
height: 15px;
width: calc(30px * 3);
}
.hollow-dots-spinner .dot {
width: 15px;
height: 15px;
margin: 0 calc(15px / 2);
border: calc(15px / 5) solid #ff1d5e;
border-radius: 50%;
float: left;
transform: scale(0);
animation: hollow-dots-spinner-animation 1000ms ease infinite 0ms;
}
.hollow-dots-spinner .dot:nth-child(1) {
animation-delay: calc(300ms * 1);
}
.hollow-dots-spinner .dot:nth-child(2) {
animation-delay: calc(300ms * 2);
}
.hollow-dots-spinner .dot:nth-child(3) {
animation-delay: calc(300ms * 3);
}
@keyframes hollow-dots-spinner-animation {
50% {
transform: scale(1);
opacity: 1;
}
100% {
opacity: 0;
}
}
</style>
</body>