forked from 01e9/adaptive-switch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
48 lines (41 loc) · 1.63 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css" />
<style type="text/css">
.adaptive-switch.input-id--checkbox-a label.switch-label-left {
color: #c00000;
}
.adaptive-switch.input-id--checkbox-a label.switch-label-right {
color: #008000;
}
.adaptive-switch.input-id--checkbox-b {
font-size: 50px;
}
</style>
</head>
<body>
<div id="demo-1">
<input type="checkbox" />
</div>
<br/>
<div id="demo-2">
<input type="checkbox" data-switch-left="I don't agree" data-switch-right="I agree to the Terms & Conditions" />
</div>
<br/>
<div id="demo-3">
<input type="checkbox" id="checkbox-a" checked class="foo bar" /> <input type="checkbox" id="checkbox-b" data-switch-left="Left" data-switch-right="Right" />
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="jquery.adaptive-switch.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('input[type="checkbox"]').adaptiveSwitch();
});
</script>
<a href="https://github.com/moldcraft/adaptive-switch"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"></a>
</body>
</html>