forked from makersacademy/bowling-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (60 loc) · 2.22 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
<!DOCTYPE html>
<html>
<head>
<title>TenPinBowling</title>
<link rel="stylesheet" href="public/main.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="src/interface.js"></script>
<script src="src/game.js"></script>
<script src="src/bowling_card.js"></script>
<script src="src/score_calculator.js"></script>
</head>
<body>
<h1>🎳 Ten Pin Bowling</h1>
<div class="left-column" style="box-shadow: 0 5px 15px #4CAF50;">
<div class="right-column">
<h2>Current Turn</h2>
<p>Frame: </p><p id="frame"></p><br><br>
<p>Roll: </p><p id="roll"></p><br><br>
<p>Enter Score: </p><br><br>
<div class="buttonHolder">
<button id="zero" value="0">0</button> <br>
<button id="one" value="1">1</button>
<button id="two" value="2">2</button>
<button id="three" value="3">3</button>
<button id="four" value="4">4</button> <br>
<button id="five" value="5">5</button>
<button id="six" value="6">6</button>
<button id="seven" value="7">7</button> <br>
<button id="eight" value="8">8</button>
<button id="nine" value="9">9</button> <br>
<button id="ten" value="10">10</button>
</div>
</div>
<div class="left-column">
<h2>Total Score</h2>
<p id="score" style="font-size: 6em"></p><br>
<p id="bonus"></p>
<h2>Previous Turns</h2>
<table id="prevTurns">
<thead>
<tr>
<th>Frame</th>
<th>Roll</th>
<th>Pins</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="right-column" style="box-shadow: 0 5px 15px #4CAF50;">
<h2>Frame Scores</h2>
<p1 id="frameScores"></p1>
<div style="padding: 1em 2em 1em">
<canvas id="frameScoreChart"></canvas>
</div>
<script src="src/chart.js"></script>
</div>
</body>
</html>