This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.html
113 lines (109 loc) · 3.8 KB
/
demo.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
<title>Spinner demo
</title>
<link href="stylesheets/spinner.css" media="screen" rel="stylesheet" type="text/css" />
<script src="javascripts/jquery.js" type="text/javascript"></script>
<script src="javascripts/jquery.spinner.js" type="text/javascript"></script>
</head>
<body>
<div class="a_p" style="float:left; clear: both;">
beef beef beef beef beef beef beef
</div>
<div style="clear:both; height: 10px"></div>
<p class="spin_here" style="border: 1px solid green">
not beef not beef <span id="inline_text">spinnerz thiz piez</span> not beef not beef not beef not beef
</p>
<div id="mydiv">
<table border="1" id="mytable">
<tr>
<td>Cell contents</td>
<td class="spin_here">Cell contents</td>
<td>Cell contents</td>
</tr>
<tr>
<td>Cell contents</td>
<td>Cell contents</td>
<td>Cell contents</td>
</tr>
<tr>
<td class="spin_here">Cell contents</td>
<td>Cell contents</td>
<td class="spin_here">Cell contents</td>
</tr>
</table>
<br/>
<form>
<input type="text" id="myinput"/>
<br/>
<select>
<option>choice</option>
<option>choice</option>
<option>choice</option>
<option>choice</option>
<option>choice</option>
</select>
<br/>
<select>
<option>Other choice</option>
<option>Other choice</option>
<option>Other choice</option>
<option>Other choice</option>
<option>Other choice</option>
</select>
<br/>
</form>
</div>
<div id="button_container">
<button id="btn">Some button</button>
<input type="button" value="an input btn"/>
</div>
<div id="form_container">
<form id="aform">
<input type="text" value="test"/>
<input type="submit" value="save!"/>
</form>
</div>
<button id="wbtn">
Weird <b>HUGE</b> button
<p>
a b c d e f g h i j k l m n o p q r s t u v x y z
</p>
<br/>
many lines.
<ul>
<li>li1</li>
<li>li2</li>
<li>li3</li>
</ul>
</button>
<br/>
<hr/>
<button onclick="$('.a_p').spin()">Spin all elements with class "a_p"</button>
<button onclick="$('td').spin()">Spin all TD elements</button>
<button onclick="$('.spin_here').spin({unspinOthers: false})">Spin all elements with class "spin_here", leaving current spinner spinning</button>
<button onclick="$('input').spin()">Spin all INPUT elements</button>
<button onclick="$('#inline_text').spin()">Spin all element with ID 'inline_text'</button>
<button onclick="$('form select').spin()">Spin SELECTs inside FORMs</button>
<br/>
<button onclick="$('#mytable').spin({className: 'green-spinner'})">
Spin table with alternative spinner
</button>
<button onclick="$('#mytable').unspin()">Unspin table (non default spinners require manual unspinning)</button>
<br/>
<button onclick="$('#btn').spin()">spin "Some button"</button>
<br/>
<button onclick="$('input[type=button]').spin()">spin "an input btn" button</button>
<br/>
<button onclick="$('input[type=submit]').spin()">spin "save!" button</button>
<br/>
<button onclick="$('#aform').spin()">spin whole form</button>
<br/>
<button onclick="$('#wbtn').spin()">spin big weird button</button>
<br/>
<hr/>
<button onclick="$.Spinner.unspin();">Unspin all</button>
</body>
</html>