mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2024-12-21 23:53:55 +01:00
2 lines
528 B
JavaScript
2 lines
528 B
JavaScript
(function($){"use strict";$(document).on("cycle-initialized",function(e,opts){var key="cycle-look-ahead";opts.container.on("cycle-before",function(e,opts,outgoing,incoming,fwd){var index=fwd?opts.nextSlide+1:opts.nextSlide-1,slide=$(opts.slides[index]),images;if(slide.length&&!slide.data(key)){slide.data(key,true);images=slide.is("img[data-cycle-src]")?slide:slide.find("img[data-cycle-src]");images.each(function(){var img=$(this);img.attr("src",img.attr("data-cycle-src"));img.removeAttr("data-cycle-src")})}})})})(jQuery);
|