forked from flynntsc/mobiscroll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-jquery-2.6.2-dev.html
executable file
·219 lines (207 loc) · 10.9 KB
/
index-jquery-2.6.2-dev.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
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title>Mobiscroll</title>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="dev/js/mobiscroll.core-2.6.2.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-hu.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-de.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-es.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-fr.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-it.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-no.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-pt-BR.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-zh.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-nl.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-tr.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.core-2.6.2-ja.js" type="text/javascript"></script>
<link href="dev/css/mobiscroll.core-2.6.2.css" rel="stylesheet" type="text/css" />
<link href="dev/css/mobiscroll.animation-2.6.2.css" rel="stylesheet" type="text/css" />
<script src="dev/js/mobiscroll.datetime-2.6.2.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.list-2.6.2.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.list-2.6.2.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.select-2.6.2.js" type="text/javascript"></script>
<script src="dev/js/mobiscroll.android-2.6.2.js" type="text/javascript"></script>
<link href="dev/css/mobiscroll.android-2.6.2.css" rel="stylesheet" type="text/css" />
<script src="dev/js/mobiscroll.android-ics-2.6.2.js" type="text/javascript"></script>
<link href="dev/css/mobiscroll.android-ics-2.6.2.css" rel="stylesheet" type="text/css" />
<script src="dev/js/mobiscroll.ios-2.6.2.js" type="text/javascript"></script>
<link href="dev/css/mobiscroll.ios-2.6.2.css" rel="stylesheet" type="text/css" />
<script src="dev/js/mobiscroll.jqm-2.6.2.js" type="text/javascript"></script>
<link href="dev/css/mobiscroll.jqm-2.6.2.css" rel="stylesheet" type="text/css" />
<link href="dev/css/mobiscroll.sense-ui-2.6.2.css" rel="stylesheet" type="text/css" />
<script src="dev/js/mobiscroll.wp-2.6.2.js" type="text/javascript"></script>
<link href="dev/css/mobiscroll.wp-2.6.2.css" rel="stylesheet" type="text/css" />
<!--Includes-->
<style type="text/css">
body {
padding: 0;
margin: 0;
font-family: arial, verdana, sans-serif;
font-size: 12px;
background: #ddd;
}
input, select {
width: 100%;
padding: 5px;
margin: 5px 0;
border: 1px solid #aaa;
box-sizing: border-box;
border-radius: 5px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-webkit-border-radius: 5px;
}
.header {
border: 1px solid #333;
background: #111;
color: white;
font-weight: bold;
text-shadow: 0 -1px 1px black;
background-image: linear-gradient(#3C3C3C,#111);
background-image: -webkit-gradient(linear,left top,left bottom,from(#3C3C3C),to(#111));
background-image: -moz-linear-gradient(#3C3C3C,#111);
}
.header h1 {
text-align: center;
font-size: 16px;
margin: .6em 0;
padding: 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.content {
padding: 15px;
background: #fff;
}
.car {
position: relative;
height: 100%;
}
.car img {
height: 28px;
display: block;
margin: 0 auto;
}
.car .img-cont {
width: 80px;
height: 28px;
text-align: center;
float: left;
position: relative;
top: 50%;
margin-top: -14px;
}
.car span {
float: left;
}
</style>
<script type="text/javascript">
$(function () {
var curr = new Date().getFullYear();
var opt = {
}
opt.date = {preset : 'date'};
opt.datetime = { preset : 'datetime', minDate: new Date(2012,3,10,9,22), maxDate: new Date(2014,7,30,15,44), stepMinute: 5 };
opt.time = {preset : 'time'};
opt.tree_list = {preset : 'list', labels: ['Region', 'Country', 'City']};
opt.image_text = {preset : 'list', labels: ['Cars']};
opt.select = {preset : 'select'};
<!--Script-->
$('select.changes').bind('change', function() {
var demo = $('#demo').val();
$(".demos").hide();
if (!($("#demo_"+demo).length))
demo = 'default';
$("#demo_" + demo).show();
$('#test_'+demo).val('').scroller('destroy').scroller($.extend(opt[$('#demo').val()], { theme: $('#theme').val(), mode: $('#mode').val(), display: $('#display').val(), lang: $('#language').val() }));
});
$('#demo').trigger('change');
});
</script>
</head>
<body>
<div class="header">
<h1>Mobiscroll</h1>
</div>
<div class="content">
<div>
<label for="theme">Theme</label>
<select name="theme" id="theme" class="changes">
<option value="default">Default</option>
<option value="android">Android</option>
<option value="android-ics light">Android ICS Light</option>
<option value="android-ics">Android ICS</option>
<option value="ios">iOS</option>
<option value="jqm">Jquery Mobile</option>
<option value="sense-ui">Sense UI</option>
<option value="wp light">Windows Phone Light</option>
<option value="wp">Windows Phone</option>
<!--Themes-->
</select>
</div>
<div>
<label for="mode">Mode</label>
<select name="mode" id="mode" class="changes">
<option value="scroller">Scroller</option>
<option value="clickpick">Clickpick</option>
<option value="mixed">Mixed</option>
</select>
</div>
<div>
<label for="display">Display</label>
<select name="display" id="display" class="changes">
<option value="modal">Modal</option>
<option value="inline">Inline</option>
<option value="bubble">Bubble</option>
<option value="top">Top</option>
<option value="bottom">Bottom</option>
</select>
</div>
<div>
<label for="language">Language</label>
<select name="language" id="language" class="changes">
<option value="">English</option>
<option value="hu">Magyar</option>
<option value="de">Deutsch</option>
<option value="es">Español</option>
<option value="fr">Français</option>
<option value="it">Italiano</option>
<option value="no">Norsk</option>
<option value="pt-BR">Pr Brasileiro</option>
<option value="zh">Chinese</option>
<option value="nl">Nederlands</option>
<option value="tr">Türkçe</option>
<option value="ja">Japanese</option>
<!--Lang-->
</select>
</div>
<div>
<label for="demo">Demo</label>
<select name="demo" id="demo" class="changes">
<option value="date" selected>Date</option>
<option value="datetime" >Datetime</option>
<option value="time" >Time</option>
<option value="tree_list" >Tree List</option>
<option value="image_text" >Image & Text</option>
<option value="select" >Select</option>
<!--Demos-->
</select>
</div>
<div id="demo_default" class="demos">
<label for="test_default">Click here to try</label>
<input type="text" name="test_default" id="test_default" />
</div>
<div data-role="fieldcontain" class="demos fieldcontain" id="demo_tree_list">
<label for="test_tree_list_dummy">Click here to try</label><ul id="test_tree_list"><li>America<ul><li>USA<ul><li>Washington</li><li>Florida</li><li>Los Angeles</li><li>San Francisco</li></ul></li><li>Canada<ul><li>Vancouver</li><li>Winnipeg</li><li>Calgary</li></ul></li><li>Brazil<ul><li>Rio de Janeiro</li><li>Sao Paolo</li></ul></li></ul></li><li>Europe<ul><li>France<ul><li>Paris</li><li>Toulouse</li><li>Marseille</li><li>Lyon</li></ul></li><li>Germany<ul><li>Berlin</li><li>Frankfurt</li><li>Hamburg</li></ul></li><li>Spain<ul><li>Madrid</li><li>Barcelona</li><li>Saragosa</li></ul></li><li>Italy<ul><li>Rome</li><li>Palermo</li><li>Genoa</li><li>Torino</li></ul></li></ul></li><li>Asia<ul><li>China<ul><li>Shanghai</li><li>Hong Kong</li><li>Beijing</li></ul></li><li>Japan<ul><li>Tokyo</li><li>Kagoshima</li><li>Osaka</li></ul></li></ul></li></ul> </div>
<div data-role="fieldcontain" class="demos fieldcontain" id="demo_image_text">
<label for="test_image_text_dummy">Click here to try</label><ul id="test_image_text"><li><div class="car"><div class="img-cont"><img src="http://mobiscroll.com/Content/img/BMW_logo.png"></div><span>BMW</span></div></li><li><div class="car"><div class="img-cont"><img src="http://mobiscroll.com/Content/img/Dacia_logo.png"></div><span>Dacia</span></div></li><li><div class="car"><div class="img-cont"><img src="http://mobiscroll.com/Content/img/Ferrari_logo.png"></div><span>Ferrari</span></div></li><li><div class="car"><div class="img-cont"><img src="http://mobiscroll.com/Content/img/Mercedes_logo.png"></div><span>Mercedes</span></div></li><li><div class="car"><div class="img-cont"><img src="http://mobiscroll.com/Content/img/Opel_logo.png"></div><span>Opel</span></div></li><li><div class="car"><div class="img-cont"><img src="http://mobiscroll.com/Content/img/Renault_logo.png"></div><span>Renault</span></div></li><li><div class="car"><div class="img-cont"><img src="http://mobiscroll.com/Content/img/Volkswagen_logo.png"></div><span>Volkswagen</span></div></li></ul> </div>
<div data-role="fieldcontain" class="demos fieldcontain" id="demo_select">
<label for="test_select" class="ui-input-text">Click here to try</label><select id="test_select" class="demos" data-role="none"><option value="">Please Select</option><option value="1">Atlanta</option><option value="2">Berlin</option><option value="3">Boston</option><option value="4">Chicago</option><option value="5">London</option><option value="6">Los Angeles</option><option value="7">New York</option><option value="8">Paris</option><option value="9">San Francisco</option></select> </div>
<!--Html-->
</div>
</body>
</html>