-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
78 lines (66 loc) · 1.63 KB
/
popup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Respira durante 60 segundos</title>
<style>
body {
font-family: 'Arial', sans-serif;
text-align: center;
margin: 50px;
}
#counter-container {
font-size: 2em;
margin-bottom: 20px;
color: #333;
position: relative;
}
#counter {
display: inline-block;
padding: 10px;
background-color: #4CAF50;
color: white;
border-radius: 5px;
animation: pulse 1s infinite;
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
/* Set the width and height of the image */
img {
width: 300px; /* Set your desired width */
height: auto; /* Maintain aspect ratio */
}
</style>
</head>
<body>
<h1>Conta fins a 60 i respira fons</h1>
<div id="counter-container">
<div id="counter">60</div>
</div>
<script>
let seconds = 15;
function updateCounter() {
document.getElementById('counter').textContent = (seconds < 10) ? ("0" + seconds) : seconds;
}
function decrementCounter() {
seconds--;
updateCounter();
if (seconds <= 0) {
clearInterval(intervalId);
history.back();
}
}
updateCounter();
const intervalId = setInterval(decrementCounter, 1000);
</script>
<img src="images/forest_1.png" alt="Description of the image">
<p>...l'impuls no té conseqüències negatives, però el consum de pornografia dura sí.</p>
</body>
</html>