-
Notifications
You must be signed in to change notification settings - Fork 39
/
mode_select.html
77 lines (70 loc) · 3.37 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
<!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>
<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>
<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>
<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>