-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (70 loc) · 1.29 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
<!DOCTYPE html>
<html>
<style>
* {
margin: 0;
padding: 0;
}
body,
html {
background-color: black;
color: white;
}
body {
overflow-x: scroll;
width: fit-content;
}
.char {
display: inline-block;
color: white;
background-color: red;
padding: 8px;
width: 20px;
height: 20px;
margin: 0px;
user-select: none;
text-align: center;
font-weight: bold;
border: 2px solid black;
vertical-align: top;
}
.word {
position: relative;
display: block;
height: 42px;
white-space: nowrap;
}
.pattern {
top: 0px;
left: 0px;
width: fit-content;
}
.cursor {
border-top: 2px solid white;
}
#playground {
padding: 16px;
margin-top: 20px;
}
#options {
position: fixed;
bottom: 0px;
padding: 8px;
}
.hidden {
opacity: 0;
}
.seen {
color: white;
}
</style>
<head>
</head>
<body>
<div id="playground">
<div class="word" id="word"></div>
<div class="word pattern" id="pattern"></div>
</div>
<script src="main.js"></script>
</body>
</html>