-
Notifications
You must be signed in to change notification settings - Fork 3
/
sandbox.html
85 lines (82 loc) · 3.67 KB
/
sandbox.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
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="lib/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="jquery-kabuki.js"></script>
<script type="text/javascript">
$(function(){
$('#kabuki-earthquake').kabuki().earthquake({'css': 'padding-left'});
$('#kabuki-rainbow').kabuki().rainbow();
$('#kabuki-earthquake-and-rainbow').kabuki().earthquake({'css': 'padding-left'}).rainbow();
$('#kabuki-bound').kabuki().bound({'interval': 25});
$('#infinity_scroll').kabuki().infinity_scroll({'speed': 10});
$('#infinity_scroll_blinking').kabuki().infinity_scroll({'blink': true, 'speed': 10});
var click_stop_test = $('#kabuki-click-stop').kabuki().earthquake();
$('#kabuki-click-stop').click(function() {
click_stop_test.stop();
});
var click_start_test = $('#kabuki-click-start').kabuki().bound({'auto':false, 'interval': 25});
$('#kabuki-click-start').click(function() {
click_start_test.start();
});
$('#kabuki-image-changer').kabuki().image_change({
'interval': 100,
'images': ['lib/robot.png', 'lib/javascript.png']});
$('#kabuki-image-changer-random').kabuki().image_change({
'interval': 100,
'random': true,
'images': ['lib/robot.png', 'lib/javascript.png']});
$('#kabuki-image-change-background').kabuki().image_change({
'interval': 100,
'target': 'background' ,
'images': ['lib/robot.png', 'lib/javascript.png']});
$('#kabuki-image-change-background-and-image-change').kabuki().image_change({
'interval': 100,
'target': 'background' ,
'images': ['lib/robot.png', 'lib/javascript.png']});
$('#kabuki-image-change-background-and-image-change').kabuki().infinity_scroll();
});
</script>
</head>
<body>
<h1>jquery-kabuki.js</h1>
<h2>What's kabuki?</h2>
<p> Kabuki is Japanese Traditional Art.
<h2>Kabuki().earthquake()</h2>
<p id="kabuki-earthquake">kabuki</p>
<h2>Kabuki().rainbow()</h2>
<p id="kabuki-rainbow">kabuki</p>
<h2>Kabuki().earthquake().rainbow()</h2>
<p id="kabuki-earthquake-and-rainbow">kabuki</p>
<h2>Kabuki().bound()</h2>
<div style="height: 200px">
<span id="kabuki-bound" >Bound!!</span>
</div>
<h2>Kabuki().inifinity_scroll()</h2>
<div id="infinity_scroll" style="background-image: url('lib/robot.png'); height: 200px; min-height: 200px;"></div>
<h2>Kabuki().inifinity_scroll()</h2>
<div id="infinity_scroll_blinking" style="background-image: url('lib/robot.png'); height: 200px; min-height: 200px;"></div>
<h2>Kabuki().image_change()</h2>
<div id="image-change" style="min-height: 512px">
<img id="kabuki-image-changer" />
</div>
<h2>Kabuki().image_change({random:true})</h2>
<div id="image-change" style="min-height: 512px">
<img id="kabuki-image-changer-random" />
</div>
<h2>Kabuki().image_change({target: 'background')</h2>
<div id="kabuki-image-change-background" style="min-height: 512px">
</div>
<h2>Kabuki().image_change({target: 'background')</h2>
<div id="kabuki-image-change-background-and-image-change" style="min-height: 512px">
</div>
<h2>Manager</h2>
<h2>kabuki().stop()</h2>
<div id="kabuki-click-stop">kabuki</p>
</div>
<h2>kabuki().start()</h2>
<div id="kabuki-click-start">kabuki</div>
</body>
</html>