forked from ZwiiCMS-Team/ZwiiCMS
21 lines
493 B
JavaScript
21 lines
493 B
JavaScript
// Paramètres d'initialisation
|
|
$(document).ready(function() {
|
|
|
|
// Ajouter la classe Gallery afin de faire la liaison avec simplelightbox
|
|
$("a[rel='gallery']").addClass(
|
|
"gallery",""
|
|
);
|
|
|
|
// Démarrer le script
|
|
var a = new SimpleLightbox('.gallery', {
|
|
closeText:"×",
|
|
captionsData:'alt'
|
|
});
|
|
var b = new SimpleLightbox('.galleryGalleryPicture', {
|
|
captionSelector: "self",
|
|
captionType: "data",
|
|
captionsData: "caption",
|
|
closeText: "×"
|
|
});
|
|
});
|