forked from websanova/mousestop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (65 loc) · 3.02 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Websanova :: mousestop</title>
<!-- filestart -->
<link rel="icon" type="image/vnd.microsoft.icon" href="./demo/img/favicon.ico" />
<link rel="Stylesheet" type="text/css" href="./demo/demo.css" />
<script type="text/javascript" src="./lib/jquery.1.10.2.min.js"></script>
<!-- fileend -->
</head>
<body>
<!-- headstart -->
<header>
<a id="header-logo" href="http://websanova.com"></a>
<div id="header-links">
<a href="http://websanova.com">Blog</a>
<a href="http://websanova.com/plugins">Plugins</a>
<a href="http://websanova.com/extensions">Extensions</a>
<a href="http://websanova.com/services">Services</a>
</div>
</header>
<!-- headend -->
<div id="content">
<h1 id="plugin-name">mousestop.js</h1>
<div class="content-box">
<div id="test" style="display:inline-block;padding:20px;border:solid 1px;">test default</div>
<div id="test2" style="display:inline-block;padding:20px;border:solid 1px;">test (long) delay</div>
<div id="test3" style="display:inline-block;padding:20px;border:solid 1px;">test .on()</div>
<div id="test4" style="display:inline-block;padding:20px;border:solid 1px;">test .on() timeToStop</div>
<div id="output" style="width:300px;height:150px;margin-top:5px;border:solid #CACACA 1px;overflow:auto;"></div>
<script type="text/javascript" src="./mousestop.js"></script>
<script type="text/javascript">
$('#test')
.mousestop(function() { $('#output').prepend('mousestop<br/>'); })
.mousemove(function() { $('#output').prepend('mousemove<br/>'); })
.mouseover(function() { $('#output').prepend('mouseover<br/>'); })
.mouseout(function() { $('#output').prepend('mouseout<br/>'); });
$('#test').mousestop().trigger('mousestop');
$('#test2').mousestop(2000, function() { $('#output').prepend('mousestop 2<br/>'); });
$('#test3').on('mousestop', function() { $('#output').prepend('mousestop 3<br/>'); });
$('#test4').on('mousestop', {timeToStop:1000}, test);
function test(e) {
console.log(e);
$('#output').prepend('mousestop 4<br/>');
}
</script>
</div>
</div>
<!-- footstart -->
<footer>
<div id="footer-icons">
<!--a id="youtube-icon" href="http://websanova.com/youtube" target="_blank"></a-->
<a id="stumbleupon-icon" href="http://websanova.com/stumbleupon" target="_blank"></a>
<a id="linkedin-icon" href="http://websanova.com/linkedin" target="_blank"></a>
<a id="facebook-icon" href="http://websanova.com/facebook" target="_blank"></a>
<a id="googleplus-icon" href="http://websanova.com/googleplus" target="_blank"></a>
<a id="twitter-icon" href="http://websanova.com/twitter" target="_blank"></a>
<a id="github-icon" href="http://websanova.com/github" target="_blank"></a>
<a id="rss-icon" href="http://websanova.com/feed" target="_blank"></a>
</div>
</footer>
<!-- footend -->
</body>
</html>