-
Notifications
You must be signed in to change notification settings - Fork 17
/
index.html
123 lines (100 loc) · 4.57 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
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
<!------------------------------------------------------------------------------
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
------------------------------------------------------------------------------>
<html>
<head>
<title>Mobile Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Files for the SpiffyUI framework -->
<script type="text/javascript" src="jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="touchslider.js"></script>
<link type="text/css" rel="stylesheet" href="touchslider.css" />
</head>
<body>
<div id="slidecont">
<div id="slidebar">
<div class="cell" id="maintitle">
<h1>Horizontal Slide View</h1>
</div>
<div class="cell">
<p>
This is a JavaScript implementation of a mobile style <a href="http://developer.android.com/reference/android/widget/HorizontalScrollView.html">Horizontal Slide View</a>.
</p>
</div>
<div class="cell">
<p>
Use your finger to drag it left and right to all of the items in the view.
</p>
</div>
<div class="cell">
<p>
Since this is JavaScript it works on every mobile device with touch support
</p>
</div>
<div class="cell" id="iphone"> </div>
<div class="cell" id="ipad"> </div>
<div class="cell" id="maintitle">
<h1 style="margin-top: 50px;">and</h1>
</div>
<div class="cell" id="android"> </div>
<div class="cell">
<h1>it does a good job with pictures</h1>
</div>
<div class="cell" id="snail"> </div>
<div class="cell" id="habenaro"> </div>
<div class="cell" id="stones"> </div>
<div class="cell">
<p>
Each cell of the slider is HTML so you can put anything you want in it
</p>
</div>
<div class="cell" id="gmail"> </div>
<div class="cell" id="youtube"> </div>
<div class="cell" id="ebay"> </div>
<div class="cell">
<p>
The slider works just like the native application sliders
</p>
</div>
<div class="cell">
<p>
It snaps each cell into place and supports momentum
</p>
</div>
<div class="cell">
<p>
Try dragging fast and watch the items fly by
</p>
</div>
<div class="cell" id="cupcake"> </div>
<div class="cell" id="cans"> </div>
<div class="cell" id="tomato"> </div>
<div class="cell" id="rabbit"> </div>
<div class="cell" id="gerbera"> </div>
<div class="cell" id="zebra"> </div>
<div class="cell">
<h1>Want to know how it works?</h1>
</div>
<div class="cell">
Read <a href="#">Creating A Mobile Touch Slide Panel With JQuery</a>
</div>
</div>
</div>
<div style="display: none; margin-top: 50px;">
<h3>Out:</h3>
<div id="output"></div>
</div>
</body>
</html>