-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (50 loc) · 1.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
<!DOCTYPE html>
<html><head>
<title>Slider</title>
<meta charset="utf-8">
<meta http-equiv="imagetoolbar" content="no">
<meta name="robots" content="noindex, follow">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="../../css/common.css">
<link rel="stylesheet" type="text/css" href="slider.css">
</head><body>
<style>
body{
background:#ccc;
}
</style>
<script type="text/javascript" src="../../min.js">
load(["haml.js", "el/slider/slider.js"], function(){
function on_change(_val){
//console.log('on_change',_val);
}
var box=El('div').css({margin:'30px',height:'80%',background:'#888'}).to(document.body);
var maxLevel=El('slider',{
min:0,
max:3,
step:1,
value:10,
on_change:on_change
});
var maxLevel3=El('slider',{
on_change:on_change,
on_moved:function(_val){
log(_val);
}
});
var maxLevel2=El('slider.vertical',{
step:5,
on_change:on_change,
on_moved:function(_val){
log(_val);
}
});
//maxLevel.reset(10)
box.append( [maxLevel,maxLevel2,maxLevel3] )
//maxLevel2.reset(90)
})
</script>
</body></html>