forked from gobwas/jQuery-Loading
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
44 lines (43 loc) · 1.1 KB
/
Copy pathexample.html
File metadata and controls
44 lines (43 loc) · 1.1 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Loading Example</title>
<script src="jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../src/core.js" type="text/javascript"></script>
<script src="../src/config.js" type="text/javascript"></script>
<script src="../src/algorithm/snake.js" type="text/javascript"></script>
<script src="../src/effect/simple.js" type="text/javascript"></script>
<script src="../src/effect/simple-progress.js" type="text/javascript"></script>
<script src="../src/effect/fancy.js" type="text/javascript"></script>
<script src="../src/effect/jump.js" type="text/javascript"></script>
<style>
#test {
width: 100px;
height: 200px;
background: cadetblue;
}
#wrapper {
position: absolute;
top: 20px;
left: 20px;
}
</style>
</head>
<body>
<div id="wrapper">
<div id="test">Load me!</div>
</div>
<button type="button" id="click">Load him.</button>
<script type="text/javascript">
$('#click').click(function(){
$('#test').loading({
background: {
css: {
"z-index": 99999
}
}
});
});
</script>
</body>
</html>