[9.0.08] Simplelightbox integration

This commit is contained in:
Fred 2019-03-21 10:41:02 +01:00 committed by GitHub
parent 7dab440a51
commit da07801e74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -329,7 +329,10 @@ core.start = function() {
}).trigger("resize");
// Ajouter l'attribut data-lity afin de faire la liaison avec lity
$("a[rel='data-lity']").attr("data-lity","");
// $("a[rel='data-lity']").attr("data-lity","");
// Ajouter la classe Gallery afin de faire la liaison avec simplelightbox
$("a[rel='gallery']").addClass("gallery","");
};
core.start();
@ -351,4 +354,4 @@ core.relativeLuminanceW3C = function(rgba) {
var G = (GsRGBA <= .03928) ? GsRGBA / 12.92 : Math.pow((GsRGBA + .055) / 1.055, 2.4);
var B = (BsRGBA <= .03928) ? BsRGBA / 12.92 : Math.pow((BsRGBA + .055) / 1.055, 2.4);
return .2126 * R + .7152 * G + .0722 * B;
};
};