-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (40 loc) · 1.38 KB
/
index.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
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>CHSwitchBox</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="CHSwitchBox.js"></script>
<style>
#container {
width: 310px;
margin: 50px auto;
padding: 15px;
background: #f8f8f8;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 0 2px rgba(190,190,190,0.75),
inset 0 1px 2px rgba(0,0,0,0.2);
-moz-box-shadow: inset 0 0 2px rgba(190,190,190,0.75),
inset 0 1px 2px rgba(0,0,0,0.2);
box-shadow: inset 0 0 2px rgba(190,190,190,0.75),
inset 0 1px 2px rgba(0,0,0,0.2);
}
</style>
<link rel="stylesheet" href="CHSwitchBox.css" type="text/css" media="screen" charset="utf-8">
<script>
$(document).ready (function () {
$('input[type=checkbox]').CHSwitchBox({onLabel : 'On', offLabel : 'Off'});
});
</script>
</head>
<body>
<div id="container">
<input type="checkbox" name="chkTest" value="15"><br />
<input type="checkbox" name="chkTest" value="30"><br />
<input type="checkbox" name="chkTest" value="5"><br />
</div>
</body>
</html>