-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (41 loc) · 1.09 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
<!DOCTYPE html>
<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" />
<title>KeyCode</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="style.css" />
<section id="starter">
<div id="starter-text">
Press any key to get the keycode
</div>
</section>
<div id="heading">
<h1>MyKeyCode</h1>
</div>
<div id="ascii">
<h1 id="keyCode"></h1>
</div>
<div id="infos">
<div class="info-box">
<h3>event.key</p>
<h2 id="key"></h2>
</div>
<div class="info-box">
<h3>event.location</p>
<h2 id="location">Alt</h2>
</div>
<div class="info-box">
<h3>event.which</p>
<h2 id="which">Alt</h2>
</div>
<div class="info-box">
<h3>event.code</p>
<h2 id="code">Alt</h2>
</div>
</div>
</body>
<script src="script.js"></script>
</html>