-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (44 loc) · 1.1 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
<!DOCTYPE html>
<html lang="es" class="dark">
<head>
<style>
:root{
color-scheme: dark;
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/paper.min.css"/>
<script>
var boton = 0;
function añadir() {;
boton++;
document.getElementById("puntos").innerHTML = boton;
};
function quitar() {;
boton--;
document.getElementById("puntos").innerHTML = boton;
};
</script>
<title>
Reto
</title>
</head>
<body >
<div class="paper container">
<center>
<button class="paper button shadow shadow-hover" onclick="añadir()">
Añadir
</button>
<button class="paper button shadow shadow-hover" onclick="quitar()">
Quitar
</button>
<br>
Clicks:
<p class="paper shadow shadow-hover" id="puntos">
0
</p>
</center>
</div>
</body>
</html>