1
1
<!DOCTYPE html>
2
- < html prefix =" og: http://ogp.me/ns# " >
2
+ < html >
3
3
< head >
4
- < meta charset ="utf-8 ">
5
- < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
- < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
-
8
- < title > Turntable.js : A Responsive JQuery Slider</ title >
9
-
10
- < meta property ="og:title " content ="Turntable.js : A Responsive JQuery Slider " />
11
- < meta property ="og:type " content ="website " />
12
- < meta property ="og:url " content ="http://polarnotion.github.io/turntable/ " />
13
- < meta property ="og:image " content ="" />
14
-
15
- < link rel ="stylesheet " href ="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css ">
16
- < link rel ="stylesheet " href ="css/normalize.css ">
17
- < link rel ="stylesheet " href ="css/bootstrap.min.css ">
18
- < link rel ="stylesheet " href ="css/animate.css ">
19
- < link rel ="stylesheet " href ="css/main.css ">
20
-
4
+ < title > Hello, World</ title >
5
+ < link rel ="stylesheet " type ="text/css " href ="css/normalize.css ">
6
+ < link rel ="stylesheet " type ="text/css " href ="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css ">
7
+ < link rel ="stylesheet " type ="text/css " href ="css/main.css ">
21
8
</ head >
22
9
< body >
23
10
24
- < nav class ="navbar navbar-fixed-top ">
25
- < div class ="container ">
26
- <!-- Brand and toggle get grouped for better mobile display -->
27
- < div class ="navbar-header ">
28
- < button type ="button " class ="navbar-toggle collapsed " data-toggle ="collapse " data-target ="#bs-example-navbar-collapse-1 " aria-expanded ="false ">
29
- < span class ="sr-only "> Toggle navigation</ span >
30
- < span class ="icon-bar "> </ span >
31
- < span class ="icon-bar "> </ span >
32
- < span class ="icon-bar "> </ span >
33
- </ button >
34
- < a class ="navbar-brand " href ="# "> Turntable.js</ a >
35
- </ div >
36
-
37
- <!-- Collect the nav links, forms, and other content for toggling -->
38
- < div class ="collapse navbar-collapse " id ="bs-example-navbar-collapse-1 ">
39
- < ul class ="nav navbar-nav navbar-right ">
40
- < li >
41
- < a href ="#install "> Install</ a >
42
- </ li >
43
- < a href ="https://s3.amazonaws.com/turntable-slider/TurntableSlider.zip " class ="btn btn-white-outline navbar-btn "> Download</ a >
11
+ < div class ="container-fluid ">
12
+
13
+ < h1 class ="text-center "> Turntable JS</ h1 >
14
+ < h3 class ="text-center "> Proof of concept</ h3 >
15
+
16
+ < div class ="row ">
17
+
18
+
19
+ < div id ="turntable " class ="turntable col-sm-6 ">
20
+ < ul >
21
+ < li data-img-src ="images/planter/plant1.JPG "> </ li >
22
+ < li data-img-src ="images/planter/plant2.JPG "> </ li >
23
+ < li data-img-src ="images/planter/plant3.JPG "> </ li >
24
+ < li data-img-src ="images/planter/plant4.JPG "> </ li >
25
+ < li data-img-src ="images/planter/plant5.JPG "> </ li >
26
+ < li data-img-src ="images/planter/plant6.JPG "> </ li >
27
+ < li data-img-src ="images/planter/plant7.JPG "> </ li >
28
+ < li data-img-src ="images/planter/plant8.JPG "> </ li >
29
+ < li data-img-src ="images/planter/plant9.JPG "> </ li >
30
+ < li data-img-src ="images/planter/plant10.JPG "> </ li >
31
+ < li data-img-src ="images/planter/plant11.JPG "> </ li >
32
+ < li data-img-src ="images/planter/plant12.JPG "> </ li >
33
+ < li data-img-src ="images/planter/plant13.JPG "> </ li >
34
+ < li data-img-src ="images/planter/plant14.JPG "> </ li >
35
+ < li data-img-src ="images/planter/plant15.JPG "> </ li >
36
+ < li data-img-src ="images/planter/plant16.JPG "> </ li >
37
+ < li data-img-src ="images/planter/plant17.JPG "> </ li >
38
+ < li data-img-src ="images/planter/plant18.JPG "> </ li >
39
+ < li data-img-src ="images/planter/plant19.JPG "> </ li >
40
+ < li data-img-src ="images/planter/plant20.JPG "> </ li >
41
+ < li data-img-src ="images/planter/plant21.JPG "> </ li >
42
+ < li data-img-src ="images/planter/plant22.JPG "> </ li >
43
+ < li data-img-src ="images/planter/plant23.JPG "> </ li >
44
+ < li data-img-src ="images/planter/plant24.JPG "> </ li >
45
+ < li data-img-src ="images/planter/plant25.JPG "> </ li >
46
+ < li data-img-src ="images/planter/plant26.JPG "> </ li >
47
+ < li data-img-src ="images/planter/plant27.JPG "> </ li >
48
+ < li data-img-src ="images/planter/plant28.JPG "> </ li >
49
+ < li data-img-src ="images/planter/plant1.JPG "> </ li >
44
50
</ ul >
45
- </ div > <!-- /.navbar-collapse -->
46
- </ div > <!-- /.container-fluid -->
47
- </ nav >
48
-
49
- < header class ="pad-section position-9 ">
50
- < div class ="container ">
51
-
52
- < div class ="header-overlay turntable " id ="turntable ">
53
- < ul >
54
- < li data-img-src ="images/planter/plant1.JPG "> </ li >
55
- < li data-img-src ="images/planter/plant28.JPG "> </ li >
56
- < li data-img-src ="images/planter/plant27.JPG "> </ li >
57
- < li data-img-src ="images/planter/plant26.JPG "> </ li >
58
- < li data-img-src ="images/planter/plant25.JPG "> </ li >
59
- < li data-img-src ="images/planter/plant24.JPG "> </ li >
60
- < li data-img-src ="images/planter/plant23.JPG "> </ li >
61
- < li data-img-src ="images/planter/plant22.JPG "> </ li >
62
- < li data-img-src ="images/planter/plant21.JPG "> </ li >
63
- < li data-img-src ="images/planter/plant20.JPG "> </ li >
64
- < li data-img-src ="images/planter/plant19.JPG "> </ li >
65
- < li data-img-src ="images/planter/plant18.JPG "> </ li >
66
- < li data-img-src ="images/planter/plant17.JPG "> </ li >
67
- < li data-img-src ="images/planter/plant16.JPG "> </ li >
68
- < li data-img-src ="images/planter/plant15.JPG "> </ li >
69
- < li data-img-src ="images/planter/plant14.JPG "> </ li >
70
- < li data-img-src ="images/planter/plant13.JPG "> </ li >
71
- < li data-img-src ="images/planter/plant12.JPG "> </ li >
72
- < li data-img-src ="images/planter/plant11.JPG "> </ li >
73
- < li data-img-src ="images/planter/plant10.JPG "> </ li >
74
- < li data-img-src ="images/planter/plant9.JPG "> </ li >
75
- < li data-img-src ="images/planter/plant8.JPG "> </ li >
76
- < li data-img-src ="images/planter/plant7.JPG "> </ li >
77
- < li data-img-src ="images/planter/plant6.JPG "> </ li >
78
- < li data-img-src ="images/planter/plant5.JPG "> </ li >
79
- < li data-img-src ="images/planter/plant4.JPG "> </ li >
80
- < li data-img-src ="images/planter/plant3.JPG "> </ li >
81
- < li data-img-src ="images/planter/plant2.JPG "> </ li >
82
- < li data-img-src ="images/planter/plant1.JPG "> </ li >
83
- </ ul >
84
- < div class ="container-center ">
85
- < h1 class ="text-color "> Turntable.js</ h1 >
86
- < p class ="text-color lead "> A Responsive JQuery Slider</ p >
87
- </ div >
88
- </ div >
51
+ < h4 class ="text-center "> X Axis</ h4 >
89
52
</ div >
90
- </ header >
91
-
92
- < section class ="pad-section background-white position-99 ">
93
- < div class ="container ">
94
- < h2 id ="examples "> What is this?</ h2 >
95
- < p class ="lead "> Turntable.js is a responsive JQuery slider that will let you rotate through a list of images as your mouse (or finger) sweeps across a container. Think of it like a flipbook made with Javascript, instead of paper. All you need is a set of images, and jQuery.</ p >
96
-
97
- < p class ="lead ">
98
- It's a fresh alternative to the typical 'click-to-slide' JQuery gallery.
99
- </ p >
100
-
101
- < h2 id ="install "> Installation</ h2 >
102
- < p class ="lead "> The installation process is fairly simple. < b > Download Turntable.js</ b > and include turntable.min.js in your javascript file or at the bottom of your html document, and < b > call the turntable function</ b > on whatever list of images you want to flip through. Oh, and don't forget the CSS. We've included a minified file, or you can just copy and paste the CSS here into your custom stylesheet. Easy peasy.</ p >
103
- < div >
104
-
105
- <!-- Nav tabs -->
106
- < ul class ="nav nav-pills " role ="tablist ">
107
- < li role ="presentation " class ="active ">
108
- < a href ="#html " aria-controls ="home " role ="tab " data-toggle ="tab "> HTML</ a >
109
- </ li >
110
- < li role ="presentation ">
111
- < a href ="#js " aria-controls ="profile " role ="tab " data-toggle ="tab "> JS</ a >
112
- </ li >
113
- < li role ="presentation ">
114
- < a href ="#css " aria-controls ="profile " role ="tab " data-toggle ="tab "> CSS</ a >
115
- </ li >
116
- </ ul >
117
-
118
- < br >
119
-
120
- <!-- Tab panes -->
121
- < div class ="tab-content ">
122
- < div role ="tabpanel " class ="tab-pane active " id ="html ">
123
- < pre class ="prettyprint pad ">
124
53
125
- <div id="myTurntable" class="turntable">
126
- <ul>
127
- <li data-img-src="images/myPic1.jpg"></li>
128
- <li data-img-src="images/myPic2.jpg"></li>
129
- <li data-img-src="images/myPic3.jpg"></li>
130
- <li data-img-src="images/myPic4.jpg"></li>
131
- <li data-img-src="images/myPic5.jpg"></li>
132
- <li data-img-src="images/myPic6.jpg"></li>
133
- <li data-img-src="images/myPic7.jpg"></li>
134
- <li data-img-src="images/myPic8.jpg"></li>
135
- <li data-img-src="images/myPic9.jpg"></li>
136
- <li data-img-src="images/myPic10.jpg"></li>
137
- <li data-img-src="images/myPic11.jpg"></li>
138
- <li data-img-src="images/myPic12.jpg"></li>
139
- <li data-img-src="images/myPic13.jpg"></li>
140
- <li data-img-src="images/myPic14.jpg"></li>
141
- </ul>
142
- </div>
143
- </ pre >
144
- </ div >
145
- < div role ="tabpanel " class ="tab-pane " id ="js ">
146
- < pre class ="prettyprint pad language-java ">
147
-
148
- $('#myTurntable').turntable();
149
- </ pre >
150
- </ div >
151
- < div role ="tabpanel " class ="tab-pane " id ="css ">
152
- < pre class ="prettyprint pad language-java ">
153
-
154
- .turntable {
155
- margin: 0px;
156
- }
157
- .turntable ul {
158
- padding: 0px;
159
- margin: 0px;
160
- }
161
- .turntable ul li {
162
- list-style-type: none;
163
- display: none;
164
- }
165
- .turntable ul li img {
166
- width: 100%;
167
- }
168
- .turntable ul li.active {
169
- display: block;
170
- }
171
- </ pre >
172
- </ div >
173
- </ div >
174
-
175
- </ div >
176
-
177
- < h2 id ="settings "> Settings</ h2 >
178
- < p class ="lead "> Turntable.js will accept an object as a parameter. You can decide if you want to flip through the images as your mouse moves along the X or Y axis of the container. You can pass in the object when you call the plugin like this.</ p >
179
- < pre class ="prettyprint pad language-java ">
180
-
181
- $('#mySpinnyContainer').turntable(
182
- {axis: 'y'}
183
- );
184
- </ pre >
185
- < p class ="lead "> The plugin will default to the X axis if no option is provided.</ p >
186
- < br >
187
- < p > v 1.0</ p >
188
- </ div >
189
- </ section >
190
-
191
- < footer class ="text-center ">
192
- < div class ="container ">
193
- < iframe src ="https://ghbtns.com/github-btn.html?user=polarnotion&repo=turntable&type=star&count=true " frameborder ="0 " scrolling ="0 " width ="80px " height ="20px "> </ iframe >
194
- < iframe src ="https://ghbtns.com/github-btn.html?user=polarnotion&type=follow&count=true&size=small " frameborder ="0 " scrolling ="0 " width ="170px " height ="20px "> </ iframe >
195
- < br >
196
- < br >
197
- < p >
198
- < a href ="http://polarnotion.com/?ref=turntable " class ="text-white " target ="_blank ">
199
- Polar Notion
200
- < br >
201
- < em > Go Boldly Forward</ em >
202
- </ a >
203
- </ p >
54
+ < div id ="turntable2 " class ="turntable col-sm-6 ">
55
+ < ul >
56
+ < li data-img-src ="./images/fred/fred1.JPG "> </ li >
57
+ < li data-img-src ="./images/fred/fred2.JPG "> </ li >
58
+ < li data-img-src ="./images/fred/fred3.JPG "> </ li >
59
+ < li data-img-src ="./images/fred/fred4.JPG "> </ li >
60
+ < li data-img-src ="./images/fred/fred5.JPG "> </ li >
61
+ < li data-img-src ="./images/fred/fred6.JPG "> </ li >
62
+ < li data-img-src ="./images/fred/fred7.JPG "> </ li >
63
+ < li data-img-src ="./images/fred/fred8.JPG "> </ li >
64
+ < li data-img-src ="./images/fred/fred9.JPG "> </ li >
65
+ < li data-img-src ="./images/fred/fred10.JPG "> </ li >
66
+ < li data-img-src ="./images/fred/fred11.JPG "> </ li >
67
+ < li data-img-src ="./images/fred/fred12.JPG "> </ li >
68
+ < li data-img-src ="./images/fred/fred13.JPG "> </ li >
69
+ < li data-img-src ="./images/fred/fred14.JPG "> </ li >
70
+ </ ul >
204
71
</ div >
205
- </ footer >
206
-
207
- < script type ="text/javascript " src ="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js "> </ script >
208
- < script type ="text/javascript " src ="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js "> </ script >
209
- < script type ="text/javascript " src ="./js/bootstrap.min.js "> </ script >
210
- < script type ="text/javascript " src ="./js/main.js "> </ script >
72
+ </ div >
73
+
74
+ < div id ="turntable3 " class ="turntable col-sm-6 ">
75
+ < ul >
76
+ < li data-img-src ="images/planter/plant1.JPG "> </ li >
77
+ < li data-img-src ="images/planter/plant2.JPG "> </ li >
78
+ < li data-img-src ="images/planter/plant3.JPG "> </ li >
79
+ < li data-img-src ="images/planter/plant4.JPG "> </ li >
80
+ < li data-img-src ="images/planter/plant5.JPG "> </ li >
81
+ < li data-img-src ="images/planter/plant6.JPG "> </ li >
82
+ < li data-img-src ="images/planter/plant7.JPG "> </ li >
83
+ < li data-img-src ="images/planter/plant8.JPG "> </ li >
84
+ < li data-img-src ="images/planter/plant9.JPG "> </ li >
85
+ < li data-img-src ="images/planter/plant10.JPG "> </ li >
86
+ < li data-img-src ="images/planter/plant11.JPG "> </ li >
87
+ < li data-img-src ="images/planter/plant12.JPG "> </ li >
88
+ < li data-img-src ="images/planter/plant13.JPG "> </ li >
89
+ < li data-img-src ="images/planter/plant14.JPG "> </ li >
90
+ < li data-img-src ="images/planter/plant15.JPG "> </ li >
91
+ < li data-img-src ="images/planter/plant16.JPG "> </ li >
92
+ < li data-img-src ="images/planter/plant17.JPG "> </ li >
93
+ < li data-img-src ="images/planter/plant18.JPG "> </ li >
94
+ < li data-img-src ="images/planter/plant19.JPG "> </ li >
95
+ < li data-img-src ="images/planter/plant20.JPG "> </ li >
96
+ < li data-img-src ="images/planter/plant21.JPG "> </ li >
97
+ < li data-img-src ="images/planter/plant22.JPG "> </ li >
98
+ < li data-img-src ="images/planter/plant23.JPG "> </ li >
99
+ < li data-img-src ="images/planter/plant24.JPG "> </ li >
100
+ < li data-img-src ="images/planter/plant25.JPG "> </ li >
101
+ < li data-img-src ="images/planter/plant26.JPG "> </ li >
102
+ < li data-img-src ="images/planter/plant27.JPG "> </ li >
103
+ < li data-img-src ="images/planter/plant28.JPG "> </ li >
104
+ < li data-img-src ="images/planter/plant1.JPG "> </ li >
105
+ </ ul >
106
+ < h4 class ="text-center "> X Axis</ h4 >
107
+ </ div >
108
+
109
+
110
+ </ div >
111
+
112
+ <!-- jQuery CDN -->
113
+ < script src ="https://code.jquery.com/jquery-2.2.2.min.js " integrity ="sha256-36cp2Co+/62rEAAYHLmRCPIych47CvdM+uTBJwSzWjI= " crossorigin ="anonymous "> </ script >
114
+ <!-- Turntable jQuery Plugin -->
115
+ < script src ="js/main.js "> </ script >
116
+ <!-- Plugin Use Case -->
211
117
< script type ="text/javascript ">
118
+
212
119
$ ( '#turntable' ) . turntable ( { axis : 'x' } ) ;
120
+ $ ( '#turntable2' ) . turntable ( { axis : 'y' } ) ;
121
+ $ ( '#turntable3' ) . turntable ( { reverse : true } ) ;
122
+
213
123
</ script >
214
124
215
125
</ body >
216
- </ html >
126
+ </ html >
0 commit comments