Qwörtle lebt!

This commit is contained in:
Arne Keller 2022-02-22 22:53:28 +01:00
commit f481edd84c
5 changed files with 1245 additions and 0 deletions

4
filter.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
iconv -f ISO-8859-1 -t UTF-8 top10000de.txt > top10000de_utf8.txt
awk '{ if (length($0) == 5) print }' top10000de_utf8.txt > top10000de_utf8_len5.txt
cat top10000de_utf8_len5.txt | rg --invert-match "'|ß" > top10000de_utf8_len5_filtered.txt

46
index.css Normal file
View File

@ -0,0 +1,46 @@
body {
background-color: #1f2937;
color: #fff;
}
.centering {
display: flex;
flex-direction: column;
align-items: center;
}
#main {
display: grid;
grid-template-columns: repeat(2, max-content);
grid-template-rows: repeat(2, max-content);
gap: 2em;
}
.row {
margin-top: 0;
margin-bottom: 0;
}
.invalid {
color: red;
}
.correct {
background-color: lime;
}
.wrong-position {
background-color: yellow;
color: #000;
}
.cell {
padding: 0.5em;
display: inline-block;
width: 1em;
height: 1em;
font-family: monospace;
font-size: xx-large;
border: 1px solid #bbb;
vertical-align: top;
}

13
index.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf8">
<link rel="stylesheet" href="./index.css">
<div class="centering">
<h1>Qwörtle</h1>
<div id="main">
</div>
</div>
<script src="./index.js"></script>

175
index.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff