This repository was archived by the owner on Jun 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (40 loc) · 1.29 KB
/
index.html
File metadata and controls
53 lines (40 loc) · 1.29 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Mobile Range Slider</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="af.range.css" />
<script src="appframework.js"></script>
<script>
if(!((window.DocumentTouch&&document instanceof DocumentTouch)||'ontouchstart' in window)){
var script=document.createElement("script");
script.src="http://cdn.app-framework-software.intel.com/touch.js";
var tag=$("head").append(script);
}
</script>
<body>
<div style="position:absolute;top:35px;left:5px;width:25px">
<input type="text" id="output1" style='width:25px' /></div>
<div style="padding: 30px;width:200px;">
<div id="slider1" class="slider">
</div>
</div>
<div id="slider2" class="slider">
</div>
<script type="text/javascript" src="af.range.js"></script>
<script type="text/javascript">
var input1=$("#output1").get();
var slider1 = $('#slider1').range({
value: 105,
min: 100,
max: 110,
stepFunc: function(percentage) {
input1.value = percentage;
}
});
$("#slider2").range({value:15});
$("#output1").bind("change",function(e){$("#slider1").range().val(this.value)});
</script>
</body>
</html>