additional_plugins/serendipity_event_lightbox/colorbox/jquery.colorbox.init.js
Ian 3563d92983 major update to lightbox plugin v. 2.0
location will also be used by the usergallery plugin
2014-10-27 14:39:31 +01:00

22 lines
736 B
JavaScript

jQuery(document).ready(function(){
// remove anchors onclick handler, if have
jQuery('a[rel^="colorbox"]').removeAttr('onclick');
jQuery('a[rel^="singlebox"]').removeAttr('onclick');
// init by group - init with :visible to ensure to not show hidden elements via hideafter function in imageselectorplus ranges
jQuery('a:visible[rel^="colorbox"]').colorbox({
slideshow: true,
slideshowAuto: false,
slideshowSpeed: 6000,
scalePhotos: true,
maxWidth: '98%'
});
// this is a single image only init - plugin option : Single Image
jQuery('a:visible[rel="singlebox"]').colorbox({
rel: 'nofollow',
scalePhotos: true,
maxWidth: '98%'
});
});