forked from Kris-B/nanoGALLERY
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demonstration.html
606 lines (537 loc) · 29.3 KB
/
demonstration.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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>nanoGALLERY</title>
<style>
* {font-family: sans-serif; color:#fff;}
a, h1, h2, h3, h4, h5 {text-align:center; color:#eee;}
body {background:#333;}
</style>
<!-- nanoGALLERY -->
<!-- Plugin for jQuery by Christophe Brisbois -->
<!-- Demo & doc: http://nanogallery.brisbois.fr -->
<!-- Sources: https://github.com/Kris-B/nanoGALLERY -->
<!-- License: For personal, non-profit organizations, or open source projects, you may use nanoGALLERY for free. -->
<!-- -------- ALL OTHER USES REQUIRE THE PURCHASE OF A PROFESSIONAL LICENSE. -->
<!-- #################################################################################################################### -->
<!-- jQuery -->
<!-- -->
<script type="text/javascript" src="third.party/jquery-1.7.1.min.js"></script>
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> -->
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> -->
<!-- #################################################################################################################### -->
<!-- #################################################################################################################### -->
<!-- nanoGALLERY CSS files -->
<!-- only include the css file corresponding to the selected theme -->
<!-- include 'nanogallery.css' if no theme is specified -->
<!-- -->
<!-- nanoGALLERY - default theme css file -->
<link href="css/nanogallery.css" rel="stylesheet" type="text/css">
<!-- nanoGALLERY - css file for the theme 'clean' -->
<link href="css/themes/clean/nanogallery_clean.css" rel="stylesheet" type="text/css">
<!-- nanoGALLERY - css file for the theme 'light' -->
<link href="css/themes/light/nanogallery_light.css" rel="stylesheet" type="text/css">
<!-- #################################################################################################################### -->
<!-- #################################################################################################################### -->
<!-- nanoGALLERY javascript -->
<!-- -->
<script type="text/javascript" src="jquery.nanogallery.js"></script>
<!-- -->
<!-- #################################################################################################################### -->
<!-- #################################################################################################################### -->
<!-- nanoGALLERY DEMO PANEL javascript - NOT NEEDED TO USE THE PLUGIN -->
<script type="text/javascript" src="jquery.nanogallerydemo.js"></script>
<!-- #################################################################################################################### -->
<!-- #################################################################################################################### -->
<!-- transit.js animation engine - Optionnal -->
<!-- This plugin is used alternatively for all animations (hover effects et image display animations) -->
<!-- warning: not compatible with IE9- -->
<!-- -->
<!--
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery.transit/0.9.9/jquery.transit.min.js">
</script>
-->
<!-- #################################################################################################################### -->
<!-- #################################################################################################################### -->
<!-- fancyBox - Optionnal -->
<!-- -->
<!-- <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" /> -->
<!-- <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.pack.js?v=2.1.5"></script> -->
<!-- #################################################################################################################### -->
<!-- #################################################################################################################### -->
<!-- velocity animation engine - optionnal - JUST FOR TEST PURPOSES / PLEASE DO NOT USE!!! -->
<!-- -->
<!-- <script type="text/javascript" src="third.party/velocity/jquery.velocity.min.js"></script> -->
<!-- <script type="text/javascript" src="http://julian.com/research/velocity/build/jquery.velocity.min.js"></script> -->
<!-- #################################################################################################################### -->
<script>
$(document).ready(function () {
// ##################################################################################################################
// ##### Sample1 - API method #####
// ##################################################################################################################
var myColorScheme = {
navigationbar : {
background : '#000',
border : '0px dotted #555',
color : '#ccc',
colorHover:'#fff'
},
thumbnail : {
background:'#000',
border:'1px solid #000',
labelBackground:'transparent',
labelOpacity:'0.8',
titleColor:'#fff',
descriptionColor:'#eee'
}
};
var myColorSchemeViewer = {
background:'rgba(1, 1, 1, 0.75)',
imageBorder:'12px solid #f8f8f8',
imageBoxShadow:'#888 0px 0px 20px',
barBackground:'#222',
barBorder:'2px solid #111',
barColor:'#eee',
barDescriptionColor:'#aaa'
};
// custom thumbnail hover effect
function myThumbnailInit($elt, item) {
}
function myThumbnailHoverInit($elt, item, data) {
//$elt.find('.labelDescription').css({'opacity':'0'});
var $subCon=$elt.find('.subcontainer');
var th=$elt.outerHeight(true);
var $iC=$elt.find('.imgContainer');
var w=$iC.outerWidth(true)/10;
var h=$iC.outerHeight(true);
for(var c=0; c<10; c++ ) {
var s='rect(0px, '+w*(c+1)+'px, '+h+'px, '+w*c+'px)';
//var $t=$lI.clone().appendTo($subCon).css({'bottom':-(h+c*4), 'clip':s});
$iC.clone().appendTo($elt.find('.subcontainer')).css({'bottom':0, 'scale':1, 'clip':s, 'left':0, 'position':'absolute'});
//$t.css({'top':c*2});
}
$iC.remove();
}
function myThumbnailHover($elt, item, data) {
//$elt.find('.labelDescription').delay(150)[data.animationEngine]({'opacity':'1'},400);
//$elt.find('.labelDescription').delay(150).animate({'opacity':'1'},400);
var w=$elt.find('.imgContainer').outerWidth(true)/10;
$elt.find('.imgContainer').each(function( index ) {
$(this)[data.animationEngine]({ 'left':(-w*10)+w*index*3, 'scale':2},20000);
//console.log( index*w + ' ' + index+ '-'+w );
});
}
function myThumbnailHoverOut($elt, item, data) {
//$elt.find('.labelDescription').animate({'opacity':'0'},300);
var h=$elt.find('.labelImage').outerHeight(true);
var w=$elt.find('.labelImage').outerWidth(true)/10;
$elt.find('.labelImage').each(function( index ) {
$(this)[data.animationEngine]({'bottom':-(h+index*4)});
});
}
// custom info button on viewer toolbar
function myViewerInfo(item, data) {
alert('Image URL: '+ item.thumbsrc);
}
jQuery("#nanoGallery1").nanoGallery({thumbnailWidth:120,thumbnailHeight:120,
items: [
{
src: 'demonstration/image_01.jpg', // image url
srct: 'demonstration/image_01t.jpg', // thumbnail url
title: 'image 1', // thumbnail title
//title: '<a href="#">Test</a> image 1', // thumbnail title
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
title_FRD: 'image 1 (fr)',
description_FR : 'description image 1 (fr)'
},
{
src: 'demonstration/image_02.jpg',
srct: 'demonstration/image_02t.jpg',
title: 'image 2' ,
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
title_FR: 'image 2 (fr)',
description_FR : 'description image 2 (fr)'
},
{
src: 'demonstration/image_03.jpg',
srct: 'demonstration/image_03t.jpg',
title: 'image 3'
}
],
thumbnailHoverEffect:[{name:'imageScaleIn80'},{'name':'descriptionAppear','delay':300},{'name':'borderDarker'}],
thumbnailLabel:{display:true,position:'overImageOnBottom'},
viewerDisplayLogo:true,
//thumbnailInit:myThumbnailInit,
//fnThumbnailHoverInit:myThumbnailHoverInit,
//fnThumbnailHover:myThumbnailHover,
//fnThumbnailHoverOut:myThumbnailHoverOut,
theme:'light',
imageTransition: 'fade' ,
fnViewerInfo:myViewerInfo,
locationHash: false,
viewerToolbar: { standard:'minimizeButton , previousButton, pageCounter ,nextButton,playPauseButton,fullscreenButton,infoButton,linkOriginalButton,closeButton,label,custom1' },
fnImgToolbarCustInit: function(elementName) { return('<div>build</div>'); },
fnImgToolbarCustDisplay: function($elements, item, data) {
$elements.eq(0).html('photo ID: '+item.GetID() +'<a href="http://google.fr">Test</a>');
},
fnImgToolbarCustClick: function(elementName, $element, item, data) {
alert(elementName);
},
viewer:'fancybox',
debugMode:true
});
// ##################################################################################################################
// ##### Sample1a - API method #####
// ##################################################################################################################
var contentGallery1a=[
{
src: 'demonstration/image_01.jpg', // image url
srct: 'demonstration/image_01ts.jpg', // thumbnail url
title: 'image 1' // thumbnail title
},
{
src: 'demonstration/image_02.jpg',
srct: 'demonstration/image_02ts.jpg',
title: 'image 2'
},
{
src: 'demonstration/image_03.jpg',
srct: 'demonstration/image_03ts.jpg',
title: 'image 3'
}];
jQuery("#nanoGallery1a").nanoGallery({thumbnailWidth:120,thumbnailHeight:120,
items:contentGallery1a,
theme:'clean',
locationHash: false,
thumbnailHoverEffect:{'name':'imageFlipHorizontal','duration':500},
useTags:false,
viewerDisplayLogo:false,
theme:'clean',
i18n:{'thumbnailImageDescription':'View Photo', 'thumbnailAlbumDescription':'Open Album'},
thumbnailLabel:{display:true,position:'overImageOnMiddle', align:'center'},
colorSchemeViewer:'default'
});
// ##################################################################################################################
// ##### Sample2 - inline elements / HREF #####
// ##################################################################################################################
jQuery("#nanoGallery2").nanoGallery({thumbnailWidth:160,thumbnailHeight:160,
itemsBaseURL:'demonstration',
thumbnailHoverEffect:[{'name':'scaleLabelOverImage','duration':300},{'name':'borderLighter'}],
colorScheme:'clean',
locationHash: false,
thumbnailLabel:{display:true,position:'overImageOnTop', align:'center'},
viewerDisplayLogo:true
});
// ##################################################################################################################
// ##### Sample3 - Picasa/Google+ #####
// ##################################################################################################################
jQuery("#nanoGallery3").nanoGallery({
thumbnailL1Width:'140C XS100 SM100', thumbnailL1Height:'140C XS100 SM100',
thumbnailWidth:'auto', thumbnailHeight:'200 XS80 SM150 LA250 XL290',
userID: '111186676244625461692',
//userID: '106423746252799910225', // RonClifford
//userID: '110359559620842741677', // AlexRed
//userID:'103482106723589181634', // --> Cyrilic
kind: 'picasa',
//maxItemsPerLine:3,
//album: '5851968929721015169?authkey=CJSlhdKSgoiXtgE',
//album: '5851968929721015169&authkey=Gv1sRgCJSlhdKSgoiXtgE',
//album:'5856259539659194001',
//openOnStart : '5856259539659194001',
//openOnStart : '5856259539659194001/5856259543749603346',
viewerFullscreen: true,
photoSorting: 'random',
locationHash: false,
//blackList:'none',
albumSorting: 'random',
colorScheme: myColorScheme,
galleryFullpageButton: true,
thumbnailLabel:{ display:false},
thumbnailL1Label:{title:'%filenameNoExt', itemsCount:'title', display:true},
viewerDisplayLogo: true,
thumbnailHoverEffect:[{'name':'imageScale150', 'duration':500}],
thumbnailL1HoverEffect:[{'name':'labelOpacity50','duration':300, 'delay':500},{'name':'imageScaleIn80', 'duration':500}]
//thumbnailHoverEffect: [{'name':'imageScaleIn80','duration':300},{'name':'borderLighter'}]
});
jQuery('#btnPicasaOpen').on('click', function() {
//jQuery("#nanoGallery3").nanoGallery('displayItem','111186676244625461692/6059759872735910226');
});
// ##################################################################################################################
// ##### Sample3a - Picasa/Google+ #####
// ##################################################################################################################
jQuery("#nanoGallery3a").nanoGallery({
thumbnailWidth:200, thumbnailHeight:150,
userID:'111186676244625461692',
kind:'picasa',
//maxItemsPerLine:3,
//album: '5852572882905112961',
//album:'5856259539659194001',
//album:'5911347863561293937',
galleryFullpageButton:true,
galleryFullpageBgColor : '#fff',
colorScheme:'lightBackground',
locationHash:false,
viewerDisplayLogo:true,
//thumbnailHoverEffect:[{'name':'labelOpacity50','duration':300, 'delay':500},{'name':'imageScaleIn80', 'duration':500}],
thumbnailHoverEffect:[{'name':'imageScaleIn80', 'duration':500}],
theme:'light',
i18n:{'thumbnailImageDescription':'View Photo', 'thumbnailAlbumDescription':'Open Album'},
thumbnailLabel:{display:true,position:'onBottom'},
colorSchemeViewer:'default',
imageTransition:'slideAppear',
fnProcessData: fnDemopProcessData, // javascript custom extension
fnViewerInfo: fnDemoViewerInfo, // javascript custom extension
itemsSelectable:true
});
function fnDemopProcessData(item, kind, sourceData) {
if( kind == 'picasa' && item.kind == 'image' ) {
//console.dir(sourceData);
item.customData.imgOriginalWidth = sourceData.gphoto$width.$t;
item.customData.imgOriginalHeight = sourceData.gphoto$height.$t;
var ex = { model: 'na', iso: 'na' }
if (typeof sourceData.exif$tags !== "undefined"){
if (typeof sourceData.exif$tags.exif$model !== "undefined" && typeof sourceData.exif$tags.exif$model.$t !== "undefined"){
ex.model = sourceData.exif$tags.exif$model.$t;
}
}
item.customData.exif = ex;
}
}
function fnDemoViewerInfo( item, data ) {
var s= 'camera: '+item.customData.exif.model + ' / width: '+item.customData.imgOriginalWidth+' / height: '+item.customData.imgOriginalHeight;
alert(s);
}
jQuery('#btnReload').on('click', function() {
jQuery('#nanoGallery3a').nanoGallery('reload');
});
jQuery('#btnCountSelected').on('click', function() {
alert(jQuery('#nanoGallery3a').nanoGallery('getSelectedItems').length);
});
jQuery('#btnUnselect').on('click', function() {
var items=jQuery('#nanoGallery3a').nanoGallery('getSelectedItems');
jQuery('#nanoGallery3a').nanoGallery('unselectItems', items)
});
// ##################################################################################################################
// ##### Sample4 - Flickr #####
// ##################################################################################################################
// thomashawk - user id="51035555243@N01" - 1900 sets
// Ray Conrado - user id="76715816@N00" - 700 sets
// LoadStone - user id="9142293@N06"
// babasteve - 64749744@N00 / 72157644268331557
// kris_b - 34858669@N00 / 72157594299597591
jQuery("#nanoGallery4").nanoGallery({
userID:'34858669@N00',kind:'flickr',thumbnailWidth:'auto',thumbnailHeight:160, //110,
viewerDisplayLogo:true,
locationHash:false,
thumbnailHoverEffect:[{'name':'labelSlideUp','duration':300}],
thumbnailLabel:{display:true,position:'overImageOnBottom',descriptionMaxLength:50},
thumbnailLazyLoad:true,
theme:'clean',
colorScheme:'light',
locationHash: false,
level1: { thumbnailWidth: 200, thumbnailHeight: 120 }
});
// ##################################################################################################################
// ##### Multi-level navigation (API method) #####
// ##################################################################################################################
var contentGalleryMLN=[
{
src: 'image_01.jpg', // image url
srct: 'image_01ts.jpg', // thumbnail url
title: 'image 01', // thumbnail title
ID:2
},
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 02',
ID:3 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'album 1',
ID:103, kind:'album' },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'album 2',
ID:104, kind:'album' },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'album 3',
ID:105, albumID:103, kind:'album' },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 03',
ID:4 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 04',
ID:5 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 05',
ID:6 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 06',
ID:7 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 07',
ID:8 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 08',
ID:9 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 09',
ID:10 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 10',
ID:11 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 10',
ID:12 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 11',
ID:13 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 12',
ID:14 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 13',
ID:15 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 14',
ID:16 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 15',
ID:17 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 16',
ID:18 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 17',
ID:19 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 18',
ID:20 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 19',
ID:21 },
{ src: 'image_02.jpg', srct: 'image_02ts.jpg', title: 'image 20',
ID:22 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 1a',
ID:23, albumID:103 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 1b',
ID:24, albumID:103 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 1c',
ID:25, albumID:103 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 1d',
ID:26, albumID:103 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 1e',
ID:27, albumID:103 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 1f',
ID:28, albumID:103 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2a',
ID:29, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2b',
ID:30, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2c',
ID:31, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2d',
ID:32, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2e',
ID:33, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2f',
ID:34, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2g',
ID:35, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2h',
ID:36, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2i',
ID:37, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2j',
ID:38, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2k',
ID:39, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2l',
ID:40, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2m',
ID:41, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2n',
ID:42, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2o',
ID:43, albumID:104 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2n',
ID:44, albumID:105 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2n',
ID:45, albumID:105 },
{ src: 'image_03.jpg', srct: 'image_03ts.jpg', title: 'image 2o',
ID:46, albumID:105 }
];
jQuery("#nanoGalleryMLN").nanoGallery({thumbnailWidth:120,thumbnailHeight:120,
items:contentGalleryMLN,
//paginationMaxItemsPerPage:3,
paginationMaxLinesPerPage:1,
// paginationDots : true,
paginationVisiblePages: 10,
thumbnailHoverEffect:'imageInvisible,imageScale150',
viewerDisplayLogo:true,
useTags:false,
locationHash:false,
breadcrumbAutoHideTopLevel:true,
maxItemsPerLine:5,
locationHash: false,
itemsBaseURL:'demonstration/'
});
jQuery('#btnPaginationCount').on('click', function() {
alert(jQuery('#nanoGalleryMLN').nanoGallery('paginationCountPages'));
});
jQuery('#btnPaginationNext').on('click', function() {
jQuery('#nanoGalleryMLN').nanoGallery('paginationNextPage');
});
jQuery('#btnPaginationPrevious').on('click', function() {
jQuery('#nanoGalleryMLN').nanoGallery('paginationPreviousPage');
});
jQuery('#btnPaginationGoto').on('click', function() {
jQuery('#nanoGalleryMLN').nanoGallery('paginationGotoPage',2);
});
// ##################################################################################################################
// ##### DEMO PANEL #####
// ##################################################################################################################
jQuery("#nanoGalleryAnimation1").nanoGalleryDemo({thumbnailWidth:120, thumbnailHeight:120, itemsBaseURL:'demonstration',
viewerDisplayLogo:true
});
});
</script>
</head>
<!-- <body style="background-color:#fff;"> -->
<body>
<div style="color:#fff;text-align:center;font-size:4.0em;"><span style="color:#fff;">nano</span><span style="color:#6e6;">GALLERY</span></div>
<div style="text-align:center;font-size:2em;color:#6e6">jQuery plugin - demonstration page</div>
<div style="color:#eee;text-align:center;font-size:.9em;"><br>Full nanoGALLERY documentation: <a href="http://www.nanogallery.brisbois.fr">www.nanogallery.brisbois.fr</a></div>
<br><br><br><br>
<div style="color:#eee;text-align:center;font-size:1.2em;">Look at the page source code to find useful information.</div>
<br><br><br><br><br><br><br><br><br>
<h2 style="background:#555;">----- Possible image sources -----</h2>
<br><br><h2>Sample #1: item list in options</h2>
<div id="nanoGallery1"></div>
<br>
<div style="background:#eee;padding:'10px';margin:auto;max-width:450px;">
<br>
<div id="nanoGallery1a"></div>
<br>
</div>
<br><br><h2>Sample #2: HREF attributes</h2>
<div id="nanoGallery2">
<a href="image_01.jpg" data-ngthumb="image_01ts.jpg" data-ngdesc="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin sit amet interdum magna. Nunc luctus leo ut blandit tempor. Suspendisse at auctor lorem, sed hendrerit arcu.">Thailand</a>
<a href="image_02.jpg" data-ngthumb="image_02ts.jpg" data-ngdesc="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">Vietnam</a>
<a href="image_03.jpg" data-ngthumb="image_03ts.jpg" data-ngdesc="" data-customdata='{"a":"1", "b":"2"}'>India</a>
</div>
<br><br><h2>Sample #3: Picasa/Google+</h2>
<!-- <div style="margin:auto;max-width:960px;"> -->
<button id="btnPicasaOpen" "type="button" style="color:#000;padding:4px;"> open image </button>
<div>
<div id="nanoGallery3"></div>
</div>
<br><br><br>
<div style="margin:auto;max-width:960px;background:#fff;color:#f00;padding:1px;">
<div style="margin:10px;">
<button id="btnReload" "type="button" style="color:#000;padding:4px;"> reload </button>
<button id="btnCountSelected" "type="button" style="color:#000;padding:4px;"> count selected items </button>
<button id="btnUnselect" "type="button" style="color:#000;padding:4px;"> Unselect selected items </button>
</div>
<br><br><br>
<div id="nanoGallery3a"></div>
<br><br><br>
</div>
<br><br><h2>Sample #4: Flickr</h2>
<div style="margin:auto;max-width:600px;">
<div id="nanoGallery4"></div>
</div>
<br><br><br><br><br><br><br><br><br>
<h2 style="background:#555;">----- Multi-level navigation and pagination (API) -----</h2><br><br>
<div style="margin:10px;">
<button id="btnPaginationCount" "type="button" style="color:#000;padding:4px;"> Pagination - count </button>
<button id="btnPaginationNext" "type="button" style="color:#000;padding:4px;"> Pagination - next </button>
<button id="btnPaginationPrevious" "type="button" style="color:#000;padding:4px;"> Pagination - previous </button>
<button id="btnPaginationGoto" "type="button" style="color:#000;padding:4px;"> Pagination - goto page 2 </button>
</div>
<div id="nanoGalleryMLN"></div>
<br><br><br><br><br><br><br><br><br>
<h2 style="background:#555;">----- Thumbnails configuration demo -----</h2><br><br>
<div id="nanoGalleryAnimation1" style="margin:50px">
<a href="image_01.jpg" data-ngThumb="image_01ts.jpg" data-ngDesc="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">Image 1</a>
<a href="image_02.jpg" data-ngThumb="image_02ts.jpg">Image 2</a>
<a href="image_03.jpg" data-ngThumb="image_03ts.jpg">Image 3</a>
</div>
<br><br><h5>by <a href="https://plus.google.com/111186676244625461692?rel=author">Christophe Brisbois</a></h5>
</body>
</html>