ZwiiCMS/core/vendor/simplelightbox/init.js

21 lines
493 B
JavaScript
Raw Normal View History

// Paramètres d'initialisation
$(document).ready(function() {
2020-03-04 11:04:50 +01:00
// Ajouter la classe Gallery afin de faire la liaison avec simplelightbox
$("a[rel='gallery']").addClass(
"gallery",""
);
2020-03-04 11:04:50 +01:00
// Démarrer le script
2020-03-11 21:42:59 +01:00
var a = new SimpleLightbox('.gallery', {
closeText:"×",
captionsData:'alt'
});
var b = new SimpleLightbox('.galleryGalleryPicture', {
captionSelector: "self",
captionType: "data",
captionsData: "caption",
closeText: "×"
});
2020-03-04 11:04:50 +01:00
});