-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (129 loc) · 7.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Taboo!</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playwrite+DE+Grund:[email protected]&display=swap" rel="stylesheet">
<!-- styling -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/spectre.css/0.5.9/spectre.min.css">
<link rel="stylesheet" href="style.css">
<!-- icons -->
<link rel="icon" href="img/img-logo-32" sizes="32x32">
<link rel="icon" href="img/img-logo-192.png" sizes="192x192">
<link rel="apple-touch-icon" href="img/img-logo-180.png">
</head>
<body>
<!-- Layout -->
<div id="container" class="container">
<div class="columns">
<!--responsive-->
<!--extra small, extra large, large, medium, margin auto -->
<div class="column col-6 col-xl-8 col-lg-10 col-md-12 col-mx-auto">
<div id="header">
<a href="https://github.com/xlr8nur"><img src="img/img-logo.svg" alt="image in logo"></a> Play taboo!
</div>
<!-- score -->
<div id="score-table" class="columns bg-warning">
<div id="timer" class="column col-6">
<i class="icon icon-time"></i>
<span id="timer-value">0:00</span>
</div>
<div id="score" class="column col-6 bg-success">
<i class="icon icon-emoji"></i>
<span id="score-value">0</span>
</div>
</div>
<!-- settings -->
<div id="settings" class="columns bg-gray">
<div class="column col-12">
<!-- GitHub button -->
<span style="float: right; margin-top: 0.4rem;">
<a class="github-button" href="https://github.com/xlr8nur/play-taboo" data-icon="github-star" data-size="large" data-show-count="true" aria-label="Stars on GitHub">Star</a>
</span>
<div class="accordion">
<input id="rules-accordion" type="checkbox" name="accordion-checkbox" hidden>
<label class="accordion-header c-hand" for="rules-accordion"><i class="icon icon-arrow-right mr-1"></i>⁍ Rules</label>
<div class="accordion-body">
<blockquote id="rules">
<p>
An even number of players from four to ten sit alternating around in a circle.
Players take turns as the "giver", who attempts to prompt their teammates to guess as many keywords as possible in the allotted time.
However, each card also has "taboo" (forbidden) words listed which may not be spoken.
Should the giver say one, a "censor" on the opposing team hits the buzzer and the giver must move on to the next word.
</p>
<cite>- <a href="https://en.wikipedia.org/wiki/taboo_(game)">Wikipedia</a></cite>
</blockquote>
</div>
</div>
<div class="accordion">
<input id="about-accordion" type="checkbox" name="accordion-checkbox" hidden>
<label class="accordion-header c-hand" for="about-accordion"><i class="icon icon-arrow-right mr-1"></i>⁍ About</label>
<div class="accordion-body">
<blockquote>
Taboo is a dynamic and engaging game that challenges players to describe words
without using the most obvious descriptors.
It’s perfect for parties and social gatherings,
fostering teamwork and quick thinking in a fun, competitive environment.
The cards have been handpicked. <br>
Coded by <a href="https://github.com/xlr8nur">Nur Akman</a>.
</blockquote>
</div>
</div>
<div class="accordion">
<input id="settings-accordion" type="checkbox" name="accordion-checkbox" checked hidden>
<label class="accordion-header c-hand" for="settings-accordion"><i class="icon icon-arrow-right mr-1"></i>⁍ Settings</label>
<div class="accordion-body">
<div class="form-horizontal">
<!-- timer -->
<div class="form-group">
<div class="col-4">
<label class="form-label label-lg" for="timelimit"><blockquote>Timelimit (sec):</blockquote></label>
</div>
<div class="col-8">
<div class="input-group">
<label class="form-switch input-lg">
<input id="has-timelimit" type="checkbox" checked><i class="form-icon"></i>
</label>
<input id="timelimit" class="form-input input-lg" type="number" placeholder="60" value="60">
</div>
</div>
</div>
<!-- seed -->
<div class="form-group">
<div class="col-4">
<label class="form-label label-lg" for="seed"><blockquote>Shuffling deck:</blockquote></label>
</div>
<div class="col-8">
<input id="seed" class="form-input input-lg" type="text" placeholder="Seed" value="">
</div>
</div>
</div>
</div>
</div>
<button class="btn btn-primary btn-lg btn-main" onclick="startGame()"><i class="icon icon-arrow-right"></i> Start <i class="icon icon-arrow-left"></i></button>
</div>
</div>
<div id="game" style="display: none;">
<button class="btn btn-primary btn-lg btn-main" onclick="endGame()"><i class="icon icon-refresh"></i> Reset</button>
<div id="deck">
</div>
<div class="btn-group btn-group-block">
<button class="btn btn-error btn-lg" onclick="failedCard()"><i class="icon icon-cross"></i> Failed</button>
<button class="btn bg-warning btn-lg" style="border-color: #FFB700;" onclick="skipCard()"><i class="icon icon-arrow-right"></i> Skip</button>
<button class="btn btn-success btn-lg" onclick="guessedCard()"><i class="icon icon-check"></i> Guessed</button>
</div>
</div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="cards.js"></script>
<script src="gamelogic.js"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>