PageSourceSearch

https://www.vioel.de/js/nivo-slider/jquery.nivo.slider.lazy.v2.min.js?v=9

js vioel.de collected 2026-10-02 23:07:41 UTC 13,355 bytes, 13 lines download raw bytes

1/*
2 * jQuery Nivo Slider v3.2
3 * http://nivo.dev7studios.com
4 *
5 * Copyright 2012, Dev7studios
6 * Free to use and abuse under the MIT license.
7 * http://www.opensource.org/licenses/mit-license.php
8 */
9
10/*
11 * NOT ORIGINAL - modified by PortUNA Neue Medien GmbH
12 */
13!function(i){var e=function(e,t){var n=i.extend({},i.fn.nivoSliderLazy.defaults,t),a={currentSlide:0,currentImage:"",totalSlides:0,running:!1,loading:!1,afterRun:null,paused:!1,stop:!1,controlNavEl:!1},o=i(e);o.parent(),o.data("nivo:vars",a).addClass("nivoSlider"),o.css("position","relative");var r=o.find("img:not(.placeholder-image)").length,s=r?"img":"div",c=r?"src":"style",l=o.children();l.each(function(){var e=i(this),t="";e.is(s)||(e.is("a")&&(e.addClass("nivo-imageLink"),t=e),e=e.find(s+":first"));var n=0===n?e.attr("width"):e.width(),o=0===o?e.attr("height"):e.height();""!==t&&t.css("display","none"),e.css("display","block"),a.totalSlides++});var d=function(i){if(r)return i.data("src")||i.attr("src");var e=i.data("style")||i.attr("style"),t=e.match(/url\((["'])?([^"'\)]+)\1?\)/);return void 0!==t[2]?t[2]:(C('no url could be parsed for "'+e+'"'),e)},v=function(i){return i.data(c)||i.attr(c)},u=function(e){return i(l[e]).is(s)?i(l[e]):i(l[e]).find(s+":first")},h=function(i,e){var t=new Image,a=u(i),o=d(a);n.onImageLoad.call(this,o),t.onload=function(){"function"==typeof e&&e.call(this,o),n.onImageLoaded.call(this,o)},t.onerror=function(){t.onload.call(this),C('image "'+o+"\" couldn't be loaded")},t.src=o},p=function(i,e){var t=a.currentSlide+i;(t>=l.length||t<0)&&(t=0),h(t,e)};n.randomStart&&(n.startSlide=Math.floor(Math.random()*a.totalSlides)),n.startSlide>0&&(n.startSlide>=a.totalSlides&&(n.startSlide=a.totalSlides-1),a.currentSlide=n.startSlide),a.currentImage=u(a.currentSlide),i(l[a.currentSlide]).is("a")&&i(l[a.currentSlide]).css("display","block"),p(0),n.onImageLoad.call(this,a.currentImage),n.onImageChange.call(this,a.currentImage),!n.manualAdvance&&l.length>1&&setTimeout(function(){p(1)},Math.max(1e3,n.pauseTime-1e3));var f=i("<"+s+"/>").addClass("nivo-main-image");f.attr(c,v(a.currentImage)),f.attr("alt",a.currentImage.attr("alt")),f.show(),o.append(f),i(window).resize(function(){o.children(s).width(o.width()),f.attr(c,v(a.currentImage)),f.stop().height(r?"auto":o.height()+"px"),i(".nivo-slice").remove(),i(".nivo-box").remove()}),o.append(i('<div class="nivo-caption"></div>'));var m=function(e){var t=i(".nivo-caption",o);if(""!=a.currentImage.attr("title")&&void 0!=a.currentImage.attr("title")){var n=a.currentImage.attr("title");"#"==n.substr(0,1)&&(n=i(n).html()),"block"==t.css("display")?setTimeout(function(){t.html(n)},e.animSpeed):(t.html(n),t.stop().fadeIn(e.animSpeed))}else t.stop().fadeOut(e.animSpeed)};m(n);var g=0;!n.manualAdvance&&l.length>1&&(g=setInterval(function(){I(o,l,n,!1)},n.pauseTime));var $=function(){clearInterval(g),g="",a.currentSlide-=2,I(o,l,n,"prev")},x=function(){clearInterval(g),g="",I(o,l,n,"next")};if(n.directionNav&&(o.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+n.prevText+'</a><a class="nivo-nextNav">'+n.nextText+"</a></div>"),i(o).on("click","a.nivo-prevNav",function(){a.running?a.afterRun=$:$()}),i(o).on("click","a.nivo-nextNav",function(){a.running?a.afterRun=x:x()})),n.controlNav){a.controlNavEl=i('<div class="nivo-controlNav"></div>'),o.after(a.controlNavEl);for(var w=0;w<l.length;w++)if(n.controlNavThumbs){a.controlNavEl.addClass("nivo-thumbs-enabled");var b=l.eq(w);b.is(s)||(b=b.find(s+":first")),b.attr("data-thumb")&&a.controlNavEl.append('<a class="nivo-control" rel="'+w+'" title="zu Bild '+w+' wechseln"><img src="'+b.attr("data-thumb")+'" alt="'+b.attr("alt")+'" /></a>')}else a.controlNavEl.append('<a class="nivo-control" rel="'+w+'" title="zu Bild '+w+' wechseln">'+(w+1)+"</a>");i("a:eq("+a.currentSlide+")",a.controlNavEl).addClass("active"),i("a",a.controlNavEl).bind("click",function(){if(i(this).hasClass("active"))return!1;var e=i(this).attr("rel")-1,t=function(){clearInterval(g),g="",a.currentSlide=e,I(o,l,n,"control")};a.running?a.afterRun=t:t()})}n.keyboardNav&&i(window).keypress(function(e){i(e.target).is("select, input, textarea")||(37===e.ke
13yCode?a.running?a.afterRun=$:$():39===e.keyCode&&(a.running?a.afterRun=x:x()))}),n.pauseOnHover&&o.hover(function(){a.paused=!0,clearInterval(g),g=""},function(){a.paused=!1,""!==g||n.manualAdvance||(g=setInterval(function(){I(o,l,n,!1)},n.pauseTime))});var _=function(){var e=function(){i(".nivo-slice, .nivo-box",o).remove(),i(l).each(function(){i(this).is("a")&&i(this).css("display","none")}),i(l[a.currentSlide]).is("a")&&i(l[a.currentSlide]).css("display","block"),a.paused||n.manualAdvance||p(1,function(){""===g&&(g=setInterval(function(){I(o,l,n,!1)},n.pauseTime))}),a.running=!1,n.afterChange.call(this),"function"==typeof a.afterRun&&(a.afterRun(),a.afterRun=null)};f.attr(c,v(a.currentImage)),h(a.currentSlide,e)},S=function(e,t,n){i(n.currentImage).parent().is("a")&&i(n.currentImage).parent().css("display","block"),r?(i('img[src="'+v(n.currentImage)+'"]',e).not(".nivo-main-image,.nivo-control img").width(e.width()).css("visibility","hidden").show(),o=i('img[src="'+v(n.currentImage)+'"]',e).not(".nivo-main-image,.nivo-control img").parent().is("a")?i('img[src="'+v(n.currentImage)+'"]',e).not(".nivo-main-image,.nivo-control img").parent().height():i('img[src="'+v(n.currentImage)+'"]',e).not(".nivo-main-image,.nivo-control img").height()):(i('div[style="'+v(n.currentImage).replace(/"/g,'\\"')+'"]',e).not(".nivo-main-image,.nivo-control div,.nivo-slice div, div").width(e.width()).css("visibility","hidden").show(),o=e.height());for(var a=0;a<t.slices;a++){var o,s,c=Math.round(e.width()/t.slices);s=r?'<img src="'+v(n.currentImage)+'" style="position:absolute; width:'+e.width()+"px; height:auto; display:block !important; top:0; left:-"+(c+a*c-c)+'px;" />':'<div style="'+v(n.currentImage).replace(/\"/g,"'")+" position:absolute; width:"+e.width()+"px; height:"+e.height()+"px; display:block !important; top:0; left:-"+(c+a*c-c)+'px;" ></div>',e.append(i('<div class="nivo-slice" name="'+a+'">'+s+"</div>").css({left:c*a+"px",width:a===t.slices-1?e.width()-c*a+"px":c+"px",height:o+"px",opacity:"0",overflow:"hidden"}))}i(".nivo-slice",e).height(o),f.stop().height(r?"auto":e.height()+"px")},y=function(e,t,n){i(n.currentImage).parent().is("a")&&i(n.currentImage).parent().css("display","block");var a,o=Math.round(e.width()/t.boxCols);r?(i('img[src="'+v(n.currentImage)+'"]',e).not(".nivo-main-image,.nivo-control img").width(e.width()).css("visibility","hidden").show(),a=Math.round(i('img[src="'+v(n.currentImage)+'"]',e).not(".nivo-main-image,.nivo-control img").height()/t.boxRows),isNaN(a)&&(a=Math.round(i('img[data-src="'+v(n.currentImage)+'"]').not(".nivo-main-image,.nivo-control img").height()/t.boxRows))):(i('div[style="'+v(n.currentImage).replace(/"/g,'\\"')+'"]',e).not(".nivo-main-image,.nivo-control div,.nivo-slice div, div").width(e.width()).css("visibility","hidden").show(),a=Math.round(e.height()/t.boxRows));for(var s=0;s<t.boxRows;s++)for(var c,l=0;l<t.boxCols;l++)c=r?'<img src="'+v(n.currentImage)+'" style="position:absolute; width:'+e.width()+"px; height:auto; display:block; top:-"+a*s+"px; left:-"+o*l+'px;" />':'<div style="'+v(n.currentImage).replace(/\"/g,"'")+" position:absolute; width:"+e.width()+"px; height:"+e.height()+"px; display:block; top:-"+a*s+"px; left:-"+o*l+'px;" ></div>',e.append(i('<div class="nivo-box" name="'+l+'" rel="'+s+'">'+c+"</div>").css({opacity:0,left:o*l+"px",top:a*s+"px",width:l===t.boxCols-1?e.width()-o*l+"px":o+"px"})),r?i('.nivo-box[name="'+l+'"]',e).height(i('.nivo-box[name="'+l+'"] img',e).height()+"px"):i('.nivo-box[name="'+l+'"]',e).height(i('.nivo-box[name="'+l+'"] div',e).height()+"px");f.stop().height(r?"auto":e.height()+"px")},I=function(e,t,n,o){if(!a||a.stop||a.loading||a.running)return!1;a.running=!0,a&&a.currentSlide===a.totalSlides-1&&n.lastSlide.call(this),n.beforeChange.call(this),a.currentSlide++,a.currentSlide>=a.totalSlides?(a.currentSlide=0,n.slideshowEnd.call(this)):a.currentSlide<0&&(a.currentSlide=a.totalSlides-1),a.currentImage=u(a.currentSlide),n.controlNav&&(i("a",a.controlNavEl).removeClass("active"),i("a:eq("+a.currentSlide+")",a.controlNavEl).addClass("active")),n.onImageChange.call(this,a.currentImage);var s=function(){a.currentImage.data("nivo-loaded",!0),m(n),i(".nivo-slice",e).remove(),i(".nivo-box",e).remove();var t=n.effect,o="";"random"===n.effect&&void 0===(t=(o=["sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse"])[Math.floor(Math.random()*(o.length+1))])&&(t="fade"),-1!==n.effect.indexOf(",")&&void 0===(t=(o=n.effect.split(","))[Math.floor(Math.random()*o.length)])&&(t="fade"),a.currentImage.attr("data-transition")&&(t=a.currentImage.attr("data-transition"));var s=0,c=0,l="",d="",v="",u="";if(0!==n.animSpeed||r){if("sliceDown"===t||"sliceDownRight"===t||"sliceDownLeft"===t)S(e,n,a),s=0,c=0,l=i(".nivo-slice",e),"sliceDownLeft"===t&&(l=i(".nivo-slice",e)._reverse()),l.each(function(){var e=i(this);e.css({top:"0px"}
13),c===n.slices-1?setTimeout(function(){e.animate({opacity:"1.0"},n.animSpeed,"",_)},100+s):setTimeout(function(){e.animate({opacity:"1.0"},n.animSpeed)},100+s),s+=50,c++});else if("sliceUp"===t||"sliceUpRight"===t||"sliceUpLeft"===t)S(e,n,a),s=0,c=0,l=i(".nivo-slice",e),"sliceUpLeft"===t&&(l=i(".nivo-slice",e)._reverse()),l.each(function(){var e=i(this);e.css({bottom:"0px"}),c===n.slices-1?setTimeout(function(){e.animate({opacity:"1.0"},n.animSpeed,"",_)},100+s):setTimeout(function(){e.animate({opacity:"1.0"},n.animSpeed)},100+s),s+=50,c++});else if("sliceUpDown"===t||"sliceUpDownRight"===t||"sliceUpDownLeft"===t){S(e,n,a),s=0,c=0;var h=0;l=i(".nivo-slice",e),"sliceUpDownLeft"===t&&(l=i(".nivo-slice",e)._reverse()),l.each(function(){var e=i(this);0===c?(e.css("top","0px"),c++):(e.css("bottom","0px"),c=0),h===n.slices-1?setTimeout(function(){e.animate({opacity:"1.0"},n.animSpeed,"",_)},100+s):setTimeout(function(){e.animate({opacity:"1.0"},n.animSpeed)},100+s),s+=50,h++})}else if("fold"===t)S(e,n,a),s=0,c=0,i(".nivo-slice",e).each(function(){var e=i(this),t=e.width();e.css({top:"0px",width:"0px"}),c===n.slices-1?setTimeout(function(){e.animate({width:t,opacity:"1.0"},n.animSpeed,"",_)},100+s):setTimeout(function(){e.animate({width:t,opacity:"1.0"},n.animSpeed)},100+s),s+=50,c++});else if("fade"===t)S(e,n,a),i(".nivo-slice:not(:first)",e).hide(),(d=i(".nivo-slice:first",e)).css({width:e.width()+"px"}),d.animate({opacity:1},2*n.animSpeed,"",_);else if("slideInRight"===t)S(e,n,a),(d=i(".nivo-slice:first",e)).css({width:"0px",opacity:"1"}),d.animate({width:e.width()+"px"},2*n.animSpeed,"",_);else if("slideInLeft"===t)S(e,n,a),(d=i(".nivo-slice:first",e)).css({width:"0px",opacity:"1",left:"",right:"0px"}),d.animate({width:e.width()+"px"},2*n.animSpeed,"",function(){d.css({left:"0px",right:""}),_()});else if("boxRandom"===t)y(e,n,a),v=n.boxCols*n.boxRows,c=0,s=0,(u=R(i(".nivo-box",e))).each(function(){var e=i(this);c===v-1?setTimeout(function(){e.animate({opacity:"1"},n.animSpeed,"",_)},100+s):setTimeout(function(){e.animate({opacity:"1"},n.animSpeed)},100+s),s+=20,c++});else if("boxRain"===t||"boxRainReverse"===t||"boxRainGrow"===t||"boxRainGrowReverse"===t){y(e,n,a),v=n.boxCols*n.boxRows,c=0,s=0;var p=0,f=0,g=[];g[p]=[],u=i(".nivo-box",e),("boxRainReverse"===t||"boxRainGrowReverse"===t)&&(u=i(".nivo-box",e)._reverse()),u.each(function(){g[p][f]=i(this),++f===n.boxCols&&(f=0,g[++p]=[])});for(var $=0;$<2*n.boxCols;$++){for(var x=$,w=0;w<n.boxRows;w++)x>=0&&x<n.boxCols&&(function(e,a,o,r,s){var c=i(g[e][a]),l=c.width(),d=c.height();("boxRainGrow"===t||"boxRainGrowReverse"===t)&&c.width(0).height(0),r===s-1?setTimeout(function(){c.animate({opacity:"1",width:l,height:d},n.animSpeed/1.3,"",_)},100+o):setTimeout(function(){c.animate({opacity:"1",width:l,height:d},n.animSpeed/1.3)},100+o)}(w,x,s,c,v),c++),x--;s+=100}}}else S(e,n,a),(d=i(".nivo-slice:first",e)).css({width:e.width()+"px",opacity:1}),_()};a.currentImage.data("nivo-loaded")?s():(a.loading=!0,a.running=!0,clearInterval(g),g="",h(a.currentSlide,function(){a.loading=!1,s()}))},R=function(i){for(var e,t,n=i.length;n;e=parseInt(Math.random()*n,10),t=i[--n],i[n]=i[e],i[e]=t);return i},C=function(i){this.console&&void 0!==console.log&&console.log(i)};return this.stop=function(){i(e).data("nivo:vars").stop||(i(e).data("nivo:vars").stop=!0,C("Stop Slider"))},this.start=function(){i(e).data("nivo:vars").stop&&(i(e).data("nivo:vars").stop=!1,C("Start Slider"))},n.afterLoad.call(this),this};i.fn.nivoSliderLazy=function(t){return this.each(function(n,a){var o=i(this);if(o.data("nivoslider"))return o.data("nivoslider");var r=new e(this,t);o.data("nivoslider",r)})},i.fn.nivoSliderLazy.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:1e3,pauseTime:3e3,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,controlNavThumbs:!1,keyboardNav:!0,pauseOnHover:!0,manualAdvance:!1,prevText:"zur\xfcck",nextText:"vor",randomStart:!1,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){},onImageLoad:function(i){},onImageLoaded:function(i){},onImageChange:function(){}},i.fn._reverse=[].reverse}(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.