forked from azatoth/jquery-throbber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
46 lines (44 loc) · 1.35 KB
/
example.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
<?xml version="1.1" charset="UTF-8"?>
<!DOCTYPE html>
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script src="http://js.azatoth.net/libs/jquery/1.4.2/jquery.js"></script>
<script src="http://js.azatoth.net/libs/jquery-ui/1.8/ui/jquery-ui.js"></script>
<script src="jquery.throbber.js"></script>
<link rel="stylesheet" href="http://js.azatoth.net/libs/jquery-ui/1.8/themes/base/jquery-ui.css" />
<link rel="stylesheet" href="jquery.throbber.css" />
<title>jQuery UI Throbber test</title>
<style>
.box1 {
width: 300px;
height: 100px;
border: 1px solid gray;
position: relative;
}
.box2 {
width: 300px;
height: 100px;
border: 1px solid gray;
position: relative;
background-color: black;
}
</style>
<script type="text/javascript"
src="http://jqueryui.com/themeroller/themeswitchertool/">
</script>
<script>
$(function(){
$('#switcher').themeswitcher();
$('#global').toggle( function(){$.throbber.show({overlay: false})}, $.throbber.hide );
$('.box1').throbber().throbber('show');
$('.box2').throbber().throbber('show');
});
</script>
</head>
<body>
<button id="global">Toggle global throbber</button>
<div class="box1"></div>
<div class="box2"></div>
</body>
</html>