forked from richadams/jquery-tripleclick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
54 lines (48 loc) · 1.23 KB
/
test.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>event:tripleclick</title>
<meta charset="utf-8" />
<style>
.events div {
width: 100px;
height: 100px;
margin: 20px;
float: left;
padding: 10px;
font-weight: bold;
}
.events #one {
background: #f00;
}
.events #two {
background: #0f0;
}
.events #debug {
clear: both;
background: #000;
color: #fff;
width: 100%;
display: block;
margin-top: 2em;
min-height: 100px;
padding-bottom: 1em;
font-family: monospace;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script src="tripleclick.js" type="text/javascript"></script>
<script type="text/javascript">
$(function()
{
$("#one").bind("tripleclick", function() { $("#debug").append("\ntripleclick on ONE"); });
$("#two").on("tripleclick", function() { $("#debug").append("\ntripleclick on TWO"); });
});
</script>
</head>
<body class="events">
<div id="one">ONE</div>
<div id="two">TWO</div>
<pre id="debug"></pre>
</body>
</html>