-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
25 lines (25 loc) · 715 Bytes
/
index.html
File metadata and controls
25 lines (25 loc) · 715 Bytes
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
<html>
<head>
<title>Fastbutton Demo</title>
<script type="text/javascript" src="jquery-min.js"></script>
<script type="text/javascript" src="fastbutton.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<link rel="stylesheet" href="style.css">
<script>
$(document).ready(function(){
$('#clickButton').click(function(){
$('.flash').toggle();
});
$('#fastClickButton').fastClick(function(){
$('.flash').toggle();
});
});
</script>
</head>
<body>
<div id="clickButton" class="button">Regular click</div>
<div id="fastClickButton" class="button">Fast click</div>
<div style="clear:both;"></div>
<div class="flash">Clicked!</div>
</body>
</html>