-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
45 lines (44 loc) · 2.5 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>
<html>
<head>
<title>Checked Polyfill</title>
<link href='http://fonts.googleapis.com/css?family=Vollkorn:700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="demo.css">
</head>
<body>
<div class="wrapper">
<h1>Checked Polyfill</h1>
<p class="lead">The <code>:checked</code> pseudo-class allows developers to create custom checkboxes and checkbox buttons using pure CSS. This CSS3 feature <a href="http://kimblim.dk/css-tests/selectors/">doesn't work on IE8 or earlier</a>, so on those browsers, Checked Polyfill provides a <code>.checked</code> class that works just like <code>:checked</code>.</p>
<form>
<fieldset>
<legend>What food should we serve?</legend>
<div><input type="checkbox" name="food" id="pizza" value="pizza"><label for="pizza">Pizza</label></div>
<div><input type="checkbox" name="food" id="cake" value="cake"><label for="cake">Cake</label></div>
<div><input type="checkbox" name="food" id="veggies" value="veggies"><label for="veggies">Veggies</label></div>
<div><input type="checkbox" name="food" id="wings" value="wings"><label for="wings">Wings</label></div>
<div><input type="checkbox" name="food" id="tofu" value="tofu"><label for="tofu">Tofu</label></div>
</fieldset>
<fieldset>
<legend>How big will the party be?</legend>
<div><input type="radio" name="size" id="small" value="small"><label for="small">Small</label></div>
<div><input type="radio" name="size" id="medium" value="medium"><label for="medium">Medium</label></div>
<div><input type="radio" name="size" id="large" value="large"><label for="large">Large</label></div>
<div><input type="radio" name="size" id="xlarge" value="xlarge"><label for="xlarge">Extra Large</label></div>
<div><input type="radio" name="size" id="timessquare" value="timessquare"><label for="timessquare">All of Times Square</label></div>
</fieldset>
</form>
<div class="btn-container">
<a href="https://github.com/rdebeasi/checked-polyfill/archive/master.zip" class="btn btn-primary">Download</a>
<a href="https://github.com/rdebeasi/checked-polyfill" class="btn btn-secondary">View on GitHub</a>
</div>
<p class="credit">Made with <3 in Boston by <a href="http://www.ryandebeasi.com/">Ryan DeBeasi</a></p>
</div>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="checked-polyfill.min.js"></script>
<script>
$(function() {
$('input:radio, input:checkbox').checkedPolyfill();
});
</script>
</body>
</html>