-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
51 lines (51 loc) · 1.97 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
<html>
<head>
<meta charset="utf-8"/>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-675766-5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-675766-5');
</script>
<!-- End of analytics -->
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="main">
<div id="card" class="tilt-left" onclick="startNewRound()">
<div id="letter"></div>
<div id="categories"></div>
</div>
<div id="timer" onclick="toggleTimer()" ondblclick="resetTimer()"></div>
<audio id="audio">
<source src="audio.mp3" type="audio/mpeg">
</audio>
<div id="footer">
<select id="localization" onchange="setLocalization()">
<option value="" disabled="disabled">Localization:</option>
<option value="none">None</option>
</select>
<a onclick="show('rules')">Rules</a>
<a onclick="show('help')">Help</a>
</div>
<div id="credits"><a href="http://www.keiranking.com/" target="_blank">keiranking.com</a> ·
<a href="https://github.com/keiranking/Gary" target="_blank">GitHub</a> · Gary</div>
<div id="notebar"></div>
</div>
<div id="rules" class="hidden">
<h3>Rules</h3>
<p>Each round, players write answers that fit the categories, starting with the key letter, within the allotted time.</p>
<p>Each unique answer is worth 1 point. Alliterative answers are worth 1 point per word (eg. Daffy Duck, 2 pts).</p>
<p>Answers can only be used in one category per round. Player with the most points after all rounds are completed wins.</p>
</div>
<div id="help" class="hidden">
<h3>Help</h3>
<p>Click the card to start a new round.</p>
<p>Click the time to start or pause the clock.</p>
</div>
<script src="categories.js"></script>
<script src="gary.js"></script>
</body>
</html>