-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·41 lines (31 loc) · 915 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
29
30
31
32
33
34
35
36
37
38
39
40
41
<!doctype html>
<html lang="en">
<head>
<style>
.button {
background-color: #dedede;
width: 100px;
padding: 2px 8px;
text-align: center;
}
.button:hover {
cursor: pointer;
}
</style>
</head>
<body>
<div class="button" draggable="true">Click me</div>
<div id="log"></div>
<!-- load jquery from cdn -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="roberclick.js"></script>
<script>
$('.button').robertClick({
click: function() { $('#log').text('click'); },
dblclick: function() { $('#log').text('dblclick'); },
longclick: function() { $('#log').text('longclick'); },
dragclick: function() { $('#log').text('dragclick'); }
});
</script>
</body>
</html>