-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·343 lines (330 loc) · 15.9 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
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<!DOCTYPE html>
<html>
<head>
<title>Plus One</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css" type="text/css" />
<script type="text/javascript" src="./JS/jquery.min.js"></script>
<!--<script type="text/javascript" src="./JS/app.js"></script>-->
<script type="text/javascript" src="https://use.fontawesome.com/b615b4dd8b.js"></script>
<script type="text/javascript" src="./JS/particleground.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
</head>
<body>
<!--Div for background particles-->
<div id="particles"></div>
<div id="outer-content">
<!--Navigation sidebar-->
<div class="sidebar" id="side-nav">
<nav id="nav-home" class="goto goto-home">
Home
</nav>
<nav id="nav-app" class ="goto goto-app">
Application
</nav>
<nav id="nav-help" class="goto goto-help">
Help
</nav>
<nav id="nav-settings" class="goto goto-settings">
Settings
</nav>
<nav id="nav-author" class="goto goto-author">
About the Author
</nav>
<nav id="nav-exit" class="goto goto-exit">
Exit
</nav>
</div>
<!--Help sidebar-->
<div class="sidebar" id="side-help">
<h1>Help</h1>
<p>
To get started, click the "I'm ready" button on the home page.
Then fill out the form with your name, and the type and amount of
questions you want.
</p>
<p>
At any time you can go to a different part of the app by clicking the
medu button in the header. You won't lose your progress unless you
begin another game by filling in the form again.
</p>
<ol>
<li>
<strong>Addition</strong>
<br/>
<p>
Addition is calculating the total of two different numbers.
Addiding one number to another gives you a result that is the
sum of both numbers.
</p>
</li>
<li>
<strong>Subtraction</strong>
<br/>
<p>
Subtraction is finding the difference between two numbers.
</p>
</li>
<li>
<strong>Multiplication</strong>
<br/>
<p>
Mulitiplication is just repeated addition. It is finding the
result of adding the number to itsself an amount of times.
</p>
</li>
<li>
<strong>Division</strong>
<br/>
<p>
Division is just repeated subtraction. It is finding how
many times you can take one number away from another number
before there is nothing left.
</p>
</li>
</ol>
</div>
<!--All content that isnt the sidebar-->
<div class="not-sidebar">
<header>
<span id="menu-button" class="icon-button goto goto-menu">
<i class="fa fa-bars fa-lg" aria-hidden="true"></i>
</span>
<span id="logo-container" class="goto goto-home">
<h1 id="logo"> PLUS ONE </h1>
</span>
<span id="help-button" class="icon-button goto goto-help">
<i class="fa fa-info-circle fa-lg" aria-hidden="true"></i>
</span>
</header>
<main>
<!--Home page-->
<div class="main-content-box" id="home">
<div class="progress-bar-container">
<div class="progress-bar"></div>
</div>
<div class="inner-content">
<h1>Welcome to Plus One!</h1>
<br/>
<p class="center">
Plus One is an interactive online maths trainer, which
allows you to practice addition, subtraction,
multiplication and division.
<br/>
<br/>
When you're ready, you can pick what type of questions
you want to practice, and how many.
<br/>
Addition and subtraction questions will range 1-100, and
multiplication and division questions will range from 1-12.
<br/>
Make sure to be quick, because speedy answers will give
you extra points!
<br/>
<br/>
Click the button below to get started!
</p>
<br/>
<button id="ready-button" class="goto goto-app">I'm Ready!</button>
</div>
</div>
<!--Application page-->
<div class="main-content-box" id="app">
<div class="progress-bar-container">
<div class="progress-bar"></div>
</div>
<div class="inner-content">
<div class="app-state" id="starting-form">
<h2>Just a few things before we get started...</h2>
<form id="details" class="center-vertical">
<h4>Name (or nickname):</h4>
<input type="text"
name="name"
placeholder="Jay Smith"
maxlength="25"
required/>
<br>
<h4>Question type:</h4>
<div class="radio-container">
<input type="radio"
name="question-type"
value="addition"
id="addition-button"
required/>
<label for="addition-button">+</label>
<input type="radio"
name="question-type"
value="subtraction"
id="subtraction-button"/>
<label for="subtraction-button">−</label>
<input type="radio"
name="question-type"
value="multiplication"
id="multiplication-button"/>
<label for="multiplication-button">×</label>
<input type="radio"
name="question-type"
value="division"
id="division-button"/>
<label for="division-button">÷</label>
<input type="radio"
name="question-type"
value="rand"
id="random-button"/>
<label for="random-button">
<i class="fa fa-random"></i>
</label>
<input type="radio"
name="question-type"
value="spacer"
id="question-type-spacer"
disabled="true"/>
</div>
<br>
<h4>And how many questions?</h4>
<div class="range-container center-vertical">
<input class="question-val"
type="range"
name="question-amount"
value="25"
min="10"
max="100"/>
<input class="question-val"
type="number"
name="question-amount"
value="25"
min="10"
max="100"/>
<!--<p class="question-val">?</p>-->
</div>
<br>
<button type="submit"
id="submit-details"
class="goto goto-game">
Let's Go!
</button>
</form>
</div>
<div class="app-state" id="game" style="display: none;">
<div id="info-bar">
<h2>
<span id="progress">?</span>
/
<span id="question-amount">?</span>
</h2>
<h2>
Score:
<span id="score">0</span>
</h2>
<h2>
🔥
<span id="streak">0</span>
</h2>
</div>
<!--<div class="flex-control"></div>-->
<div class="question">
<span class="question-part" id="first-number">X</span>
<span class="question-part" id="operation">~</span>
<span class="question-part" id="second-number">Y</span>
</div>
<form id="answer" autocomplete="off">
<input type="number"
name="answer"
placeholder="Answer"
autocomplete="off"
required/>
<button type="submit">Submit</button>
</form>
<div class="flex-control"></div>
</div>
<div class="app-state" id="finished">
<h1>
<span class="encouragement">Nice,</span>
<span class="name"></span>
!
</h1>
<h2>
You scored <span id="points">000</span> points,
and got <span id="correct">0</span> out of
<span id="total">0</span> correct!
</h2>
<h2>
That's <span id="percentage"></span>% correct!
</h2>
<br/>
<button id="try-again">Try Again?</button>
</div>
</div>
</div>
<!--Settings page-->
<div class="main-content-box" id="settings">
<div class="progress-bar-container">
<div class="progress-bar"></div>
</div>
<div class="inner-content">
<h1>Settings</h1>
<br>
<div class="settings-item" id="set-strobe">
<p class="settings-item-desc">
Strobe Mode
</p>
<input type="checkbox" id="strobe"/>
</div>
<div class="settings-item" id="set-dark">
<p class="settings-item-desc">
Dark mode (warning - eyesore)
</p>
<input type="checkbox" id="dark"/>
</div>
<!--<div class="settings-item">-->
<!-- <p class="settings-item-desc">-->
<!-- Setting description-->
<!-- </p>-->
<!-- <input type="checkbox"/>-->
<!--</div>-->
<!--<div class="settings-item">-->
<!-- <p class="settings-item-desc">-->
<!-- Setting description-->
<!-- </p>-->
<!-- <input type="checkbox"/>-->
<!--</div>-->
</div>
</div>
<!--About the author page-->
<div class="main-content-box" id="author">
<div class="progress-bar-container">
<div class="progress-bar"></div>
</div>
<div class="inner-content">
<h1>About the Author</h1>
<p class="center">
Hi! My name is Dexter Konijn, I'm 15 years old and in
year 10 at St Lukes Grammar School.
<br/>
I built this website for a school assessment task, as a
way of letting young children practice maths.
<br/>
I enjoy programming and web design so making the
web application was a fun challenge.
</p>
</div>
</div>
<!--Exit page-->
<div class="main-content-box" id="exit">
<div class="progress-bar-container">
<div class="progress-bar"></div>
</div>
<div class="inner-content center-vertical">
<h1>Thanks for playing!</h1>
</div>
</div>
</main>
</div>
</div>
</body>
<!--Loads last:
workaround to $('document').ready();
avoids limiting variables to the ready() scope.
Not actually necesarry lol i just did everything wrong-->
<script type="text/javascript" src="./JS/program.js"></script>
</html>