-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
315 lines (313 loc) · 19.7 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!DOCTYPE html>
<!--
* grrd's Dice
* Copyright (c) 2015 Gerard Tyedmers, grrd@gmx.net
* Licensed under the MPL 2.0 License
-->
<html lang="en">
<head>
<title>grrd's Dice</title>
<link rel="icon" href="i/favicon.ico">
<link rel="manifest" href="manifest/appmanifest.json">
<link rel="apple-touch-icon" href="i/apple-touch-icon-144x144.png">
<link rel="apple-touch-startup-image" href="i/icon_512.png">
<meta name="description" content="grrd’s Dice is a 3D Dice Roller app and a Yahtzee game for one to five players."/>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#444"/>
<meta name="apple-mobile-web-app-title" content="Dice">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black" >
<link rel="stylesheet" href="js/dice.css">
<link rel="alternate" hreflang="en" href="https://grrd01.github.io/Dice/?lang=en" />
<link rel="alternate" hreflang="de" href="https://grrd01.github.io/Dice/?lang=de" />
<link rel="alternate" hreflang="fr" href="https://grrd01.github.io/Dice/?lang=fr" />
<link rel="alternate" hreflang="nl" href="https://grrd01.github.io/Dice/?lang=nl" />
<link rel="alternate" hreflang="rm" href="https://grrd01.github.io/Dice/?lang=rm" />
<link rel="canonical" href="https://grrd01.github.io/Dice/?lang=en" />
</head>
<body>
<main class="page" id="iTitle">
<fieldset class="content">
<header>
<img id="img_title" src="i/title.png" alt="grrd's" />
<img id="img_title2" src="i/title2.png" alt="Dice" />
<img id="img_title3q" src="i/dice.png" alt="grrd's Dice"/>
<div class="right">
<div class="mini-buttonlist">
<button id="iInfo" class="mini-button">
<img class="mini-img shadow" src="i/info.svg" alt="Info">
</button><button id="iSettings" class="mini-button">
<img class="mini-img shadow" src="i/settings.svg" alt="Settings">
</button>
</div>
</div>
</header>
<img id="img_title3h" src="i/dice.png" alt="grrd's Dice"/>
<div id="bt_dice_yahtzee" class="bottom">
<nav id="grp_2">
<button id="bt_dice" class="list-button" data-yahtzee="false">
<span></span>
</button><button id="bt_yahtzee" class="list-button" data-yahtzee="true">
<span></span>
</button>
</nav>
</div>
<div id="grp_anz" class="bottom out-bottom">
<div id="lb_anz" class="content"></div>
<nav id="grp_5">
<button id="bt_anz1" class="list-button" data-num="1">
<img class="button-img" src="i/dice_1.svg" alt="1">
</button><button id="bt_anz2" class="list-button" data-num="2">
<img class="button-img" src="i/dice_2.svg" alt="2">
</button><button id="bt_anz3" class="list-button" data-num="3">
<img class="button-img" src="i/dice_3.svg" alt="3">
</button><button id="bt_anz4" class="list-button" data-num="4">
<img class="button-img" src="i/dice_4.svg" alt="4">
</button><button id="bt_anz5" class="list-button" data-num="5">
<img class="button-img" src="i/dice_5.svg" alt="5">
</button>
</nav>
</div>
</fieldset>
<div id="iPopupInfo" class="overflow popup-init">
<div class="popup">
<div class="popup-head">
<img class="popup-title1" src="i/title.png" alt="grrd's" />
<img class="popup-title2" src="i/title2.png" alt="Dice" />
<img class="popup-title3" src="i/dice.png" alt="grrd's Dice"/>
</div>
<div id="iInfoBody" class="popup-body">
<div class="popup-content">
<span id="lb_dev"></span>
<a href="https://github.com/alexgibson/shake.js/" target="_blank" rel="noopener">shake.js</a>
<span id="lb_and"> and </span>
<a href="https://threejs.org/" target="_blank" rel="noopener">three.js</a>
<span>. </span><br>
<span id="lb_model"></span>
<a href="https://www.tinkercad.com/" target="_blank" rel="noopener">tinkercad</a>
<span>. </span>
</div>
<div class="popup-content">
<span id="lb_puzzle"></span>
</div>
<table id="tLinks">
<tr>
<td class="w20"><a href="https://grrd01.github.io/Puzzle" target="_blank" rel="noopener" tabindex="-1"><img src="i/puzzle.svg" alt="Puzzle" class="w60 shadow"></a></td>
<td class="w80"><a href="https://grrd01.github.io/Puzzle" target="_blank" rel="noopener">grrd's Puzzle</a></td>
</tr>
<tr>
<td class="w20"><a href="https://grrd01.github.io/Dice/" target="_blank" rel="noopener" tabindex="-1"><img src="i/tictactoe.svg" alt="Tic Tac Toe" class="w60 shadow"></a></td>
<td class="w80"><a href="https://grrd01.github.io/TicTacToe/" target="_blank" rel="noopener">grrd's Tic Tac Toe</a></td>
</tr>
<tr>
<td class="w20"><a href="https://grrd01.github.io/4inaRow/" target="_blank" rel="noopener" tabindex="-1"><img src="i/4inarow.svg" alt="4 in a Row" class="w60 shadow"></a></td>
<td class="w80"><a href="https://grrd01.github.io/4inaRow/" target="_blank" rel="noopener">grrd's 4 in a Row</a></td>
</tr>
<tr>
<td class="w20"><a href="https://grrd01.github.io/Memo/" target="_blank" rel="noopener" tabindex="-1"><img src="i/memo.svg" alt="Memo" class="w60 shadow"></a></td>
<td class="w80"><a href="https://grrd01.github.io/Memo/" target="_blank" rel="noopener">grrd's Memo</a></td>
</tr>
<tr>
<td class="w20"><a href="https://grrd01.github.io/Reversi/" target="_blank" rel="noopener" tabindex="-1"><img src="i/reversi.svg" alt="Reversi" class="w60 shadow"></a></td>
<td class="w80"><a href="https://grrd01.github.io/Reversi/" target="_blank" rel="noopener">grrd's Reversi</a></td>
</tr>
<tr>
<td class="w20"><a href="mailto:grrd@gmx.net" tabindex="-1"><img src="i/mail.svg" alt="Mail" class="w60 shadow"></a></td>
<td class="w80">E-mail: <a href="mailto:grrd@gmx.net">grrd@gmx.net</a></td>
</tr>
</table>
</div>
<div class="popup-footer">
<button id="iInfoClose" class="button">
<span class="button-span"><img class="w25 shadow" src="i/ok.svg" alt="OK"> OK</span>
</button>
</div>
</div>
<div class="buffer"></div>
</div>
<div id="iPopupSettings" class="overflow popup-init">
<div class="popup">
<div class="popup-head">
<img class="popup-title1" src="i/title.png" alt="grrd's" />
<img class="popup-title2" src="i/title2.png" alt="Dice" />
<img class="popup-title3" src="i/dice.png" alt="grrd's Dice"/>
</div>
<div id="iSettingsBody" class="popup-body">
<div id="lb_color" class="popup-content"></div>
<nav id="grp_col">
<button id="bt_col1" class="list-button selected" data-num="0">
<img class="button-img red" src="i/dice_chance.svg" alt="red">
</button><button id="bt_col2" class="list-button" data-num="1">
<img class="button-img blue" src="i/dice_chance.svg" alt="blue">
</button><button id="bt_col3" class="list-button" data-num="2">
<img class="button-img yellow" src="i/dice_chance.svg" alt="yellow">
</button><button id="bt_col4" class="list-button" data-num="3">
<img class="button-img green" src="i/dice_chance.svg" alt="green">
</button><button id="bt_col5" class="list-button" data-num="4">
<img class="button-img white" src="i/dice_chance.svg" alt="white">
</button>
</nav>
<div class="popup-content"></div>
<div class="popup-content">
<span id="lb_instr" class="popup-content"></span>
<div class="score">
<input class="tgl tgl-skewed" id="b_instr" type="checkbox"/>
<label class="tgl-btn" data-tg-off="OFF" data-tg-on="ON" for="b_instr"></label>
</div>
</div>
<br>
</div>
<div class="popup-footer">
<button id="iSettingsClose" class="button">
<span class="button-span"><img class="w25 shadow" src="i/ok.svg" alt="OK"> OK</span>
</button>
</div>
</div>
<div class="buffer"></div>
</div>
</main>
<section class="page" id="iGame">
<fieldset>
<button id="iClose" class="close-button top-right">
<img class="" src="i/x.svg" alt="close">
</button>
<button id="bt_list" class="close-button top-left">
<img class="" src="i/list.svg" alt="list">
</button>
<div id="lb_tot_val" class="abs txt_bottom"></div>
<div id="lb_try" class="abs txt_bottom r0"></div>
<img id="img_lock3" class="abs lock" src="i/lock.svg" alt="lock">
<img id="img_lock0" class="abs lock" src="i/lock.svg" alt="lock">
<img id="img_lock2" class="abs lock" src="i/lock.svg" alt="lock">
<img id="img_lock4" class="abs lock" src="i/lock.svg" alt="lock">
<img id="img_lock1" class="abs lock" src="i/lock.svg" alt="lock">
</fieldset>
<div id="popup_yahtzee" class="overflow popup-init">
<fieldset class="popup">
<div class="popup-head">
<img class="popup-title1" src="i/title.png" alt="grrd's" />
<img class="popup-title2" src="i/title2.png" alt="Dice" />
<img class="popup-title3" src="i/dice.png" alt="grrd's Dice"/>
</div>
<div class="popup-body">
<table class="score">
<tr>
<td class="w16"></td>
<td class="w16"><img id="img_p1" class="list-img" src="i/dice_1.svg" alt="Player 1"/></td>
<td class="w16"><img id="img_p2" class="list-img" src="i/dice_2.svg" alt="Player 2"/></td>
<td class="w16"><img id="img_p3" class="list-img" src="i/dice_3.svg" alt="Player 3"/></td>
<td class="w16"><img id="img_p4" class="list-img" src="i/dice_4.svg" alt="Player 4"/></td>
<td class="w16"><img id="img_p5" class="list-img" src="i/dice_5.svg" alt="Player 5"/></td>
</tr>
<tr class="todo lineup">
<td><img id="lb_1" src="i/dice_1.svg" class="help" alt="1"/></td>
</tr>
<tr class="todo">
<td><img id="lb_2" src="i/dice_2.svg" class="help" alt="2"/></td>
</tr>
<tr class="todo">
<td><img id="lb_3" src="i/dice_3.svg" class="help" alt="3"/></td>
</tr>
<tr class="todo">
<td><img id="lb_4" src="i/dice_4.svg" class="help" alt="4"/></td>
</tr>
<tr class="todo">
<td><img id="lb_5" src="i/dice_5.svg" class="help" alt="5"/></td>
</tr>
<tr class="todo">
<td><img id="lb_6" src="i/dice_6.svg" class="help" alt="6"/></td>
</tr>
<tr class="lineup">
<td><img id="lb_sum1" src="i/dice_sum.svg" class="help" alt="Upper Total"/></td>
<td class="score" id="lb_sum1p1"></td>
<td class="score" id="lb_sum1p2"></td>
<td class="score" id="lb_sum1p3"></td>
<td class="score" id="lb_sum1p4"></td>
<td class="score" id="lb_sum1p5"></td>
</tr>
<tr>
<td><img id="lb_bonus" src="i/dice_plus.svg" class="help" alt="Bonus"/></td>
<td class="score" id="lb_bonus_p1"></td>
<td class="score" id="lb_bonus_p2"></td>
<td class="score" id="lb_bonus_p3"></td>
<td class="score" id="lb_bonus_p4"></td>
<td class="score" id="lb_bonus_p5"></td>
</tr>
<tr>
<td><img id="lb_sum2" src="i/dice_sum.svg" class="help" alt="Upper Total"/></td>
<td class="score" id="lb_sum2p1"></td>
<td class="score" id="lb_sum2p2"></td>
<td class="score" id="lb_sum2p3"></td>
<td class="score" id="lb_sum2p4"></td>
<td class="score" id="lb_sum2p5"></td>
</tr>
<tr class="todo lineup">
<td><img id="lb_3kind" src="i/dice_3kind.svg" class="help" alt="3 of a kind"/></td>
</tr>
<tr class="todo">
<td><img id="lb_4kind" src="i/dice_4kind.svg" class="help" alt="4 of a kind"/></td>
</tr>
<tr class="todo">
<td><img id="lb_full_house" src="i/dice_full_h.svg" class="help" alt="Full House"/></td>
</tr>
<tr class="todo">
<td><img id="lb_small_str" src="i/dice_sm_str.svg" class="help" alt="Small Straight"/></td>
</tr>
<tr class="todo">
<td><img id="lb_big_str" src="i/dice_lg_str.svg" class="help" alt="Large Straight"/></td>
</tr>
<tr class="todo">
<td><img id="lb_yahtzee" src="i/dice_yahtzee.svg" class="help" alt="Yahtzee"/></td>
</tr>
<tr class="todo">
<td><img id="lb_chance" src="i/dice_chance.svg" class="help" alt="Chance"/></td>
</tr>
<tr class="lineup">
<td><img id="lb_sum3" src="i/dice_sum.svg" class="help" alt="Lower Total"/></td>
<td class="score" id="lb_sum3p1"></td>
<td class="score" id="lb_sum3p2"></td>
<td class="score" id="lb_sum3p3"></td>
<td class="score" id="lb_sum3p4"></td>
<td class="score" id="lb_sum3p5"></td>
</tr>
<tr>
<td><img id="lb_sum4" src="i/dice_sum.svg" class="help" alt="Grand Total"/></td>
<td class="score bold" id="lb_sum4p1"></td>
<td class="score bold" id="lb_sum4p2"></td>
<td class="score bold" id="lb_sum4p3"></td>
<td class="score bold" id="lb_sum4p4"></td>
<td class="score bold" id="lb_sum4p5"></td>
</tr>
</table>
</div>
<div class="popup-footer">
<button id="iYahtzeeClose" class="button">
<span class="button-span"><img class="w25 shadow" src="i/ok.svg" alt="OK"> OK</span>
</button>
</div>
</fieldset>
<div class="buffer"></div>
</div>
<div id="iPopupHelp" class="overflow popup-init">
<div class="popup popup-mini">
<button id="iCloseHelp" class="close-button close-popup">
<img class="" src="i/x.svg" alt="close">
</button>
<img class="popup-title-mini" src="i/dice.png" alt="grrd's Dice"/>
<div id="iHelpBody" class="popup-body">
<div id="lb_helptit"></div>
<div id="lb_help"></div>
</div>
</div>
<div class="buffer"></div>
</div>
</section>
<script src="js/build/three.min.js"></script>
<script src="js/loaders/MTLLoader.js"></script>
<script src="js/loaders/OBJLoader.js"></script>
<script src="js/Detector.js"></script>
<script src="js/shake.js"></script>
<script src="js/dice.js"></script>
</body>
</html>