-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
168 lines (167 loc) · 6.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WordleMojizer</title>
<meta
name="description"
content="Simple little web app to take in your wordle score and replace the emoji's
with ones of your choosing"
/>
<script>
(function () {
const theme = localStorage.getItem("theme");
if (theme) {
document.documentElement.setAttribute("data-theme", theme);
}
})();
</script>
<link rel="stylesheet" href="/main.css" />
</head>
<body>
<header>
<h1><span>WORDL</span><span>E</span><span>MOJIZER</span></h1>
<h2>
Made with ❤️ by
<a href="https://withan.es" target="_blank">withan.es</a>
</h2>
</header>
<main>
<section class="board">
<button class="board-actionButton board-actionButton_paste">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide-clipboard"
>
<rect width="8" height="4" x="8" y="2" rx="1" ry="1" />
<path
d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"
/>
</svg>
<span class="sr-only">Paste Contents</span>
</button>
<div class="board-display">
<div class="tilesRow" style="--rowDelay: 200ms">
<div class="tile" style="--delay: 0ms"><span></span></div>
<div class="tile" style="--delay: 100ms"><span></span></div>
<div class="tile" style="--delay: 200ms"><span></span></div>
<div class="tile" style="--delay: 300ms"><span></span></div>
<div class="tile" style="--delay: 400ms"><span></span></div>
</div>
<div class="tilesRow" style="--rowDelay: 400ms">
<div class="tile" style="--delay: 0ms"><span></span></div>
<div class="tile" style="--delay: 100ms"><span></span></div>
<div class="tile" style="--delay: 200ms"><span></span></div>
<div class="tile" style="--delay: 300ms"><span></span></div>
<div class="tile" style="--delay: 400ms"><span></span></div>
</div>
<div class="tilesRow" style="--rowDelay: 600ms">
<div class="tile" style="--delay: 0ms"><span></span></div>
<div class="tile" style="--delay: 100ms"><span></span></div>
<div class="tile" style="--delay: 200ms"><span></span></div>
<div class="tile" style="--delay: 300ms"><span></span></div>
<div class="tile" style="--delay: 400ms"><span></span></div>
</div>
<div class="tilesRow" style="--rowDelay: 800ms">
<div class="tile" style="--delay: 0ms"><span></span></div>
<div class="tile" style="--delay: 100ms"><span></span></div>
<div class="tile" style="--delay: 200ms"><span></span></div>
<div class="tile" style="--delay: 300ms"><span></span></div>
<div class="tile" style="--delay: 400ms"><span></span></div>
</div>
<div class="tilesRow" style="--rowDelay: 1000ms">
<div class="tile" style="--delay: 0ms"><span></span></div>
<div class="tile" style="--delay: 100ms"><span></span></div>
<div class="tile" style="--delay: 200ms"><span></span></div>
<div class="tile" style="--delay: 300ms"><span></span></div>
<div class="tile" style="--delay: 400ms"><span></span></div>
</div>
<div class="tilesRow" style="--rowDelay: 1200ms">
<div class="tile" style="--delay: 0ms"><span></span></div>
<div class="tile" style="--delay: 100ms"><span></span></div>
<div class="tile" style="--delay: 200ms"><span></span></div>
<div class="tile" style="--delay: 300ms"><span></span></div>
<div class="tile" style="--delay: 400ms"><span></span></div>
</div>
</div>
<button class="board-actionButton board-actionButton_copy">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide-copy"
>
<rect width="14" height="14" x="8" y="8" rx="2" ry="2" />
<path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" />
</svg>
<span class="sr-only">Copy Contents</span>
</button>
</section>
</main>
<footer>
<form autocomplete="off">
<label for="absent" class="sr-only">Absent</label>
<input id="absent" type="text" name="absent" required />
<label for="present" class="sr-only">Present</label>
<input id="present" type="text" name="present" required />
<label for="correct" class="sr-only">Correct</label>
<input id="correct" type="text" name="correct" required />
</form>
<button class="toggleTheme">
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-moon"
>
<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" />
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="lucide lucide-sun"
>
<circle cx="12" cy="12" r="4" />
<path d="M12 2v2" />
<path d="M12 20v2" />
<path d="m4.93 4.93 1.41 1.41" />
<path d="m17.66 17.66 1.41 1.41" />
<path d="M2 12h2" />
<path d="M20 12h2" />
<path d="m6.34 17.66-1.41 1.41" />
<path d="m19.07 4.93-1.41 1.41" />
</svg>
<span class="sr-only">Toggle Theme</span>
</button>
</footer>
<script src="/main.js" type="text/javascript"></script>
</body>
</html>