2019-03-30 05:25:52 +01:00
|
|
|
// 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
|
2019-03-30 05:25:52 +01:00
|
|
|
$("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
|
|
|
});
|