-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
240 lines (240 loc) · 11.1 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
<!DOCTYPE html>
<html>
<head>
<title>CluedoCardJS</title>
<link rel="shortcut icon" href="res/favicon.png" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" id="css" href="css/material.min.css">
<link rel="stylesheet" href="css/style.css">
<script defer src="js/lib/material.min.js"></script>
<meta content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no" name="viewport">
<meta id="mobilecolor" name="theme-color" content="#000000">
<meta id="mobilecolor" name="msapplication-navbutton-color" content="#000000">
<meta id="mobilecolor" name="apple-mobile-web-app-status-bar-style" content="#000000">
<meta name="mobile-web-app-capable" content="yes">
<meta name="msapplication-tap-highlight" content="no" /> <!--removes hilight on WP devices-->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="iosfav.png"/>
<link rel="apple-touch-icon-precomposed" href="iosfav.png" />
</head>
<body>
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--fixed-tabs">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title" id="title">CluedoCardsJS</span>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation">
<a class="mdl-navigation__link">
<about class="material-icons show-modal">help</about>
</a>
</nav>
</div>
<!-- Tabs -->
<div id="tabs" class="mdl-layout__tab-bar mdl-js-ripple-effect">
<a href="#suspects" class="mdl-layout__tab is-active">Suspects</a>
<a href="#weapons" class="mdl-layout__tab">Weapons</a>
<a href="#rooms" class="mdl-layout__tab">Rooms</a>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Choose Character</span>
<nav class="mdl-navigation">
<a class="mdl-navigation__link set_character" id="Default">Default</a>
<a class="mdl-navigation__link set_character" id="Mustard">Colonel Mustard</a>
<a class="mdl-navigation__link set_character" id="Plum">Professor Plum</a>
<a class="mdl-navigation__link set_character" id="Green">Reverend Green</a>
<a class="mdl-navigation__link set_character" id="Peacock">Mrs Peacock</a>
<a class="mdl-navigation__link set_character" id="Scarlett">Miss Scarlett</a>
<a class="mdl-navigation__link set_character" id="White">Mrs White</a>
</nav>
</div>
<main class="mdl-layout__content">
<div class="page-content">
<div id="tabContent">
<section class="mdl-layout__tab-panel is-active" id="suspects">
<ul class="demo-list-icon mdl-list">
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content mdl-button--colored">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="suspect-mustard">radio_button_unchecked</i>
Colonel Mustard
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="suspect-plum">radio_button_unchecked</i>
Professor Plum
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="suspect-green">radio_button_unchecked</i>
Reverend Green
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="suspect-peacock">radio_button_unchecked</i>
Mrs Peacock
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="suspect-scarlett">radio_button_unchecked</i>
Miss Scarlett
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="suspect-white">radio_button_unchecked</i>
Mrs White
</span>
</li>
</ul>
</section>
<section class="mdl-layout__tab-panel" id="weapons">
<ul class="demo-list-icon mdl-list">
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="weapon-dagger">radio_button_unchecked</i>
Dagger
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="weapon-candlestick">radio_button_unchecked</i>
Candlestick
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="weapon-revolver">radio_button_unchecked</i>
Revolver
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="weapon-rope">radio_button_unchecked</i>
Rope
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="weapon-pipe">radio_button_unchecked</i>
Lead Pipe
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="weapon-spanner">radio_button_unchecked</i>
Spanner
</span>
</li>
</ul>
</section>
<section class="mdl-layout__tab-panel" id="rooms">
<ul class="demo-list-icon mdl-list">
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="room-hall">radio_button_unchecked</i>
Hall
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="room-lounge">radio_button_unchecked</i>
Lounge
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="room-dining">radio_button_unchecked</i>
Dining Room
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="room-kitchen">radio_button_unchecked</i>
Kitchen
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="room-ball">radio_button_unchecked</i>
Ballroom
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="room-conservatory">radio_button_unchecked</i>
Conservatory
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="room-billiard">radio_button_unchecked</i>
Billiard Room
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="room-library">radio_button_unchecked</i>
Library
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon mdl-color-text--accent" id="room-study">radio_button_unchecked</i>
Study
</span>
</li>
</ul>
</section>
</div>
</div>
<button href="#hidden" id="fab" class="fab mdl-button mdl-js-button mdl-button--fab mdl-js-ripple-effect mdl-button--colored">
<fab id="fabicon" class="material-icons">visibility_off</fab>
</button>
</main>
</div>
<dialog class="mdl-dialog">
<div class="mdl-dialog__title">
About
</div>
<div class="mdl-dialog__content">
<p>
A simple mobile-first webapp that replaces the suspect cards when playing playing Cluedo (Clue).
</p>
<p>
Source code is available on <a href="https://github.com/Co2p/CluedoCardJS">GitHub</a>
Suggestions and help is welcome.
</p>
<p>v1.1</p>
</div>
<div class="mdl-dialog__actions ">
<button type="button" class="mdl-button mdl-js-button mdl-js-ripple-effect close">ok</button>
</div>
</dialog>
<script>
var dialog = document.querySelector('dialog');
var showModalButton = document.querySelector('.show-modal');
if (! dialog.showModal) {
try {
dialogPolyfill.registerDialog(dialog);
} catch (e) {
dialog.style.display = 'none';
}
}
showModalButton.addEventListener('click', function() {
dialog.showModal();
});
dialog.querySelector('.close').addEventListener('click', function() {
dialog.close();
});
</script>
<script type="text/javascript" src="js/js.cookie.js"></script>
<script type="text/javascript" src="js/characterThemes.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</body>
</html>