Bureaucrats, coding, Administrators
2,634
edits
m (~) |
m (Not finished) |
||
Line 493: | Line 493: | ||
// Lightbox stuff | // Lightbox stuff | ||
$('.lightboxed').lightBox(); | var lightboxStuff = { | ||
settings: { | |||
imageLoading: 'http://portal.biringa.com/images/5/56/Lightbox_loading.gif', | |||
imageBtnClose: 'http://portal.biringa.com/images/e/e2/Lightbox_button_close.gif', | |||
imageBtnPrev: 'http://portal.biringa.com/images/c/c8/Lightbox_button_previous.gif', | |||
imageBtnNext: 'http://portal.biringa.com/images/9/9e/Lightbox_button_next.gif', | |||
imageBlank: 'http://portal.biringa.com/images/f/f6/Lightbox_blank.gif', | |||
}, | |||
init: function() { | |||
var galleryIndex = 0; | |||
$('.pwiki-gallery').each(function() { | |||
$(this).attr('id', 'pwiki-gallery-' + galleryIndex.toString()); | |||
galleryIndex++; | |||
}); | |||
var galleryBuckets = {}; | |||
$('.lightboxed').each(function() { | |||
var gallery = $(this).closest('.pwiki-gallery'); | |||
if(gallery.length) { | |||
// In gallery | |||
} else { | |||
// Not in gallery, lightbox separately | |||
$(this).lightBox(lightboxStuff.settings); | |||
} | |||
}); | |||
} | |||
}; | |||
$(lightboxStuff.init); | |||
// Google Analytics | // Google Analytics |