This repository was archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
271 lines (265 loc) · 11.1 KB
/
Copy pathindex.html
File metadata and controls
271 lines (265 loc) · 11.1 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Mi'kmaq Pictionary</title>
<style>
[x-cloak] {
display: none !important;
}
</style>
<link rel="stylesheet" href="src/client/css/styles.css" />
<script
defer
src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"
></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script
src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
crossorigin="anonymous"
></script>
</head>
<body x-data="globalData" x-init="getWordBank">
<!-- Main Menu -->
<section
class="container flex-column"
id="start-page"
x-show="!gameStarted"
>
<div class="col vh-100">
<header class="row text-center">
<h1>Mi'kmaq Pictionary</h1>
<p class="sub-title">Mikwite'tmk+t Angie</p>
</header>
<main class="mt-4 row d-flex align-items-center">
<button
type="button"
class="btn menu-btn fw-bold"
id="mb-start-game"
@click="startGame"
>
Start Game
</button>
<button
type="button"
class="btn menu-btn"
id="mb-word-bank"
data-bs-toggle="modal"
data-bs-target="#word-bank-modal"
>
Tali mila'tmk
</button>
<button
type="button"
class="btn menu-btn"
id="mb-instructions"
data-bs-toggle="modal"
data-bs-target="#instructions-modal"
>
Klusuwaqnn
</button>
</main>
</div>
</section>
<!-- Game Page -->
<section
id="game-page"
class="container m-0"
x-cloak
x-show="gameStarted"
>
<main id="game-section" class="row vh-100">
<section class="col vw-100">
<div class="row">
<section class="col">
<!-- Close Button -->
<button
type="button"
class="btn game-btn d-flex justify-content-start"
id="gb-main-menu"
@click="endGame"
>
<i class="bi bi-x-lg"></i>
</button>
</section>
<section class="col-2">
<!-- Instructions Button -->
<button
type="button"
class="btn game-btn"
id="gb-hint"
data-bs-toggle="modal"
data-bs-target="#instructions-modal"
>
<i class="bi bi-question-lg"></i>
</button>
<!-- Word Bank Button -->
<button
type="button"
class="btn game-btn"
id="gb-word-bank"
data-bs-toggle="modal"
data-bs-target="#word-bank-modal"
>
<i class="bi bi-book"></i>
</button>
</section>
</div>
<!-- game 1 -->
<section>
<div class="row">
<section
class="col d-flex justify-content-center m-4"
>
<h2
id="current-word"
class="d-inline"
x-text="currentWord"
></h2>
<!-- Audio Button -->
<button
id="btn-listen"
class="btn game-btn"
@click="playAudio(`assets/server/audio/${currentWord}.wav`)"
>
<i class="bi bi-volume-up-fill"></i>
</button>
</section>
</div>
<div class="row">
<section class="col d-flex justify-content-center">
<!-- Options Buttons -->
<template x-for="(word, index) in wordOptions" :key="index">
<button
class="m-3"
@click="evaluateResponse(word)"
>
<img
:src="`assets/server/images/${word}.jpg`"
:alt="word"
class="game-img"
/>
</button>
</template>
</section>
</div>
</section>
<!-- game 2 -->
<section></section>
<!-- game 3 -->
<section></section>
</section>
</main>
</section>
<!-- Modals -->
<!-- Instructions Modal -->
<div
class="modal fade"
id="instructions-modal"
tabindex="-1"
aria-labelledby="instructions-modal-title"
aria-hidden="true"
>
<div
class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable"
role="document"
>
<div class="modal-content preview-modal">
<div class="modal-header">
<h5 class="modal-title" id="instructions-modal-title">
Klusuwaqnn
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<h3>!!Pjila'si!!</h3>
<p>
Mi'kmaq Picture Dictionary is a fun and interactive
game to help you learn Mi'kmaq words.
</p>
<p>
Multiple Choice Question: Select the correct image
out of three different images and match it to the
Mi'kmaq word.
</p>
<!-- <p>
True or False: A audio and an image will be given to
you; You will have to answer whether the image
matches the audio and determine if it's true or
false.
</p> -->
<!-- <p>
Pronouniciation: An image and an audio of the
pronouniciation of a word will be given to you. Use
the audio button to listen to the pronouniciation of
the word and use the microphone button to record
your own voice.
</p> -->
</div>
<div class="modal-footer"></div>
</div>
</div>
</div>
<!-- Word Bank Modal -->
<div
class="modal fade"
id="word-bank-modal"
tabindex="-1"
aria-labelledby="word-bank-modal-title"
aria-hidden="true"
>
<div
class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable"
role="document"
>
<div class="modal-content preview-modal">
<div class="modal-header">
<h5 class="modal-title" id="word-bank-modal-title">
Tali mila'tmk
</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<!-- word bank rows -->
<template x-for="(word, index) in wordList" :key="index">
<div
class="preview-word d-flex justify-content-between"
>
<div>
<img
class="preview-img"
:src="`assets/server/images/${word}.jpg`"
/>
<span x-text="word"></span>
</div>
<button
type="button"
class="btn word-bank-btn"
@click="playAudio(`assets/server/audio/${word}.wav`)"
>
<i class="bi bi-volume-up-fill"></i>
</button>
</div>
</template>
</div>
<div class="modal-footer"></div>
</div>
</div>
</div>
<script src="src/client/js/script.js"></script>
</body>
</html>