-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
100 lines (72 loc) · 4 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>prettyCheckboxes - custom checkboxes / radio buttons - by Stephane Caron</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
google.load("jquery", "1.3.2");
</script>
<script src="../static/js/common.js" type="text/javascript" charset="utf-8"></script>
<script src="js/prettyCheckboxes.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="css/prettyCheckboxes.css" type="text/css" media="screen" title="prettyComment main stylesheet" charset="utf-8" />
</head>
<body>
<div id="wrap">
<form id="checkboxDemo" action="checkvalues.php" method="post">
<fieldset>
<legend>Custom checkboxes</legend>
<label for="checkbox-1" tabindex="1">Item 1</label>
<input type="checkbox" name="checkbox-1[braket]" id="checkbox-1" value="checkbox-1" onclick="alert('this checkbox has an onclick event');" />
<label for="checkbox-2" tabindex="2">Item 2, this item is slightly longer to go on 2 lines.</label>
<input type="checkbox" name="checkbox-2[braket]" id="checkbox-2" value="checkbox-2" />
<label for="checkbox-3" tabindex="3">Item 3</label>
<input type="checkbox" name="checkbox-3[braket]" id="checkbox-3" value="checkbox-3" />
<label for="checkbox-4" tabindex="4">Item 4</label>
<input type="checkbox" name="checkbox-4[braket]" id="checkbox-4" value="checkbox-4" />
<label for="checkbox-5" tabindex="5">Check all</label>
<input type="checkbox" name="checkbox-5[braket]" id="checkbox-5" value="checkbox-5" onclick="checkAllPrettyCheckboxes(this,$('#checkboxDemo'))" />
<input type="button" value="Check values!" onclick="javascript:checkValues('checkboxDemo'); return false;" class="button" />
<input type="submit">
</fieldset>
</form>
<br class="cboth" /><br />
<form id="radioDemo" action="checkvalues.php" method="post">
<fieldset>
<legend>Custom radio buttons</legend>
<label for="radio-1" tabindex="1">Item 1</label>
<input type="radio" name="radio-button[array1]" id="radio-1" value="radio-1" />
<label for="radio-2" tabindex="2">Item 2</label>
<input type="radio" name="radio-button[array1]" id="radio-2" value="radio-2" onclick="alert('this radio has an onclick event');" />
<label for="radio-3" tabindex="3">Item 3, this item is slightly longer to go on 2 lines.</label>
<input type="radio" name="radio-button[array1]" id="radio-3" value="radio-3" />
<label for="radio-4" tabindex="4">Item 4</label>
<input type="radio" name="radio-button[array1]" id="radio-4" value="radio-4" />
<input type="button" value="Check values!" onclick="javascript:checkValues('radioDemo'); return false;" class="button" />
<input type="submit">
</fieldset>
</form>
<br class="cboth" /><br />
<form class="inlineRadios" action="checkvalues.php">
<fieldset>
<legend>Inline radio buttons</legend>
<label for="radio-5" tabindex="1">Item 1</label>
<input type="radio" name="radio-button-inline" id="radio-5" value="radio-1" />
<label for="radio-6" tabindex="2">Item 2</label>
<input type="radio" name="radio-button-inline" id="radio-6" value="radio-2" />
<label for="radio-7" tabindex="3">Item 3</label>
<input type="radio" name="radio-button-inline" id="radio-7" value="radio-3" />
<label for="radio-8" tabindex="4">Item 4</label>
<input type="radio" name="radio-button-inline" id="radio-8" value="radio-4" />
</fieldset>
</form>
</div>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('#checkboxDemo input[type=checkbox],#radioDemo input[type=radio]').prettyCheckboxes();
$('.inlineRadios input[type=radio]').prettyCheckboxes({'display':'inline'});
});
</script>
</body>
</html>