1(function($){$.fn.diaporama=function(options){var defaults={delay:3,animationSpeed:"normal",controls:true};var options=$.extend(defaults,options);this.each(function(){var obj=$(this);if($(obj).find("li").length>1){var inter=setInterval(function(){nextElt(options)},(options.delay*1000));var sens="right";var pause=false;$(obj).find("li").hide();$(obj).find("li:first-child").addClass("active").fadeIn(options.animationSpeed);if(options.controls) 2{$("#navigation-image").find(".prev").click(function(){clearInterval(inter);prevElt(options);if(!pause) 3inter=setInterval(function(){prevElt(options)},(options.delay*1000));sens="left";});$("#navigation-image").find(".next").click(function(){clearInterval(inter);nextElt(options);if(!pause) 4inter=setInterval(function(){nextElt(options)},(options.delay*1000));sens="right";});} 5function nextElt(options) 6{$(obj).find("li.active").fadeOut(options.animationSpeed);if(!$(obj).find("li.active").is(":last-child")) 7{$(obj).find("li.active").next().addClass("active").prev().removeClass("active");$(obj).find("li.active").fadeIn(options.animationSpeed);} 8else 9{$(obj).find("li:first-child").addClass("active").fadeIn(options.animationSpeed);$(obj).find("li:last-child").removeClass("active");}} 10function prevElt(options) 11{$(obj).find("li.active").fadeOut(options.animationSpeed);if(!$(obj).find("li.active").is(":first-child")) 12{$(obj).find("li.active").prev().addClass("active").next().removeClass("active");$(obj).find("li.active").fadeIn(options.animationSpeed);} 13else 14{$(obj).find("li:last-child").addClass("active").fadeIn(options.animationSpeed);$(obj).find("li:first-child").removeClass("active");}}}else{$("#navigation-image").hide();}});return this;};})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.