-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (94 loc) · 5.01 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
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Common | Mega Yatzy</title>
<link rel="stylesheet" href="./CSS/main.css">
</head>
<body>
<h1 class="title"> MEGA YATZY </h1>
<p id="dieroll-msg"> Roll the die to start. </p>
<!-- Modal to show score -->
<div id="modal" class="modal">
<div class="modal-content">
<p id="modal-score"></p>
<p id="modal-time"></p>
<div class="center">
<button class="widen"> <a href=""> Go again? </a> </button>
</div>
</div>
</div>
<!-- Modal to help with scores -->
<div id="helper-modal" class="modal">
<div class="modal-content">
<p id="modal-helper-text"></p>
</div>
</div>
<div class="center">
<button onclick="rolldice()" id="diceroller"> ROLL </button>
</div>
<ul>
<li onclick="lock(0)" class="die"> 0 </li>
<li onclick="lock(1)" class="die"> 0 </li>
<li onclick="lock(2)" class="die"> 0 </li>
<li onclick="lock(3)" class="die"> 0 </li>
<li onclick="lock(4)" class="die"> 0 </li>
<li onclick="lock(5)" class="die"> 0 </li>
</ul>
<div class="center">
<button onclick="collapse(0)" type="button" class="categories"> ONES THROUGH SIXES </button>
<div class="content">
<button class="category" onclick="singles(1)"> ONES </button>
<button class="category" onclick="singles(2)"> TWOS </button>
<button class="category" onclick="singles(3)"> THREES </button>
<button class="category" onclick="singles(4)"> FOURS </button>
<button class="category" onclick="singles(5)"> FIVES </button>
<button class="category" onclick="singles(6)"> SIXES </button>
<button class="helper-modal-button" onclick="helpmodal(0)"> Help </button>
</div>
<button onclick="collapse(1)" type="button" class="categories"> PAIRS </button>
<div class="content">
<button class="category" onclick="pairs(6, true)"> ONE PAIR </button>
<button class="category" onclick="pairs(7, true)"> TWO PAIRS </button>
<button class="category" onclick="pairs(8, true)"> THREE PAIRS </button>
<button class="helper-modal-button" onclick="helpmodal(1)"> Help </button>
</div>
<button onclick="collapse(2)" type="button" class="categories"> KINDS </button>
<div class="content">
<button class="category" onclick="kinds(9, true)"> THREE OF A KIND </button>
<button class="category" onclick="kinds(10, true)"> FOUR OF A KIND </button>
<button class="category" onclick="kinds(11, true)"> FIVE OF A KIND </button>
<button class="helper-modal-button" onclick="helpmodal(2)"> Help </button>
</div>
<button onclick="collapse(3)" type="button" class="categories"> STRAIGHTS </button>
<div class="content">
<button class="category" onclick="straights([1, 2, 3, 4, 5], 12)"> SMALL STRAIGHT </button>
<button class="category" onclick="straights([2, 3, 4, 5, 6], 13)"> BIG STRAIGHT </button>
<button class="category" onclick="straights([1, 2, 3, 4, 5, 6], 14)"> FULL STRAIGHT </button>
<button class="helper-modal-button" onclick="helpmodal(3)"> Help </button>
</div>
<button onclick="collapse(4)" type="button" class="categories"> SETTLEMENTS </button>
<div class="content">
<button class="category" onclick="cottage()"> COTTAGE </button>
<button class="category" onclick="house()"> HOUSE </button>
<button class="category" onclick="tower()"> TOWER </button>
<button class="helper-modal-button" onclick="helpmodal(4)"> Help </button>
</div>
<button onclick="collapse(5)" type="button" class="categories"> CHANCE, YATZY, SF </button>
<div class="content">
<button class="category" onclick="chance()"> CHANCE </button>
<button class="category" onclick="yatzy()"> YATZY </button>
<button class="category" onclick="straightflush([1, 2, 3, 4, 5, 6])"> STRAIGHT FLUSH </button>
<button class="helper-modal-button" onclick="helpmodal(5)"> Help </button>
</div>
</div>
<div class="center">
<button class="widen" onclick="gameover()"> END GAME </button>
</div>
<div class="center">
<button class="widen"> <a href=""> RESTART </a> </button>
</div>
<script type="text/javascript" src="./JavaScript/combinations.js"></script>
<script type="text/javascript" src="./JavaScript/main.js"></script>
</body>
</html>