-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpointscounter.html
More file actions
66 lines (63 loc) · 1.26 KB
/
pointscounter.html
File metadata and controls
66 lines (63 loc) · 1.26 KB
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
<!DOCTYPE html>
<html>
<head>
<meta lang="pt-BR">
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8">
<title>gc</title>
</head>
<body>
<div id="cont1" class="ver">
<div class="hor">
<div id="teaml" class="ver">
<h1 id="ptsl">0</h1>
<button type="button" class="pb high" onclick="plusl()">+</button>
<button type="button" class="pb low" onclick="minusl()">-</button>
</div>
<div id="teamr" class="ver">
<h1 id="ptsr">0</h1></div>
<button type="button" class="pb high" onclick="plusr()">+</button>
<button type="button" class="pb low" onclick="minusr()">-</button>
</div>
</div>
<button type="button" onclick="zerar()">Zerar</button>
</div>
<style>
html, body{
margin: 0;
padding: 0;
}
.ver{
display: flex;
flex-direction: column;
}
.hor{
display: flex;
flex-direction: row;
}
#cont1{
align-items: center;
</style>
<script>
var ptsr = 0,
ptsl = 0,
sptsl = document.getElementById("ptsl"),
sptsr = document.getElementById("ptsr")
function zerar(){
ptsr = 0
ptsl = 0
}
plusl(){
ptsl++
sptsl.innerHTML = ptsl
}
plusr(){
ptsl++
sptsr.innerHTML = ptsr
}
minusl(){
}
minusr(){
}
</script>
</body>
</html>