Files
creator-child/js/my-colorbox.js
Bruno Pesenti 6df0f90b09 Single v1
-commentaires cachés
-settings
-3 lightbox
-enqueue js et css
2017-01-16 06:32:13 +01:00

25 lines
1.2 KiB
JavaScript

$(document).ready(function(){
// Default settings
//$.extend($.colorbox.settings, {opacity:0.5, speed:0, close:'Exit'});
//
$(".gallery").colorbox({rel:'gallery', maxWidth:'95%', maxHeight:'95%', transition:'fade'});
$(".slideshow").colorbox({rel:'slideshow', maxWidth:'95%', maxHeight:'95%', speed: '300',
slideshow:true, transition:'fade', slideshowSpeed: '3500', fadeOut: '350',
current: "image {current} sur {total}", slideshowStart: "Démarrer slideshow", slideshowStop: "Stopper slideshow"
});
//jQuery('a.gallery').colorbox();
//$('.non-retina').colorbox({rel:'group5', transition:'none'})
//$('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true});
});
// http://www.jacklmoore.com/colorbox/faq/#faq-titlelink
// https://stackoverflow.com/search?page=2&tab=relevance&q=colorbox
// http://www.jacklmoore.com/colorbox/
// <a href="" title="Description" class="">...</a> => Le title s'affiche dans la colorbox
/*
WP Media: WorpPress (post)
-Description -> <a href="" title="Description"> -> Colorbox: sous la photo
-Légende -> <p class="wp-caption-text">Légende</p> (caption sous la photo)
-Texte alternatif -> <img src="" alt="cerf" />
*/