-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
227 lines (199 loc) · 8.62 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
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<title>Movlie - Wordle for Movies!</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="description" content="Guess the Movie in 6 tries" />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="autocomplete.css">
<script src="autocomplete.min.js"></script>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🎬</text></svg>">
<meta property="og:title" content="Movlie - Wordle for Movies" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Movlie.org" />
<meta property="og:url" content="https://movlie.org/" />
<meta property="og:image" content="/static/clapper_big.png" />
<meta property="twitter:image" content="/static/clapper_big.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta property="twitter:title" content="Movlie - Wordle for Movies" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"url": "https://movlie.org",
"logo": "/static/clapper.png"
}
</script>
</head>
<body>
<div id="flasher" class="hide flasher"></div>
<div id="menu_modal" class="modal">
<div class="modal-content">
<span class="modal_close">×</span>
<h2 class="center-text">Movlie</h2>
<p>Inspired by <a href="https://www.nytimes.com/games/wordle/index.html">Wordle</a> and <a href="https://www.heardle.app/">Heardle</a>.</p>
<p>Contact: <a href="mailto: [email protected]">[email protected]</a></p>
</div>
</div>
<div id="help_modal" class="modal">
<div class="modal-content">
<span class="modal_close">×</span>
<h2 class="center-text">How to play</h2>
<p>Guess the <b>movie</b> in six tries.</p>
<p>Each guess reveals another screenshot of the movie.</p>
</div>
</div>
<div id="stats_modal" class="modal">
<div class="modal-content">
<span class="modal_close">×</span>
<h2 class="center-text">Statistics</h2>
<div id="statistics">
<div class="statistic-container">
<div class="statistic" id="played">0</div>
<div class="label">Played</div>
</div>
<div class="statistic-container">
<div class="statistic" id="win">0</div>
<div class="label">Win %</div>
</div>
<div class="statistic-container">
<div class="statistic" id="streak">0</div>
<div class="label">Current Streak</div>
</div>
<div class="statistic-container">
<div class="statistic" id="max-streak">0</div>
<div class="label">Max Streak</div>
</div>
</div>
<h2 class="center-text">Guess Distribution</h2>
<div id="guess-distribution"></div>
<div id="guess-distribution">
<div class="graph-container">
<div class="guess">1</div>
<div class="graph">
<div class="graph-bar" id="total-graph-0" style="width: 7%;">
<div id="total-0" class="num-guesses">0</div>
</div>
</div>
</div>
<div class="graph-container">
<div class="guess">2</div>
<div class="graph">
<div class="graph-bar" id="total-graph-1" style="width: 7%;">
<div id="total-1" class="num-guesses">0</div>
</div>
</div>
</div>
<div class="graph-container">
<div class="guess">3</div>
<div class="graph">
<div class="graph-bar" id="total-graph-2" style="width: 7%;">
<div id="total-2" class="num-guesses">0</div>
</div>
</div>
</div>
<div class="graph-container">
<div class="guess">4</div>
<div class="graph">
<div class="graph-bar" id="total-graph-3" style="width: 7%;">
<div id="total-3" class="num-guesses">0</div>
</div>
</div>
</div>
<div class="graph-container">
<div class="guess">5</div>
<div class="graph">
<div class="graph-bar" id="total-graph-4" style="width: 7%;">
<div id="total-4" class="num-guesses">0</div>
</div>
</div>
</div>
<div class="graph-container">
<div class="guess">6</div>
<div class="graph">
<div class="graph-bar" id="total-graph-5" style="width: 7%;">
<div id="total-5" class="num-guesses">0</div>
</div>
</div>
</div>
</div>
<div id="stats-footer" class="footer">
<div class="countdown">
<h1>Next Movlie</h1>
<div id="timer">
<div class="statistic-container">
<div class="statistic timer">
<countdown-timer></countdown-timer>
</div>
</div>
</div>
</div>
<div class="share">
<button id="share-button">
Share
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path fill="#fff" d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92c0-1.61-1.31-2.92-2.92-2.92zM18 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM6 13c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm12 7.02c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"></path>
</svg>
</button>
</div>
</div>
<p>See also: <a href="https://artistle.org">artistle.org</a> guess the artists based on their paintings.</p>
</div>
</div>
<div class="wrapper flex-container">
<span href="#" class="menu-wrapper modal_open" id="menu">
<svg width="24" height="17" viewBox="0 0 24 17" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.172974" width="20" height="3" rx="1.5" fill="#fff"></rect>
<rect x="0.172974" y="7" width="20" height="3" rx="1.5" fill="#fff"></rect>
<rect x="0.172974" y="14" width="20" height="3" rx="1.5" fill="#fff"></rect>
</svg>
</span>
<span href="#" class="icon-wrapper modal_open" id="help">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path fill="#fff" d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"></path>
</svg>
</span>
<h1 class="title">Movlie</h1>
<span href="#" class="icon-wrapper modal_open right-icon" id="stats">
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24">
<path fill="#fff" d="M16,11V3H8v6H2v12h20V11H16z M10,5h4v14h-4V5z M4,11h4v8H4V11z M20,19h-4v-6h4V19z"></path>
</svg>
</span>
</div>
<hr>
<div class="wrapper">
<div class="answers">
<div id="guess0" class="row"><div class="placeholder">LOTR</div></div>
<div id="guess1" class="row"><div class="placeholder">HAUS</div></div>
<div id="guess2" class="row"><div class="placeholder">BRONKING BOD</div></div>
<div id="guess3" class="row"><div class="placeholder">NOTMYTEMPO</div></div>
<div id="guess4" class="row"><div class="placeholder">BOG SHORT</div></div>
<div id="guess5" class="row"><div class="placeholder">YOURNAMEHERE</div></div>
</div>
<br>
<div class="input-container">
<input id="movie_guess" autofocus type="text" autocomplete="off" placeholder="Search for a movie title" />
<br>
<br>
<button id="skip" title="Show the next screenshot">⏩ Skip</button>
<button id="submit">Submit</button>
</div>
<div id="solution-container" class="hide">
<p>The solution was: <span id="solution"></span></p>
</div>
<div class="image-container">
<img id="clue0" src=""></img>
<img id="clue1" src=""></img>
<img id="clue2" src=""></img>
<img id="clue3" src=""></img>
<img id="clue4" src=""></img>
<img id="clue5" src=""></img>
</div>
</div>
<script>
</script>
<script src="base.js"></script>
<script src="app.js"></script>
</body>
</html>