-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
174 lines (151 loc) · 9.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs -->
<meta charset="utf-8">
<title>AITaboo!</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Mobile Specific Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap" rel="stylesheet">
<!-- CSS -->
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-exp.min.css">
<link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre-icons.min.css">
<link rel="stylesheet" href="style.css">
<!-- Favicon -->
<link rel="icon" href="img/favicon-32x32.png" sizes="32x32">
<link rel="icon" href="img/favicon-192x192.png" sizes="192x192">
<link rel="apple-touch-icon" href="img/favicon-180x180.png">
</head>
<body>
<!-- Page Layout -->
<div id="container" class="container">
<div class="columns">
<div class="column col-6 col-xl-8 col-lg-10 col-md-12 col-mx-auto">
<!-- Header -->
<div id="header">
<a href="https://mlinpl.org"><img src="img/mlinpl-association.svg" alt="ML in PL Association"></a> AITaboo
</div>
<!-- Stats -->
<div id="stats" 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>
<!-- Rules & 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/mwydmuch/AITaboo" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star mwydmuch/AITaboo 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>
Two teams play against each other. Players take turns as the "giver," who attempts to prompt
his/her teammates to guess as many keywords (top, red words on cards) as possible in the allotted time.
However, each card also has "taboo" (forbidden) words (black words on cards) listed
which may not be spoken. Should the giver say one must move on to the next word.
The giver may not say a part of a "taboo" word, nor may they use a form of a word, gestures, sounds, or drawings are not allowed.
(...)
While the giver is prompting the teammates they may make as many guesses as they want with no penalties for wrong guesses.
Once the team correctly guesses the word exactly as written on the card, the giver moves on to the next word.
(...)
The playing team receives one point for correct guesses and one penalty point if "taboo" words are spoken.
</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">
<p>
AI-themed version of Taboo, released initially as a paper version at the <a href="https://conference2018.mlinpl.org">PL in ML: Polish View on Machine Learning 2018</a>.
The cards have been handcrafted by the member of <a href="https://mlinpl.org">ML in PL Association</a> or generated by AI based on Wikipedia articles about AI and ML.
This online version was coded by <a href="https://github.com/mwydmuch">Marek Wydmuch</a> for <a href="https://virtual-event.mlinpl.org">ML in PL: Virtual Event 2020</a>.
</p>
</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">
<!-- language -->
<!--<div class="form-group">
<div class="col-3">
<label class="form-label">Language</label>
</div>
<div class="col-9">
<label class="form-radio">
<input type="radio" name="language" checked=""><i class="form-icon"></i> English
</label>
</div>
<div class="col-9">
<label class="form-radio">
<input type="radio" name="language"><i class="form-icon"></i> Polish
</label>
</div>
</div>-->
<!-- timer -->
<div class="form-group">
<div class="col-4">
<label class="form-label label-lg" for="timelimit">Timelimit (sec):</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">Seed (for deck shuffling):</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="game.js"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>