-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (88 loc) · 2.86 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
<!DOCTYPE html>
<html>
<head>
<title>Wordie</title>
<!-- add description -->
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Bungee+Inline&display=swap"
rel="stylesheet"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap"
rel="stylesheet"
/>
<link href="./reset.css" rel="stylesheet" />
<link href="./style.css" rel="stylesheet" />
<script type="module" src="./script.js" defer></script>
</head>
<body>
<header>
<h1>Wordie</h1>
</header>
<div class="how-to-play">
<button>How to play?</button>
</div>
<div class="howtoplay-content-container">
<div class="howtoplay-content">
<button>x</button>
<h2>How to play?</h2>
<p>Guess the WORDIE in five tries.</p>
<p>
Each guess must be a valid five-letter word. Hit the enter button to
submit.
</p>
<p>
After each guess, the color of the tiles will change to show how close
your guess was to the word.
</p>
<hr />
<h3>Examples</h3>
<div>
<span class="green">W</span><span>E</span><span>A</span><span>R</span
><span>Y</span>
<div></div>
</div>
<p>The letter <span>W</span> is in the word and in the correct spot.</p>
<div>
<span>P</span><span class="yellow">I</span><span>L</span><span>L</span
><span>S</span>
</div>
<p>The letter <span>I</span> is in the word but in the wrong spot.</p>
<div>
<span>V</span><span>A</span><span>G</span><span class="grey">U</span
><span>E</span>
</div>
<p>The letter <span>U</span> is not in the word in any spot.</p>
</div>
</div>
<div class="game-board">
<input
type="text"
id="input"
placeholder="type your answer here..."
autofocus
/>
<p class="invalidword-alert"></p>
<div class="answer-grid"></div>
</div>
<div class="pop-up-container success-container">
<div class="success pop-up">
<p>Congrats! You got it ٩(๑❛ᴗ❛๑)۶</p>
<button>X</button>
</div>
</div>
<div class="pop-up-container fail-container">
<div class="fail pop-up">
<p>Ooops Σ( ° △ °|||) The correct answer is <span></span></p>
<button>X</button>
</div>
</div>
</body>
</html>