-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathrealgesturetaptest.html
More file actions
77 lines (63 loc) · 1.92 KB
/
realgesturetaptest.html
File metadata and controls
77 lines (63 loc) · 1.92 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
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Deep Tissue Real Tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style>
.touch-area {
background-color: #f00;
width: 240px;
height: 240px;
display: inline-block;
margin: 24px;
}
.touch-log {
background-color: #808080;
width: 240px;
height: 400px;
display: inline-block;
margin: 24px;
}
html,
body {
cursor: default;
height: 100%;
-ms-scroll-translation: vertical-to-horizontal;
-ms-user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
html {
overflow: hidden;
-webkit-text-size-adjust: none;
/* Prevent font scaling in landscape */
}
body {
-ms-content-zooming: none;
font-family: 'Segoe UI', 'Segoe WP', sans-serif;
font-size: 11pt;
letter-spacing: 0.02em;
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<header>
<h1>Tap Test</h1>
</header>
<section class="touch-area"></section>
<section class="touch-log">Log Goes Here</section>
<script src="js/jquery-1.8.0.min.js" type="text/javascript"></script>
<script src="js/dev/deeptissue.js" type="text/javascript"></script>
<script src="js/dev/deeptissue.gestureTap.js" type="text/javascript"></script>
<script type="text/javascript">
$.fn.deeptissue.options.logging = true;
$( ".touch-area" ).gtap( function ( e ) {
$( ".touch-log" ).text( $( ".touch-log" ).text() + "\r\nTapped!!!" );
} );
</script>
</body>
</html>