-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
219 lines (201 loc) · 7.63 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-NZTRS0RCJJ"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-NZTRS0RCJJ");
</script>
<!-- end Google tag-->
<meta charset="UTF-8" />
<title>Tumblewords</title>
<link rel="stylesheet" href="styles2.css" />
<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=Poppins:wght@400;700&display=swap"
rel="stylesheet"
/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" />
<link rel="manifest" href="site.webmanifest" />
</head>
<body>
<header class="game-header">
<h1 id="gameName">TUMBLEWORDS</h1>
<nav class="header-buttons">
<button id="helpButton" title="Help">
<i class="fa-regular fa-circle-question"></i>
</button>
<button id="optionsButton" title="Options" style="display: none">
<i class="fa-solid fa-gear"></i>
</button>
<button id="statsButton" title="Stats" style="display: none">
<i class="fas fa-chart-bar"></i>
</button>
</nav>
</header>
<div id="game-container">
<div id="top-row">
<div class="main-stats-container" id="score-container">
<div class="main-stats-label" id="score-label">words found</div>
<div class="main-stat" id="score">0</div>
</div>
<div id="timer-container">
<div id="timer-label" class="main-stats-label">Time Left</div>
<div id="timer">2:00</div>
</div>
<div class="main-stats-container" id="valid-words-container">
<div class="main-stats-label" id="valid-words-label">
words in grid
</div>
<div class="main-stat" id="valid-words">0</div>
</div>
</div>
<div id="main-area">
<div id="pause-message">
<h2>Game Paused. Press timer to resume.</h2>
</div>
<div id="content-area">
<div id="end-message"></div>
<!-- <h3 id="statsHeader">Statistics</h3> -->
<div class="stats-flex">
<div class="stat" id="playedStat">
<div class="label">Played</div>
<div class="number" id="gamesPlayed"></div>
</div>
<div class="stat" id="scoreStat">
<div class="label">Avg. Score</div>
<div class="number" id="avgScore"></div>
</div>
<div class="stat" id="topScoreStat">
<div class="label">Top Score</div>
<div class="number" id="topScore"></div>
</div>
</div>
<button id="play-again-button" class="button play">
One More Time!
</button>
<div class="flex-column-container">
<div id="found-words-container">
<h3>Found words:</h3>
<div id="found-words"></div>
</div>
<div id="missed-words-container">
<h3>Words you missed at the end:</h3>
<div id="missed-words"></div>
</div>
</div>
</div>
<div id="grid"></div>
<div id="word-construction">
<div id="slot-1" class="letter-block"> </div>
<div id="slot-2" class="letter-block"> </div>
<div id="slot-3" class="letter-block"> </div>
<div id="slot-4" class="letter-block"> </div>
<div id="slot-5" class="letter-block"> </div>
</div>
</div>
<button id="start-button" class="play button">Let's TUMBLE!</button>
<div id="gameMessage"></div>
</div>
<!-- Modal Structure -->
<div id="resultModal" class="modal">
<div class="modal-content">
<h3 id="resultHeader">Your Game</h3>
<button class="close-modal-button"><i class="fa fa-close"></i></button>
<div class="button-row">
<button id="modalShareButton" class="share-button button">
SHARE RESULT
<i class="fa-solid fa-share-nodes"></i>
</button>
<button id="playAgainButton" class="button play">Play Again</button>
</div>
</div>
</div>
<div id="helpModal" class="modal">
<div class="modal-content">
<button class="close-modal-button"><i class="fa fa-close"></i></button>
<h2>Welcome to Tumblewords BETA!</h2>
<p>
The goal is to build 5-letter words from left to right, choosing one
letter from each column.
</p>
<p>
Valid words will disappear from the grid, and the remaining letters
will drop down to fill in the gaps.
</p>
<div class="grid-row">
<div class="grid-cell selected">F</div>
<div class="grid-cell">X</div>
<div class="grid-cell selected">U</div>
<div class="grid-cell">X</div>
<div class="grid-cell selected">D</div>
</div>
<div class="grid-row">
<div class="grid-cell">X</div>
<div class="grid-cell selected">O</div>
<div class="grid-cell">X</div>
<div class="grid-cell selected">N</div>
<div class="grid-cell">X</div>
</div>
<p style="text-align: center">
⭐ is a wildcard -- you can use it to match any letter.
</p>
<div class="grid-row">
<div class="grid-cell selected">Y</div>
<div class="grid-cell selected">⭐</div>
<div class="grid-cell selected">W</div>
<div class="grid-cell selected">Z</div>
<div class="grid-cell selected">A</div>
</div>
<p>
You start with 2 minutes on the clock. Each valid word you enter adds
10 seconds to the timer. If you need a breather, tap or click the
timer during a game to pause.
</p>
<p>Let's get ready to TUMBLE!</p>
</div>
</div>
<div id="optionsModal" class="modal">
<div class="modal-content">
<button class="close-modal-button"><i class="fa fa-close"></i></button>
<h2>Options</h2>
<div class="option">
<label for="alphabetHelperToggle">Alphabet Helper:</label>
<input type="checkbox" id="alphabetHelperToggle" />
</div>
<p class="option-description">
Toggles the list of letter possibilities at the bottom of the screen.
</p>
<div class="option">
<label for="hardModeToggle">Hard Mode:</label>
<input type="checkbox" id="hardModeToggle" />
</div>
<p class="option-description">
Hard mode prevents you from guessing words that are not possible
answers, based on the letters you've already guessed.
</p>
<div class="feedback-link">
<a href="mailto:[email protected]">Send Feedback</a>
</div>
</div>
</div>
<script type="module" src="game.js"></script>
</body>
</html>