Single v1
-commentaires cachés -settings -3 lightbox -enqueue js et css
This commit is contained in:
25
js/my-colorbox.js
Normal file
25
js/my-colorbox.js
Normal file
@@ -0,0 +1,25 @@
|
||||
$(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" />
|
||||
*/
|
||||
Reference in New Issue
Block a user