-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (88 loc) · 4.33 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Backgammon Score Tracker</title>
</head>
<body>
<section class="has-text-centered">
<div class="container">
<div class="columns">
<div class="column">
<div class="card">
<header class="card-header">
<p class="card-header-title has-text-centered">
Backgammon Score Tracker
</p>
<p class="card-footer-item">
<a href="https://github.com/mafromist" class="button is-info is-outlined">made by
mafromist</a>
</p>
</header>
<div class="card-content">
<div class="content">
<img src="https://image.freepik.com/free-photo/top-view-backgammon-game-board_68747-224.jpg">
</div>
</div>
</div>
<div class="card">
<div class="card-content">
<p class="subtitle has-text-weight-semibold">Default Target Score: 3</p>
<form action="" id="setScoreForm">
<label for="setScore">You can change the target score</label>
<select name="setScore" id="setScore">
<option value="3">3</option>
<option value="5">5</option>
<option value="7">7</option>
<option value="11">11</option>
</select>
</form>
</div>
<footer class="card-footer">
<h3 class="card-footer-item">Target Score: <span id="setScoreDisplay">0</span></h3>
</footer>
</div>
<div class="card">
<div class="card-content">
<div class="content">
<h2>Player 1: <span id="scoreP1">0</span> vs. Player 2: <span id="scoreP2">0</span></h2>
</div>
<p class="subtitle">Use the buttons below to keep score</p>
</div>
<footer class="card-footer">
<button class="button has-background-primary-dark has-text-white card-footer-item" id="scoreAddP1">+1 Player One</button>
<button class="button has-background-success-dark has-text-white card-footer-item" id="scoreAddP2">+1 Player Two</button>
<button class="button has-background-danger-dark has-text-white card-footer-item" id="resetScore">Reset Score</button>
</footer>
</div>
</div>
</div>
</div>
<div class="container">
<div class="columns">
<div class="column">
<div class="card">
<div class="card-header">
<h1 class="card-header-title">Previous Game Scores (this part WIP)</h1>
</div>
<div class="card-content">
<ul class="latestGameScore">
<li>Player 1: <span id="latestGameScoreP1">0</span>
<span> - </span>
Player 2: <span id="latestGameScoreP2">0</span>
</li>
</ul>
<p>Time stamp:</p>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="app.js"></script>
</body>
</html>