forked from sabrina-aip/spellcheck
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mode_select.html
106 lines (98 loc) · 4.33 KB
/
mode_select.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0, user-scalable=0">
<title>Spellcheck - A Word Game | Select Mode</title>
<link rel="stylesheet" href="assets/styles/large_style.css" media="(min-width: 800px)">
<link rel="stylesheet" href="assets/styles/mobile_style.css" media="(max-width: 800px)">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css">
<link rel="icon" type="image/x-icon" href="assets/icons/spellcheck.png">
</head>
<body>
<div class="header">
<div id="header-with-menu">
<a href="index.html" class="boxed btn" id="header-menu"><i class="fa fa-arrow-left"
style="font-size:30pt; padding:0%"></i></a>
<div></div>
<h1 class="boxed" id="header-title"><span class="">Spellcheck</span></h1>
</div>
</div>
<div class="content">
<p><i>select game mode</i></p>
<div class="page-flow">
<div class="game-mode">
<h2 class="boxed-black"><span class="error">dayly</span> challenge</h2>
<p>Expand your <span class="error">vocabulry</span> and spell these words that refresh daily.</p>
<a href="solo_game.html">
<div class="btn boxed">
play the daily  <i class="fa-solid fa-calendar" style="font-size:10pt;"></i>
</div>
</a>
</div>
</div>
<div class="page-flow">
<div class="game-mode">
<h2 class="boxed-black">practice mode</h2>
<p>Set a difficulty level and see how many words you can spell <span class="error">bfore</span> running
out of
lives.</p>
<p><i>set word difficulty</i></p>
<div class="switch-field">
<input type="radio" name="difficulty-switch" id="easy" />
<label>easy</label>
<input type="radio" name="difficulty-switch" id="medium" checked />
<label>medium</label>
<input type="radio" name="difficulty-switch" id="hard" />
<label>hard</label>
</div>
<br>
<a href="practice_game.html">
<div class="btn boxed">
practice  <i class="fa-solid fa-dumbbell" style="font-size:10pt;"></i>
</div>
</a>
</div>
</div>
<div class="page-flow">
<div class="game-mode">
<h2 class="boxed-black">Custom Game</h2>
<p>Create your own spelling <span class="error">bbe!</span></p>
<a href="custom_options.html">
<div class="btn boxed">
Customize  <i class="fa-solid fa-gear" style="font-size:10pt;"></i>
</div>
</a>
</div>
</div>
</div>
<br>
<div class="footer">
<div>
<p>an answer in progress <span class="error">prject</span></p>
</div>
<div id="social-icons-flexbox">
<a href="https://www.youtube.com/answerinprogress" target="_blank" class="social-icon"><i
class="fa-brands fa-youtube"></i></a>
<a href="https://www.instagram.com/answerinprogress" target="_blank" class="social-icon"><i
class="fa-brands fa-instagram"></i></a>
<a href="https://www.patreon.com/answerinprogress" target="_blank" class="social-icon"><i
class="fa-brands fa-patreon"></i></a>
<a href="https://answerinprogress.substack.com/" target="_black" class="social-icon"><i
class="fa-regular fa-envelope"></i></a>
</div>
</div>
</body>
<script>
// record the practice level setting
const radios = document.querySelectorAll('input[name="difficulty-switch"]');
sessionStorage.setItem("level", 'medium');
radios.forEach(radio => {
radio.addEventListener('click', function () {
radioVal = radio.id;
sessionStorage.setItem("level", radioVal);
console.log(radioVal)
});
});
</script>
</html>