/
taps.html
58 lines (57 loc) · 1.25 KB
/
taps.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>
<html>
<head>
<meta charset="utf8">
<title>Tappable</title>
<meta name="viewport" content="width=device-width, user-scalable=no">
<link rel="author" href="https://iamdustan.com"/>
<style>
body {
background: #eee;
}
div {
box-sizing: border-box;
background: #fff;
border: 1px solid #ddd;
display: inline-block;
vertical-align: top;
height: 33vh;
padding: 3vw;
width: 43vw;
margin: 2vw;
}
div p {
font-size: 0.91666em;
}
#output {
background: #fff;
border: 1px solid #ddd;
margin: 2vw;
padding: 0.666em;
height: 50vh;
overflow: auto;
}
#output li {
list-style: none;
}
#output strong {
display: inline-block;
width: 5em;
}
</style>
</head>
<body id="body">
<nav>
<a href="./">Index</a>
<a href="./drags.html">Drags</a>
</nav>
<div id="tappable" tabindex=0>Tap.
<p>Use JS to manage `tap` intent and fire as soon as possible.</p>
</div>
<div id="clickable" tabindex=0>Click.
<p>Bind to touch and pointer start events to track time from intent start to browser action.</p>
</div>
<ul id="output"></ul>
<script async src="taps.js"></script>
</body>
</html>