Skip to content
spring2life
take2.2
Vernacular
Common Places
Comments
Blogs I Read
Gallery
The Tenset
Things
Places
Events
People
Books
Archives
Search
RSS
Contact
About
Impressum
Datenschutzerklärung
Tag:
we shall overcome
for a given reason: think about tibet
(11/03/2009)
jQuery( document ).ajaxComplete(function() { // alert( "Triggered ajaxComplete handler." ); jQuery.fn.getTitle = function() { var arr = jQuery("a.fancybox"); jQuery.each(arr, function() { var title = jQuery(this).children("img").attr("title"); var caption = jQuery(this).children("img").attr("alt"); jQuery(this).attr('title',title).attr('data-caption',caption); }) } var images = jQuery("a:has(img)").not(".nolightbox").filter( function() { return /\.(jpe?g|png|gif|bmp)$/i.test(jQuery(this).attr('href')) }); var gallery = jQuery(".gallery-item a:has(img)").not(".nolightbox").filter( function() { return /\.(jpe?g|png|gif|bmp)$/i.test(jQuery(this).attr('href')) }); console.log(images.length); /* images.addClass("fancybox").getTitle(); */ images.addClass("fancybox"); /* images.attr("data-fancybox='images'","gallery"); */ /* MWS codit */ images.parent().attr("data-fancybox","images"); /* MWS codit */ /* gallery.addClass("fancybox").getTitle(); gallery.attr("data-fancybox","gallery"); */ /* $().fancybox({ selector : '.alignnone a:visible' }); */ jQuery("a.fancybox").fancybox({ 'loop': false, 'margin': [44, 0], 'gutter': 50, 'keyboard': true, 'arrows': true, 'infobar': false, 'toolbar': true, 'buttons': ["slideShow", "fullScreen", "thumbs", "close"], 'idleTime': 4, 'protect': false, 'modal': false, 'animationEffect': "zoom", 'animationDuration': 350, 'transitionEffect': "fade", 'transitionDuration': 350, }); });