-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (36 loc) · 1.1 KB
/
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>wait</title>
<style type="text/css" media="screen">
.waitforme{
width:150px;
display:block;
margin:20px;
font-size:18px;
font-family:helvetica, arial, sans-serif;
}
</style>
<script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="snapwait.js"></script>
<script type="text/javascript" charset="utf-8">
$(function(){
$('.waitforme').each(function(){
var waiter = new SnapWait($(this));
waiter.element.hover(function(){
waiter.wait();
},function(){
waiter.stopWaiting();
});
});
});
</script>
</head>
<body>
<input type="submit" value="Hover Me!" class="waitforme" />
<button class="waitforme">Hover Me!</button>
<hr />
<a href="http://github.com/imagesnap/snapwait">repo</a>
</body>
</html>