-
Notifications
You must be signed in to change notification settings - Fork 65
/
toggleswitch.html
67 lines (62 loc) · 1.81 KB
/
toggleswitch.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="Author" content="Tencent.AlloyTeam" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no,target-densitydpi=medium-dpi" />
<link rel="stylesheet" type="text/css" href="css/mui-base.css" />
<link rel="stylesheet" type="text/css" href="css/mui-toggleswitch.css" />
<style type="text/css">
.container{
padding: 10px;
}
h4{
margin: 10px 0;
}
</style>
</head>
<div class="container">
<h4>toggle switch</h4>
<div id="toggleSwitch" class="toggle_switch">
<div class="toggle_wrap">
<div class="toggle_text">
<span class="toggle_text_blue">on</span>
<span class="toggle_text_white">off</span>
</div>
<a class="toggle_handler toggle_handler_white"></a>
</div>
</div>
<div id="bl_toggleSwitch" class="toggle_switch" style="margin-left:30px;">
<div class="toggle_wrap">
<div class="toggle_text">
<span class="toggle_text_blue">on</span>
<span class="toggle_text_black">off</span>
</div>
<a class="toggle_handler toggle_handler_black"></a>
</div>
</div>
<div id="b_toggleSwitch" class="toggle_switch" style="margin-left:30px;">
<div class="toggle_wrap">
<div class="toggle_text">
<span class="toggle_text_blue">on</span>
<span class="toggle_text_deepblue">off</span>
</div>
<a class="toggle_handler toggle_handler_blue"></a>
</div>
</div>
</div>
<script type="text/javascript" src="js/JM.js"></script>
<script type="text/javascript" src="js/toggleswitch.js"></script>
<script type="text/javascript">
var ts = MUI.ToggleSwitch({
id:"toggleSwitch"
});
var bl_ts = MUI.ToggleSwitch({
id:"bl_toggleSwitch"
});
var b_ts = MUI.ToggleSwitch({
id:"b_toggleSwitch"
});
</script>
</body>
</html>