-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (45 loc) · 1.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./assets/css/styles.css" />
<title>Contador</title>
</head>
<body>
<div class="ex">
<h1>Olá, mundo!</h1>
<p>Este é o meu primeiro projeto Javascript.</p>
<p>Exercicio - 01 - Exemplo da Professora.</p>
<div id="counter">
<button name="subtrair" onclick="decrement()">-</button>
<span id="currentNumber">0</span>
<button name="adicionar" onclick="increment()">+</button>
</div>
</div>
<div class="ex">
<p>Exercicio - 02 - Implementar Usando médoto "addEventListener".</p>
<div id="counter02">
<button name="subtrair02" onclick="decrement02()" id="sub">-</button>
<span id="currentNumber02">0</span>
<button name="adicionar02" onclick="increment02()" id="som">+</button>
</div>
</div>
<div class="ex">
<p>Exercicio - 03 - Contador Limitado de -5 a 5 - Desabilita butão.</p>
<div id="counter03">
<button name="subtrair03" id="sub03" onclick="" >-</button>
<span id="currentNumber03">0</span>
<button name="adicionar03" id="som03" onclick="" >+</button>
</div>
<div class="ex">
<p>Exercicio - 04 - Contador Muda cor da Fonte qndo Numero Negativo</p>
<div id="counter04">
<button name="subtrair04" id="sub04" onclick="" >-</button>
<span id="currentNumber04">0</span>
<button name="adicionar04" id="som04" onclick="" >+</button>
</div>
</div>
<script src="./assets/js/scripts.js"></script>
</body>
</html>