-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
223 lines (222 loc) · 10.9 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
220
221
222
223
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-DTYKY6GRQ5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-DTYKY6GRQ5');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Brawldle</title>
<link rel="stylesheet" href="styles/components.css">
<link rel="stylesheet" href="styles/animations.css">
<link rel="stylesheet" href="styles/base.css">
<link rel="stylesheet" href="styles/utilities.css">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<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=Lilita+One&display=swap" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png">
<link rel="manifest" href="assets/site.webmanifest">
</head>
<body>
<main>
<div id="content">
<img id="logo" src="assets/BrawldleLogo.svg" alt="Brawldle Logo">
<div id="menu">
<button id="question" onclick="document.getElementById('questionlightbox').style.display='block';document.getElementById('fade').style.display='block';document.getElementById('questionlightbox').classList.add('fadeIn')"></button>
<button id="stats" onclick="document.getElementById('statslightbox').style.display='block';document.getElementById('fade').style.display='block';document.getElementById('statslightbox').classList.add('fadeIn')"></button>
<div id="streak">
<span id="streak-number"></span>
</div>
<button id="settings" onclick="document.getElementById('settingslightbox').style.display='block';document.getElementById('fade').style.display='block';document.getElementById('settingslightbox').classList.add('fadeIn')"></button>
</div>
<div id="info" class="stroke">
<h2 class="infotext">Guess today's Brawler!</h2>
<h2 class="infotext">Type any Brawler to begin.</h2>
</div>
<form id="guess" autocomplete="off">
<input id="field" placeholder="Brawler name..." type="text"><button type="submit" class="submit stroke">ENTER</button>
</form>
<div id="list">
<div id="label-row" class="row">
<div class="label stroke">
Brawler
<div class="seperator"></div>
</div>
<div class="label stroke">
Rarity
<div class="seperator"></div>
</div>
<div class="label stroke">
Class
<div class="seperator"></div>
</div>
<div class="label stroke">
Movement
<div class="seperator"></div>
</div>
<div class="label stroke">
Range
<div class="seperator"></div>
</div>
<div class="label stroke">
Reload
<div class="seperator"></div>
</div>
<div class="label stroke">
Release
<div class="seperator"></div>
</div>
</div>
<div id="win-info" class="hidden">
<h2 class="victory text-outline">VICTORY!</h2>
<div id="win-header" class="stroke">
<div id="win-portrait"></div>
<div id="win-brawler-name-container">
<h2 style="font-size: 1.1em; margin: 0e">You guessed</h2>
<h2 id="win-brawler-name"></h2>
</div>
</div>
<h2 class="win-num-of-tries-text text-outline">Number of tries: <span id="win-num-of-tries"></span></h2>
<div id="win-action-buttons">
<div id="win-stats-button" class="win-action-button" onclick="document.getElementById('statslightbox').style.display='block';document.getElementById('fade').style.display='block';document.getElementById('statslightbox').classList.add('fadeIn')">
<div id="win-stats-button-icon"></div>
<p>Stats</p>
</div>
<div id="win-share-button" class="win-action-button">
<div id="win-share-button-icon"></div>
<p id="win-share-button-text">Share</p>
</div>
</div>
<h2 class="win-next-brawler-in text-outline">Next Brawler in</h2>
<h2 id="win-time-until-next" class="text-outline"></h2>
</div>
</div>
</div>
<div id="yesterday-info">
<h2 class="bottom-info">Yesterday's Brawler was <span id="yesterday-number"></span></h2>
<div id="yesterday-brawler">
<img id="yesterday-icon" alt="Brawler pin">
<h2 id="yesterday-name" class="bottom-info" style="color: #42db6b">Mandy</h2>
</div>
</div>
</div>
</main>
<div id="infolightbox" class="white_content stroke">
<h1>About</h1>
<hr color="white">
<h3>Guess a new Brawler every day! Resets at midnight.</h3>
<h3>This project is not endorsed or sponsored by Supercell.</h3>
<h1>Credits</h1>
<hr color="white">
<h3 >Inspired by <a href="https://wikipedia.org/wiki/wordle" target="_blank">Wordle</a>, <a href="https://smashdle.net/" target="_blank">Smashdle</a>, and Ben Gong, among others.</h3>
<h3>Using assets from <a href="https://fankit.supercell.com/" target="_blank">Supercell Fan Kit</a>.</h3>
<h3 style="margin-bottom: 2em;">Icons made by Bamicon, Fathema Khanom, Aldo Cervantes, and Pixel perfect from <a href="https://www.flaticon.com/">Flaticon</a>.</h3>
<button href="javascript:void(0)" onclick="document.getElementById('infolightbox').style.display='none';document.getElementById('fade').style.display='none'">
<div class="close-icon"></div>
Close
</button>
</div>
<div id="questionlightbox" class="white_content stroke">
<h1>How to play</h1>
<hr color="white">
<h3>Guess today's Brawler from Supercell's mobile game Brawl Stars. Changes every 24 hours.</h3>
<h3>To begin, simply type in the name of a Brawler. Pressing enter, clicking the button on the screen, or clicking a suggestion will all submit your guess.</h3>
<h3>The color of the resulting tiles indicates how close you were to the answer.</h3>
<h3>🟩 indicates that your guess SHARES the same category with the answer.</h3>
<h3>🟥 indicates that your guess does NOT SHARE the same category with the answer.</h3>
<h3>⬆️ or ⬇️ indicates that the category of the answer is either higher or lower than the category of your guess.</h3>
<h1>Categories</h1>
<hr color="white">
<h3><span style="color: #1fea3a;">Rarity</span>: Rare, Super Rare, Epic, Mythic, Legendary</h3>
<h3><span style="color: #1fea3a;">Class</span>: Damage Dealer, Assassin, Marksman, Artillery, Tank, Support, Controller</h3>
<h3><span style="color: #1fea3a;">Movement</span>: Damage Dealer, Assassin, Marksman, Artillery, Tank, Support, Controller</h3>
<h3><span style="color: #1fea3a;">Range</span>: Very Short, Normal, Long, Very Long</h3>
<h3><span style="color: #1fea3a;">Reload</span>: Very Slow, Slow, Normal, Fast, Very Fast</h3>
<h3><span style="color: #1fea3a;">Release</span>: 2017 — Current year</h3>
<button href="javascript:void(0)" onclick="document.getElementById('questionlightbox').style.display='none';document.getElementById('fade').style.display='none'">
<div class="close-icon"></div>
Close
</button>
</div>
<div id="settingslightbox" class="white_content stroke" style="height: 15rem;">
<h1>Settings</h1>
<hr color="white">
<div class="settings-row">
<div>
<div>
<h2>Hard Mode (no arrow hints)</h2>
</div>
</div>
<div style="margin-left: auto;">
<label class="toggle-switch">
<input type="checkbox" id="hard-mode-toggle"/>
<span class="slider"></span>
</label>
</div>
</div>
<div class="settings-row">
<div>
<div>
<h2>Click to validate</h2>
</div>
</div>
<div style="margin-left: auto;">
<label class="toggle-switch">
<input type="checkbox" id="click-toggle"/>
<span class="slider"></span>
</label>
</div>
</div>
<button href="javascript:void(0)" onclick="document.getElementById('settingslightbox').style.display='none';document.getElementById('fade').style.display='none'">
<div class="close-icon"></div>
Close
</button>
</div>
<div id="statslightbox" class="white_content stroke" style="height: 15rem;">
<h1>Stats</h1>
<hr color="white"></hr>
<div class="stats-row">
<div class="stats-box">
<h3>Games won</h3>
<h2 id="games-won">5</h2>
</div>
<div class="stats-box">
<h3>Average guesses</h3>
<h2 id="average-guesses">5</h2>
</div>
<div class="stats-box">
<h3>Current streak</h3>
<h2 id="current-streak">5</h2>
</div>
<div class="stats-box">
<h3>Max streak</h3>
<h2 id="max-streak">5</h2>
</div>
</div>
<button href="javascript:void(0)" onclick="document.getElementById('statslightbox').style.display='none';document.getElementById('fade').style.display='none'">
<div class="close-icon"></div>
Close
</button>
</div>
<div id="fade" class="black_overlay"></div>
<footer>
<div id="bottom-buttons">
<button id="github" onclick="window.open('https://github.com/CouldNot/brawldle', '_blank')" type="button"></button>
<button id="info-button" onclick="document.getElementById('infolightbox').style.display='block';document.getElementById('fade').style.display='block';document.getElementById('infolightbox').classList.add('fadeIn')"></button>
</div>
<div>brawldle.io — <span id="website-notice-date"></span></div>
<div style="font-size: 0.7em">Not affliated with Supercell.</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/confetti@3.0.3/tsparticles.confetti.bundle.min.js"></script>
<script type="module" src="scripts/main.js"></script>
</body>
</html>