-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexample.html
More file actions
60 lines (54 loc) · 1.12 KB
/
example.html
File metadata and controls
60 lines (54 loc) · 1.12 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!doctype html>
<html>
<head>
<title>Example</title>
<style type="text/css">
body {
background: #F7F7F9;
}
.buttons {
margin: 30px auto;
width: 400px;
text-align: center;
}
.buttons button {
padding: 8px 10px;
outline: none;
border: none;
margin: 0 20px;
background-color: #000;
color: #fff;
font-size: 13px;
}
.container {
width: 400px;
height: 200px;
margin: 0 auto;
background-color: #fff;
border-radius: 5px;
padding: 20px;
border: 1px solid #E1E1E8;
box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
}
</style>
</head>
<body>
<div class="buttons">
<button id="showLoader">Show Loader</button>
<button id="hideLoader">Hide Loader</button>
</div>
<div class="container">
<h1 align="center">Container</h1>
</div>
<script src="js/jquery.min.js"></script>
<script src="center-loader.js"></script>
<script>
$('#showLoader').bind('click',function(){
$('.container').loader('show','<img style="height:50px; width:50px;" src="img/loader1.gif">');
});
$('#hideLoader').bind('click',function(){
$('.container').loader('hide');
});
</script>
</body>
</html>