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