-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
106 lines (102 loc) · 6.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<title>Word Masters</title>
</head>
<body>
<h1>Word Masters!</h1>
<form id="row1">
<input id="letter1" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" autofocus/>
<input id="letter2" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter3" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter4" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter5" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter6" type="submit" hidden />
</form>
<form id="row2">
<input id="letter7" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter8" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter9" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter10" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter11" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter12" type="submit" hidden />
</form>
<form id="row3">
<input id="letter13" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter14" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter15" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter16" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter17" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter18" type="submit" hidden />
</form>
<form id="row4">
<input id="letter19" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter20" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter21" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter22" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter23" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter24" type="submit" hidden />
</form>
<form id="row5">
<input id="letter25" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter26" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter27" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter28" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter29" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter30" type="submit" hidden />
</form>
<form id="row6">
<input id="letter31" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter32" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter33" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter34" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter35" onkeydown="return /[A-Za-z]/.test(event.key)" maxlength="1" autocomplete="off" class="letterSquare" />
<input id="letter36" type="submit" hidden />
</form>
<div id="winning"></div>
<div class="container">
<div class="keyboard">
<div class="row">
<button id="btn-Q" class="btn">Q</button>
<button id="btn-W" class="btn">W</button>
<button id="btn-E" class="btn">E</button>
<button id="btn-R" class="btn">R</button>
<button id="btn-T" class="btn">T</button>
<button id="btn-Y" class="btn">Y</button>
<button id="btn-U" class="btn">U</button>
<button id="btn-I" class="btn">I</button>
<button id="btn-O" class="btn">O</button>
<button id="btn-P" class="btn">P</button>
</div>
<div class="row">
<button id="btn-A" class="btn">A</button>
<button id="btn-S" class="btn">S</button>
<button id="btn-D" class="btn">D</button>
<button id="btn-F" class="btn">F</button>
<button id="btn-G" class="btn">G</button>
<button id="btn-H" class="btn">H</button>
<button id="btn-J" class="btn">J</button>
<button id="btn-K" class="btn">K</button>
<button id="btn-L" class="btn">L</button>
</div>
<div class="row">
<button id="btn-Enter" class="enter">Enter</button>
<button id="btn-Z" class="btn">Z</button>
<button id="btn-X" class="btn">X</button>
<button id="btn-C" class="btn">C</button>
<button id="btn-V" class="btn">V</button>
<button id="btn-B" class="btn">B</button>
<button id="btn-N" class="btn">N</button>
<button id="btn-M" class="btn">M</button>
<button id="btn-Backspace" class="delete">Backspace</button>
</div>
</div>
</div>
</div>
<script src="./script.js"> </script>
</body>
</html>