forked from iloveitaly/jquery.loadmask.spin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.html
41 lines (38 loc) · 1.28 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>jQuery LoadMask Demo</title>
<link href="jquery.loadmask.spin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<script type="text/javascript" src="http://fgnass.github.com/spin.js/dist/spin.min.js"></script>
<script type='text/javascript' src='jquery.loadmask.spin.js'></script>
<style>
body{font-size:11px;font-family:tahoma;}
#content { padding:5px;width:200px; }
#buttons { padding-left:40px; }
</style>
</head>
<body>
Please fill out the form:
<div id="content">
<div>Field1: <input type="text"></div>
<div>Field2: <input type="text"></div>
<div>Field3: <input type="text"></div>
<div>Field4: <input type="text"></div>
</div>
<div id="buttons">
<input type="button" value="Process" id="process">
<input type="button" value="Cancel" id="cancel">
</div>
<script>
$(document).ready(function(){
$("#process").bind("click", function () {
$("#content").mask({'label':"Waiting..."});
});
$("#cancel").bind("click", function () {
$("#content").unmask();
});
});
</script>
</body>
</html>