-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
28 lines (27 loc) · 911 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<meta content='IE=edge,chrome=1' http-equiv='X-UA-Compatible' />
<meta content='width=device-width, user-scalable=0, initial-scale=1.0, maximum-scale=1.0;' name='viewport' />
<script src='http://code.jquery.com/jquery-1.6.4.min.js' type='text/javascript'></script>
<title>
Touch Events
</title>
<script type='text/javascript'>
//<![CDATA[
$(function() {
var body = $('body')[0];
body.width = $(window).width();
body.height = $(window).height();
$(document).bind('mousedown mouseup mousemove mouseover mouseout keydown keypress keyup touchstart touchmove touchend click', function(e) {
$(".console").append(e.type + '<br>');
});
});
//]]>
</script>
</head>
<body>
<div class='console'></div>
</body>
</html>