Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (59 loc) · 2.77 KB
/
Copy pathindex.html
File metadata and controls
68 lines (59 loc) · 2.77 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript Event KeyCodes</title>
<link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="JavaScript Event KeyCodes">
<meta name="twitter:description" content="Keycode testing tool - which keys map to which keycodes?">
<meta name="twitter:creator" content="@wesbos">
<meta name="twitter:image" content="http://f.cl.ly/items/1Z3e0c1R36001s1D271A/ss%202014-04-28%20at%2012.08.06%20PM.png">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="">
</head>
<body>
<canvas width="128" height="128" hidden></canvas>
<div class="display">
<div class="wrap" aria-live="polite" aria-atomic="true">
<p class="keycode-display"></p>
<p class="text-display">Press any key to get the JavaScript event keycode</p>
<div class="cards hide">
<div class="card item-key">
<div class="card-header">event.key</div>
<div class="card-main">
<div class="main-description">key</div>
</div>
</div>
<div class="card item-which">
<div class="card-header">event.which</div>
<div class="card-main">
<div class="main-description">which</div>
</div>
</div>
<div class="card item-code">
<div class="card-header">event.code</div>
<div class="card-main">
<div class="main-description">code</div>
</div>
</div>
</div>
</div>
</div>
<span class="love">Made with love by
<a href="http://wesbos.com" target="_blank">Wes Bos</a> — fork or suggest edits on
<a href="http://github.com/wesbos/keycodes" target="_blank">GitHub</a> —
<a href="https://twitter.com/wesbos" class="twitter-follow-button" data-show-count="false" target="_blank">Follow @wesbos</a>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://keycode.info" data-text="Nice tool for finding JavaScript event keycodes"
data-via="wesbos" data-related="wesbos" target="_blank">Tweet</a>
</span>
<script type='text/javascript'>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service-worker.js');
}
</script>
<script src="scripts.js"></script>
<script>!function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + '://platform.twitter.com/widgets.js'; fjs.parentNode.insertBefore(js, fjs); } }(document, 'script', 'twitter-wjs');</script>
</body>
</html>