-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·113 lines (103 loc) · 4.06 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
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="description" content="Simple math learning tool.">
<meta name="keywords" content="math tool,math,javascript,css">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet">
<link rel="stylesheet" href="css/style.css" type="text/css">
<link href="media/favicon.png" rel="icon" type="image/png">
<title>Mathblocks</title>
</head>
<body>
<div id="js-mathblocks">
<div id="js-header">
<div class="js-menu-toggle">
<i class="material-icons md-light md-36">playlist_play</i>
</div>
<h1 class="logo">Mathblocks</h1>
</div>
<div id="js-board"></div>
<div id="js-footer">
<div id="js-result"></div>
<div id="js-evaluate"><i class="material-icons md-light md-48">done</i></div>
</div>
<div id="js-intro" class="overlay js-selected">
<div id="js-new-game" class="title">Hi, let's <u class="js-start-game">play</u></div>
<div id="js-saved-game" class="title"><u class="js-start-game">continue</u> or <u class="js-restart-game">start again</u></div>
<div class="autosave">
<input id="js-autosave-toggle" type="checkbox">
<label for="js-autosave-toggle">allow autosave</label>
<i id="js-autosave-info-toggle" class="material-icons md-24">info</i>
</div>
<div id="js-autosave-info">
If you allow autosave, then your progress will be automatically stored in your browser via <a href="https://en.wikipedia.org/wiki/Web_storage" target="_blank">local storage</a>, which is an alternative to <a href="https://en.wikipedia.org/wiki/HTTP_cookie" target="_blank">cookies</a>.
</div>
<div class="description">
difficulty is set by a number of numerals required to get the result
<br><br>
<pre class="easy">
1st - 5th level : 2 numerals
6th - 10th level : 3 numerals
11th - 15th level : 4 numerals
</pre>
<pre class="medium">
16th - 20th level : 5 numerals
21st - 25th level : 6 numerals
26th - 30th level : 7 numerals
</pre>
<pre class="hard">
31st - 35th level : 8 numerals
36th - 40th level : 9 numerals
</pre>
</div>
</div>
<div id="js-level-fail" class="overlay">
<button class="button js-try-again">try again</button>
<img class="image-level-fail js-try-again" src="media/fail.svg" alt="Fail">
</div>
<div id="js-level-success" class="overlay">
<button class="button js-next-level">next level</button>
<img class="image-level-success js-next-level" src="media/success.svg" alt="Success">
</div>
<div id="js-game-over" class="overlay">
<div class="title">Victory</div>
<img class="image-game-over" src="media/game-over.svg" alt="Game Over">
</div>
<div id="js-menu" class="overlay">
<div class="menu-header">
<div class="info">level <span id="js-level">1</span></div>
<button class="button js-resume">resume</button>
<div class="line"></div>
<button class="button js-restart-level">restart level</button>
<div class="line"></div>
</div>
<div class="menu-footer">
<div class="info">
Select *x numerals to match the *result and then click the *done button to evaluate your selection.
<br>
<br>
Every level can be infinitely restarted.
<br>
<br>
--
<br>
<br>
<span class="legend">
<b>*x</b> - done button will change its color to green when enough numbers is selected, then you can touch/click it.
<br>
<br>
<b>*done button</b> - button in the lower right corner.
<br>
<br>
<b>*result</b> - big number in the lower center.
</span>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/library.js"></script>
<script type="text/javascript" src="js/directive.js"></script>
</body>
</html>