This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
/
example_slideshow_only_array.html
221 lines (215 loc) · 10.2 KB
/
example_slideshow_only_array.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
220
221
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Slideshow only (kSlideshow, dataSource: array)</title>
</head>
<body>
<link rel="stylesheet" href="css/kGallery.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="../kgallery-demo/css/kGallery_ie6.css"/>
<![endif]-->
<style>
.kSlideshowWrapper, .kSlideshowItemDiv{
width: 400px;
height: 267px;
}
.kSlideshowItemDiv img{
z-index: 400;
}
</style>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/kGallery-full.min.js"></script>
<!--script type="text/javascript" src="js/kSlideshow.js"></script>
<script type="text/javascript" src="js/kThumbnailPicker.js"></script>
<script type="text/javascript" src="js/kGallery.js"></script-->
<a href="https://github.com/andruhon/kGallery">https://github.com/andruhon/kGallery</a>
<h2>Slideshow only (kSlideshow, dataSource: array)</h2>
<script type="text/javascript">
$(document).ready(function() {
gallery = kSlideshow({
wrapper: '#slideshow-only',
autoPlay: false, //autoplayback is turned off
enableTitle: false, //images titles is turned off
startItem: 0,
dataType: 'array',
dataSource: [
{
"large":"files/365_4.jpg",
"thumb":"files/previews/365_4.jpg",
"title":"First image! + some HTML <a href=\"http://en.wikipedia.org/wiki/HTML\" target=\"_blank\" >HTML</a>"
},
{
"large":"files/365_5.jpg",
"thumb":"files/previews/365_5.jpg",
"title":"Second image!"
},
{
"large":"files/365_6.jpg",
"thumb":"files/previews/365_6.jpg",
"title":"Third image!"
},
{
"large":"files/365_8.jpg",
"thumb":"files/previews/365_8.jpg",
"title":"Fourth image!"
},
{
"large":"files/365_10.jpg",
"thumb":"files/previews/365_10.jpg",
"title":"Fifth image!"
},
{
"large":"files/365_11.jpg",
"thumb":"files/previews/365_11.jpg",
"title":"Sixth image!"
},
{
"large":"files/365_12.jpg",
"thumb":"files/previews/365_12.jpg",
"title":"Seventh image!"
},
{
"large":"files/365_13.jpg",
"thumb":"files/previews/365_13.jpg",
"title":"Eighth image!"
},
{
"large":"files/365_15.jpg",
"thumb":"files/previews/365_15.jpg",
"title":"Ninth image!"
},
{
"large":"files/365_17.jpg",
"thumb":"files/previews/365_17.jpg",
"title":"Tenth image!"
},
{
"large":"files/365_18.jpg",
"thumb":"files/previews/365_18.jpg",
"title":"Eleventh image!"
},
{
"large":"files/365_19.jpg",
"thumb":"files/previews/365_19.jpg",
"title":"Twelfth image!"
},
{
"large":"files/365_20.jpg",
"thumb":"files/previews/365_20.jpg",
"title":"Thirteenth image!"
},
{
"large":"files/365_21.jpg",
"thumb":"files/previews/365_21.jpg",
"title":"Fourteenth image!"
},
{
"large":"files/365_22.jpg",
"thumb":"files/previews/365_22.jpg",
"title":"Twelfth image!"
},
{
"large":"files/365_23.jpg",
"thumb":"files/previews/365_23.jpg",
"title":"Fifteenth image!"
},
{
"large":"files/365_24.jpg",
"thumb":"files/previews/365_24.jpg",
"title":"Sixteenth image!"
},
{
"large":"files/365_25.jpg",
"thumb":"files/previews/365_25.jpg"
},
{
"large":"files/365_26.jpg",
"thumb":"files/previews/365_26.jpg"
},
{
"large":"files/365_27.jpg",
"thumb":"files/previews/365_27.jpg"
},
{
"large":"files/365_28.jpg",
"thumb":"files/previews/365_28.jpg"
},
{
"large":"files/365_30.jpg",
"thumb":"files/previews/365_30.jpg"
},
{
"large":"files/365_32.jpg",
"thumb":"files/previews/365_32.jpg"
},
{
"large":"files/365_33.jpg",
"thumb":"files/previews/365_33.jpg"
},
{
"large":"files/365_35.jpg",
"thumb":"files/previews/365_35.jpg"
},
{
"large":"files/365_36.jpg",
"thumb":"files/previews/365_36.jpg"
},
{
"large":"files/365_38.jpg",
"thumb":"files/previews/365_38.jpg"
},
{
"large":"files/365_39.jpg",
"thumb":"files/previews/365_39.jpg"
},
{
"large":"files/365_40.jpg",
"thumb":"files/previews/365_40.jpg"
}
]
});
});
</script>
<div id="slideshow-only">
</div>
<h2>JavaScript</h2>
<div class="javascript"><ol><li class="li1"><div class="de1">$<span class="br0">(</span>document<span class="br0">)</span>.<span class="me1">ready</span><span class="br0">(</span><span class="kw2">function</span><span class="br0">(</span><span class="br0">)</span> <span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> gallery <span class="sy0">=</span> kSlideshow<span class="br0">(</span><span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> wrapper<span class="sy0">:</span> <span class="st0">'#slideshow-only'</span><span class="sy0">,</span></div></li>
<li class="li1"><div class="de1"> dataType<span class="sy0">:</span> <span class="st0">'array'</span><span class="sy0">,</span></div></li>
<li class="li1"><div class="de1"> dataSource<span class="sy0">:</span> <span class="st0">[{
"large":"img1.jpg",
"thumb":"img1_sml.jpg",
"title":"title!"
},
{
"large":"img2.jpg",
"thumb":"img2_sml.jpg",
"title":"title2!"
}]</span><span class="sy0">,</span></div></li>
<li class="li1"><div class="de1"> autoPlay<span class="sy0">:</span> <span class="kw2">false</span><span class="sy0">,</span> <span class="co1">//autoplayback is turned off</span></div></li>
<li class="li1"><div class="de1"> enableTitle<span class="sy0">:</span> <span class="kw2">false</span><span class="sy0">,</span> <span class="co1">//images titles is turned off</span></div></li>
<li class="li1"><div class="de1"> startItem<span class="sy0">:</span> <span class="nu0">0</span></div></li>
<li class="li1"><div class="de1"> <span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span><span class="br0">)</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"> </div></li>
</ol></div>
<h2>HTML</h2>
<div class="html4strict"><ol><li class="li1"><div class="de1"><span class="sc2"><<span class="kw2">div</span> <span class="kw3">id</span><span class="sy0">=</span><span class="st0">"slideshow-only"</span>></span></div></li>
<li class="li1"><div class="de1"> </div></li>
<li class="li1"><div class="de1"><span class="sc2"><<span class="sy0">/</span><span class="kw2">div</span>></span></div></li>
</ol></div>
<h2>CSS</h2>
<div class="css"><ol><li class="li1"><div class="de1"><span class="re1">.kSlideshowWrapper</span><span class="sy0">,</span> .kSlideshowItemDiv<span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">width</span><span class="sy0">:</span> <span class="re3">400px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">height</span><span class="sy0">:</span> <span class="re3">267px</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
<li class="li1"><div class="de1"><span class="re1">.kSlideshowItemDiv</span> img<span class="br0">{</span></div></li>
<li class="li1"><div class="de1"> <span class="kw1">z-index</span><span class="sy0">:</span> <span class="nu0">400</span><span class="sy0">;</span></div></li>
<li class="li1"><div class="de1"><span class="br0">}</span></div></li>
<li class="li1"><div class="de1"> </div></li>
</ol></div>
</body>
</html>