-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
55 lines (51 loc) · 2.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<title>Volleyball Scoring</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="menu-icon" onclick="toggleMenu()">☰</div>
<div id="menuOverlay" class="menu-overlay">
<div class="menu-content">
<div class="menu-header">
<span class="menu-close" onclick="toggleMenu()">✖</span>
</div>
<label for="scoringType">Scoring Type:</label>
<select id="scoringType">
<option value="sideout">Side Out</option>
<option value="rally">Rally</option>
</select>
<div class="score-adjust">
<h3>Adjust Scores</h3>
<div>
<h4 class="bluelabel">Team A</h4>
<button onclick="adjustScore('A', -1)">-</button>
<span id="adjustScoreA">0</span>
<button onclick="adjustScore('A', 1)">+</button>
</div>
<div>
<h4 class="redlabel">Team B</h4>
<button onclick="adjustScore('B', -1)">-</button>
<span id="adjustScoreB">0</span>
<button onclick="adjustScore('B', 1)">+</button>
</div>
</div>
<input type="text" id="team1" placeholder="Team A" onchange="updateTeamAName">
<input type="text" id="team2" placeholder="Team B" onchange="updateTeamBName">
<button onclick="resetScores()">Reset</button>
</div>
</div>
<div id="lblTeam2"></div>
<div class="switcher" onclick="switchDivs()"><i style="font-size:50px;color:darkgray" class="fa"></i></div>
<div class="container">
<button id="scoreA" class="score-button blue" onclick="increaseScore('A')"><div name="team1" id="teamName">test 1</div><span>0</span></button>
<button id="scoreB" class="score-button red" onclick="increaseScore('B')"><div name="team2" id="teamName">test 2</div><span>0</span></button>
</div>
<script src="script.js"></script>
</body>
</html>