-
Notifications
You must be signed in to change notification settings - Fork 11
/
example.html
executable file
·42 lines (35 loc) · 977 Bytes
/
example.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Shake</title>
</head>
<body>
<div id="content">
<h1>iOS Shake</h1>
<div id="supported">
</div>
<div id="output">
</div>
<div id="debug">
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.ios-shake.js"></script>
<script type="text/javascript">
$(document).ready(function() {
function onShake() {
$('#output').append('shake<br/>');
}
$.shake({
debug: "#debug",
supported: "#supported",
callback: function() {
onShake();
}
});
});
</script>
</body>
</html>