-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
127 lines (110 loc) · 4.49 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!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" />
<title>SOSB Wordle</title>
<script src="js/main.js"></script>
<script
src="https://use.fontawesome.com/releases/v5.15.4/js/all.js"
data-auto-replace-svg="nest"
></script>
<link rel="stylesheet" href="css/styles.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
/>
</head>
<body>
<div id="container">
<div id="game">
<header>
<i class="far fa-question-circle" id="help"></i>
<h1 class="title">SOSB WORDLE</h1>
<i class="fas fa-chart-bar" id="stats"></i>
</header>
<div id="board-container">
<h2 id="final-score"></h2>
<div id="board"></div>
</div>
<div id="keyboard-container">
<div class="keyboard-row">
<button class="keyboard-button" data-key="q">q</button>
<button class="keyboard-button" data-key="w">w</button>
<button class="keyboard-button" data-key="e">e</button>
<button class="keyboard-button" data-key="r">r</button>
<button class="keyboard-button" data-key="t">t</button>
<button class="keyboard-button" data-key="y">y</button>
<button class="keyboard-button" data-key="u">u</button>
<button class="keyboard-button" data-key="i">i</button>
<button class="keyboard-button" data-key="o">o</button>
<button class="keyboard-button" data-key="p">p</button>
</div>
<div class="keyboard-row">
<div class="spacer-half"></div>
<button class="keyboard-button" data-key="a">a</button>
<button class="keyboard-button" data-key="s">s</button>
<button class="keyboard-button" data-key="d">d</button>
<button class="keyboard-button" data-key="f">f</button>
<button class="keyboard-button" data-key="g">g</button>
<button class="keyboard-button" data-key="h">h</button>
<button class="keyboard-button" data-key="j">j</button>
<button class="keyboard-button" data-key="k">k</button>
<button class="keyboard-button" data-key="l">l</button>
<div class="spacer-half"></div>
</div>
<div class="keyboard-row">
<button
class="keyboard-button wide-button"
data-key="enter"
>
Enter
</button>
<button class="keyboard-button" data-key="z">z</button>
<button class="keyboard-button" data-key="x">x</button>
<button class="keyboard-button" data-key="c">c</button>
<button class="keyboard-button" data-key="v">v</button>
<button class="keyboard-button" data-key="b">b</button>
<button class="keyboard-button" data-key="n">n</button>
<button class="keyboard-button" data-key="m">m</button>
<button class="keyboard-button wide-button" data-key="del">
DEL
</button>
</div>
</div>
</div>
<div id="help-modal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close" id="close-help">×</span>
<p>Guess the WORDLE in 6 tries.</p>
<p>
Each guess must be a valid 5 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>
<img src="examples.png" alt="Example Wordle Image" id="examples" />
<hr />
<p>A new WORDLE will be available each day!</p>
</div>
</div>
<div id="stats-modal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close" id="close-stats">×</span>
<h2>STATISTICS</h2>
<h3><strong>Total</strong>: <span id="total-played"></span></h3>
<h3><strong>Wins</strong>: <span id="total-wins"></span></h3>
<h3><strong>Win %</strong>: <span id="win-pct"></span></h3>
<h3>
<strong>Current Streak</strong>: <span id="current-streak"></span>
</h3>
</div>
</div>
</div>
</body>
</html>