-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
89 lines (85 loc) · 3.51 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
<!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, maximum-scale=1.0, user-scalable=0">
<meta name="description" content="A quick word game, based on Josh Wardle's Wordle.">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Typit - Word Game</title>
</head>
<body>
<header>
<button id="results" class="minimal hide">Results</button>
<h1>Typit</h1>
<button id="show-menu" class="minimal">Menu</button>
</header>
<div id="board"></div>
<div id="keyboard"></div>
<div id="end-container" class="container hide">
<span class="popup center">
<h2 id="win">You Win!</h2>
<h2 id="lose">Game Over</h2>
<p>
The word was: <span id="word"></span>
</p>
<div class="button-row">
<button id="share">Share</button>
<button id="play-again">Play again</button>
</div>
</span>
</div>
<div id="menu-container" class="container hide">
<span class="popup">
<details open>
<summary>How to Play</summary>
<p>
You have 6 chances to guess the secret word.
To guess, enter a real 5 letter word.
US and UK spellings are both accepted.
You will see feedback like this:<br>
</p>
<div class="sample-row">
<div class="cell filled correct">W</div>
<div class="cell filled incorrect">O</div>
<div class="cell filled close">R</div>
<div class="cell filled incorrect">D</div>
<div class="cell filled incorrect">S</div>
</div>
<p>
<strong>Green letters are correct.</strong><br>
They appear in the same spot in the secret word.<br>
<strong>Yellow letters are close.</strong><br>
They appear in the secret word, but in another spot.<br>
<strong>Grey letters are incorrect.</strong><br>
They do not appear in the secret word.<br>
<strong>In this case, the secret word could be WRECK.</strong><br>
</p>
<p>
Hint: Letters may appear more than once in a word.
</p>
</details>
<details>
<summary>Options</summary>
<p>
<label for="fast-mode"><input type="checkbox" id="fast-mode">Fast Mode</label>
<br>
<span class="small">Show feedback instantly</span>
</p>
</details>
<details>
<summary>About</summary>
<p>
Made by <a href="/">soxfox</a>.
Based on <a href="https://www.nytimes.com/games/wordle/index.html">Wordle</a>.
Similar to <a href="https://en.wikipedia.org/wiki/Lingo_(American_game_show)">Lingo</a>.
</p>
</details>
<button id="dismiss">Done</button>
</span>
</div>
<script src="main.js" type="module"></script>
<!-- musi tan jan Sopo -->
</body>
</html>