-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscrollwheel.html
More file actions
153 lines (138 loc) · 4.76 KB
/
scrollwheel.html
File metadata and controls
153 lines (138 loc) · 4.76 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<link rel="stylesheet" href="gui.css" />
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.js"></script>
<script src="mobiscroll-1.5.1.js" type="text/javascript"></script>
<link href="mobiscroll-1.5.1.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
$(document).ready(function () {
var wheels = [{
'Repetisjoner': {
1: 15,
2: 20,
3: 25,
4: 30,
5: 35,
6: 40
},
'Kg': {
1: 10,
2: 15,
3: 20,
4: 25,
5: 30,
6: 35,
7: 40
},
'Serier': {
1: 1,
2: 2,
3: 3,
4: 4,
5: 5,
6: 6
}
}];
$('#custom').scroller({
parseValue: function (s) {
if (s !== '') {
var d = s.split(' ');
}
else {
var d = [1,1,1];
}
return d;
}
});
/*
$('#custom').scroller({
formatResult: function (data) {
if (data == '') {
var d = "";
}
else {
var r = data[0];
var k = data[1];
var s = data[2];
var d = r + " x " + k " : " + s;
}
return d;
}
});
*/
$('#custom').click(function() { $(this).scroller('show'); });
$('#custom').scroller('option', { width: 90, wheels: wheels, theme: "default", mode: "scroller", setText: "Lagre", cancelText: "Avbryt" });
});
</script>
</head>
<body>
<div data-role="page" id="main" data-theme="b">
<div data-role="header" class="ui-header ui-bar-f ui-header-fixed ui-fixed-overlay" data-theme="b" role="banner" style="top: 0px;">
<div class="ui-header-text ui-btn-header-grp" align="center">
Mine Mål
</div>
</div>
<div data-role="content" data-theme="b">
<form id="testform">
<div data-role="fieldcontain">
<label for="theme">Theme</label>
<select name="theme" id="theme" data-native-menu="false">
<option value="default">Default</option>
<option value="android">Android</option>
<option value="sense-ui">Sense UI</option>
<option value="ios">iOS</option>
</select>
</div>
<div data-role="fieldcontain">
<label for="mode">Mode</label>
<select name="mode" id="mode" data-native-menu="false">
<option value="scroller">Scroller</option>
<option value="clickpick">Clickpick</option>
</select>
</div>
<div data-role="fieldcontain">
<label for="date1">Date</label>
<input type="text" name="date1" id="date1" class="mobiscroll" value="09/30/2011" />
</div>
<div data-role="controlgroup" data-type="horizontal">
<button id="show" data-theme="a">Show</button>
<button id="disable" data-theme="a">Disable</button>
<button id="enable" data-theme="a">Enable</button>
<button id="get" data-theme="a">Get</button>
<button id="set" data-theme="a">Set</button>
</div>
<div data-role="fieldcontain">
<label for="date2">Time</label>
<input type="text" name="date2" id="date2" class="mobiscroll" readonly="readonly" value="11:23 AM" />
</div>
<div data-role="fieldcontain">
<label for="date3">Datetime</label>
<input type="text" name="date3" id="date3" class="mobiscroll" />
</div>
<div data-role="fieldcontain">
<label for="custom">Custom (Fruits :D)</label>
<input type="text" name="custom" id="custom" class="mobiscroll" value="" />
</div>
</form>
</div>
<div data-role="footer" data-id="navbar" role="navigation">
<div class="ui-grid-b">
<div class="ui-block-b ui-btn-footer-grp ui-btn-text" data-theme="b">
<a href="scrollview.html" data-role="bar" data-theme="b">Scrollview</a>
</div>
<div class="ui-block-b ui-btn-footer-grp" data-theme="b">
<a href="scrollwheel.html" data-role="bar" data-theme="b">Scrollwheel</a>
</div>
<div class="ui-block-b ui-btn-footer-grp" data-theme="b">
<a href="indexv2.html" data-role="bar" data-theme="b">Index</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>