1/*�Smoothslides 2.1.0 by Kevin Thornbloom is licensed under a Creative Commons Attribution-ShareAlike 4.0 International�License.�20190101 updated by Sam Nowakowski to version 2.2.0�20190301 updated by Christian Brinkert to version 2.3.0�*/��(function($) {� $.fn.extend({� smoothSlides: function(givenOptions) {� // These are overridden by options declared in footer� var defaults = {� // number in milliseconds� sliderDuration: 5000,� // number in milliseconds� effectDuration: 5000,� // number in milliseconds� transitionDuration: 500,� effectModifier: 1.3,� order: 'normal',� // boolean, whether eht slide show should automatically start� autoPlay: true,� // crossFade zoomOut zoomIn panUp panDown panLeft panRight diagTopLeftToBottomRight diagTopRightToBottomLeft diagBottomRightToTopLeft diagBottomLeftToTopRight� effect: 'zoomOut,zoomIn,panUp,panDown,panLeft,panRight,diagTopLeftToBottomRight,diagTopRightToBottomLeft,diagBottomRightToTopLeft,diagBottomLeftToTopRight',� // sease ease-in ease-out ease-in-out linear� effectEasing: 'ease-in-out',� // text string for next or previous slide� nextText: ' âº',� prevText: 'â ',� // show captions?� captions: true,� // show navigation arrows?� navigation: true,� // show paginators?� pagination: true,� // limit width to max image width or zoom to 100% / full width� matchImageSize: true� };�� var options = $.extend(defaults, givenOptions),� that = this,� uniqueId = $(this).attr('id'),� $uniqueId = $('#'+uniqueId),� fullTime = options.sliderDuration + options.transitionDuration,� maxWidth = $(this).find('img').width(),� effectModPercent = ((options.effectModifier * 100)-100)*.25;�� if (options.transitionDuration >= options.effectDuration) {� console.log("Make sure effectDuration is greater than transitionDuration");� }�� // Change wrapper class to remove loading spinner� $uniqueId.removeClass('smoothslides').addClass('smoothslides-on');�� function fadeOutLast() {� // fade out only if more than one slider exists� if (1 < $(that).find('.ss-slide').length)� {� // Crapbag (<=IE9) detector� if (document.all && !window.atob) {� // Crapbag detected! Use jQuery to fade� $uniqueId.find('.ss-slide:last').animate({� 'opacity': '0'� });� } else {� // Fade out last with CSS� $uniqueId.find('.ss-slide:last').css({� 'transition': 'all ' + options.transitionDuration + 'ms',� 'opacity': '0'� });� }� }� }� // FX� that.crossFade = function() {� fadeOutLast();�� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale(1) rotate(0deg)'� });� }, options.transitionDuration);� };�� that.zoomOut = function() {� fadeOutLast();�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale('+options.effectModifier+') rotate(1deg)'� });� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale(1) rotate(0deg)'� });� }, options.transitionDuration);� };�� that.zoomIn = function() {� fadeOutLast();�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale(1.1) rotate(-1deg)'� });� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale('+options.effectModifier+') rotate(0deg)'� });� }, options.transitionDuration);� };�� that.panLeft = function() {�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale('+options.effectModifier+') translateX('+effectModPercent+'%)'� });� fadeOutLast();�� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale('+options.effectModifier+') translateX(0%)'� });� }, options.transitionDuration);� };�� that.panRight = function() {� fadeOutLast();�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale('+options.effectModifier+') translateX(-'+effectModPercent+'%)'� });� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale('+options.effectModifier+') translateX(0%)'� });� }, options.transitionDuration);� };�� that.panUp = function() {� fadeOutLast();�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale('+options.effectModifier+') translateY('+effectModPercent+'%)'� });� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale('+options.effectModifier+') translateY(0%)'� });� }, options.transitionDuration);� };�� that.panDown = function() {� fadeOutLast();�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale('+options.effectModifier+') translateY(-'+effectModPercent+'%)'� });� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale('+options.effectModifier+') translateY(0%)'� });� }, options.transitionDuration);� };�� that.diagTopLeftToBottomRight = function() {� fadeOutLast();�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale('+options.effectModifier+') translateY(-'+effectModPercent+'%) translateX(-'+effectModPercent+'%)'� });� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale('+options.effectModifier+') translateY(0%) translateX(0%)'� });� }, options.transitionDuration);� };�� that.diagBottomRightToTopLeft= function() {� fadeOutLast();�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale('+options.effectModifier+') translateY('+effectModPercent+'%) translateX('+effectModPercent+'%)'� });� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale('+options.effectModifier+') translateY(0%) translateX(0%)'� });� }, options.transitionDuration);� };�� that.diagTopRightToBottomLeft = function() {� fadeOutLast();�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale('+options.effectModifier+') translateY(-'+effectModPercent+'%) translateX('+effectModPercent+'%)'� });� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale('+options.effectModifier+') translateY(0%) translateX(0%)'� });� }, options.transitionDuration);� };�� that.diagBottomLeftToTopRight = function() {� fadeOutLast();�� var previousNode = (1 < $(that).find('.ss-slide').length)� ? $(this).find('.ss-slide:eq(-2)') : $(this).find('.ss-slide:last');�� // Set up next� previousNode.css({� 'transition':'none',� 'transform':'scale('+options.effectModifier+') translateY('+effectModPercent+'%) translateX(-'+effectModPercent+'%)'� });� setTimeout(function(){� // Wait for fade, then sort ...� if (1 < $(that).find('.ss-slide').length)� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� // ... and animate next� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale('+options.effectModifier+') translateY(0%) translateX(0%)'� });� }, options.transitionDuration);� };�� // Set max-width based on img size� if(options.matchImageSize === true) {� $uniqueId.css('maxWidth',maxWidth);� $('#'+uniqueId+' img').css('maxWidth','100%');� } else {� $('#'+uniqueId+' img').css('width','100%');� }�� // Wrap each in a div� $(this).children().each(function(){� $(this).wrap('<div class="ss-slide"></div>');� });�� // Function to randomize things. (used below)� $.fn.smoothslidesRandomize=function(a){(a?this.find(a):this).parent().each(function(){$(this).children(a).sort(function(){return Math.random()-0.5}).detach().appendTo(this)});return this};�� // Set slide order� if (options.order == "random") {� $('#'+ uniqueId +'').smoothslidesRandomize('.ss-slide');� } else {� $('#'+ uniqueId +' .ss-slide').each(function() {� $(this).prependTo('#'+uniqueId);� });� }�� // Set one as relative for height� $('#'+uniqueId+' .ss-slide:first').css('position','relative');��� if(options.autoPlay === true) {� $(".ss-slide:first", this).appendTo(this)� }�� // Add CSS easing & duration. Add wrapper div around each image� $(this).wrapInner("<div class='ss-slide-stage'></div>");� $(".ss-slide",this).each(function(){� $(this).css({� transition: 'all ' + options.effectDuration + 'ms ' + options.effectEasing +''� });� });�� // Captions, Yo� function captionUpdate() {� var node = $('#'+uniqueId);�� var nextNode = (1 < node.find('.ss-slide').length)� ? node.find('.ss-slide:eq(-2)
1img') : node.find('.ss-slide:last img');�� var nextId = nextNode.data('id');� var nextPosition = nextNode.data('position');� var maxWidth = parseInt(nextNode.data('maxwidth'),10);�� // var nextId = node.find('.ss-slide:eq(-2) img').data('id');� // var nextPosition = node.find('.ss-slide:eq(-2) img').data('position');� // var maxWidth = parseInt(node.find('.ss-slide:eq(-2) img').data('maxwidth'),10);�� if (isNaN(maxWidth) || 0 >= maxWidth) maxWidth = 'inherit';�� // set max teaser width� $uniqueId.find(".teasers-active").css('max-width',maxWidth);�� // toggle class� $('.teaserMaxWidth').removeClass('leftBottom').removeClass('rightBottom')� .removeClass('leftTop').removeClass('rightTop').addClass(nextPosition);�� if (!nextId) {� $uniqueId.find(".teasers-active").css('opacity','0');� } else {� var content = $('.teaser-cache div[data-id="'+nextId+'"]').html();� $uniqueId.find(".teasers-active").css('opacity','1').html(content)� }� }� // Captions backward� function captionUpdateBack() {� var node = $('#'+uniqueId);� var nextId = node.find('.ss-slide:eq(-1) img').data('id');� var nextPosition = node.find('.ss-slide:eq(-2) img').data('position');� var maxWidth = parseInt(node.find('.ss-slide:eq(-2) img').data('maxwidth'),10);� if (isNaN(maxWidth) || 0 >= maxWidth) maxWidth = 'inherit';�� // set max teaser width� $uniqueId.find(".teasers-active").css('max-width',maxWidth);�� // toggle class� $('.teaserMaxWidth').removeClass('leftBottom').removeClass('rightBottom')� .removeClass('leftTop').removeClass('rightTop').addClass(nextPosition);�� if (!nextId) {� $uniqueId.find(".teasers-active").css('opacity','0');� } else {� var content = $('.teaser-cache div[data-id="'+nextId+'"]').html();� $uniqueId.find(".teasers-active").css('opacity','1').html(content)� }� }�� // Add Caption Markup� if (options.captions === true) {� $(that).append('<div class="teaserMaxWidth"><div class="teasers-active"></div></div>');�� if (options.autoPlay === true) {� captionUpdate();� } else {� var nextId = $('#'+uniqueId).find('.ss-slide:last img').data('id');�� if (!nextId) {� $uniqueId.find(".teasers-active").css('opacity','0');� } else {� var content = $('.teaser-cache div[data-id="'+nextId+'"]').html();� $uniqueId.find(".teasers-active").css('opacity','1').html(content)� }� }� }�� // You want some Nav arrows? You got 'em� if (options.navigation === true) {� $(that).append('<a href="#" class="ss-prev ss-prev-on">' + options.prevText + '</a><a href="#" class="ss-next ss-next-on">' + options.nextText + '</a>');� }�� // How 'bout some dots? We got dots.� if (options.pagination === true) {� $(that).append('<div class="ss-paginate-wrap"><div class="ss-paginate"></div></div>');� $(".ss-slide",that).each(function() {� $('.ss-paginate', that).append('<a href="#"></a>');� });� if (options.autoPlay === true) {� $('.ss-paginate a:last', that).addClass("ss-paginate-current");� } else {� $('.ss-paginate a:first', that).addClass("ss-paginate-current");� }� }�� // Update pagination forward� function paginationUpdate() {� var total = $(that).find('.ss-paginate a').length;� var current = $(that).find('a.ss-paginate-current').index();� var next = current + 1;� if (next >= total) {� $(that).find('a.ss-paginate-current').removeClass();� $(that).find('.ss-paginate a:eq(0)').addClass('ss-paginate-current');� } else {� $(that).find('a.ss-paginate-current').removeClass();� $(that).find('.ss-paginate a:eq('+ next +')').addClass('ss-paginate-current');� }� }�� // Update pagination backward� function paginationUpdateBack() {� var total = $(that).find('.ss-paginate a').length;� var current = $(that).find('a.ss-paginate-current').index();� var next = current - 1;� if (next <= -2) {� $(that).find('a.ss-paginate-current').removeClass();� $(that).find('.ss-paginate a:eq('+total+')').addClass('ss-paginate-current');� } else {� $(that).find('a.ss-paginate-current').removeClass();� $(that).find('.ss-paginate a:eq('+ next +')').addClass('ss-paginate-current');� }� }�� // Autoplay Function� var autoPlay = function () {� // find out current id to override effect� if (1 < $('#'+uniqueId).find('.ss-slide').length)� var effect = $('#'+uniqueId).find('.ss-slide:eq(-2)
1img').data('effect');� else� var effect = $('#'+uniqueId).find('.ss-slide img').data('effect');�� // Crapbag (<=IE9) detector� if (document.all && !window.atob){� that.crossFade();� } else {� effectArray = options.effect.split(',');� if(effect) {� that[effect]();� }� else {� effect = effectArray[Math.floor(Math.random() * effectArray.length)];� that[effect]();� }� }� captionUpdate();� paginationUpdate();� };�� // Autoplay Interval� if (options.autoPlay === true) {� autoPlay();�� // continously animation only if more than one slider exists� if (1 < $(this).find('.ss-slide').length)� var playInterval = setInterval(autoPlay, fullTime);� }�� // Pause on Nav hover� $('.ss-prev, .ss-next, .ss-paginate', that).mouseover(function() {� clearInterval(playInterval);� }).mouseout(function() {� playInterval = setInterval(autoPlay, fullTime);� });�� // Navigation Forward� $uniqueId.on('click', '.ss-next-on', function(event) {� $('.ss-next-on', that).removeClass('ss-next-on');� // Fade out last� $(that).find('.ss-slide:last').css({� 'transition':'all '+options.transitionDuration+'ms',� 'opacity':'0'� });�� captionUpdate();� paginationUpdate();� setTimeout(function(){� // Wait for fade, then sort & animate next� $(that).find('.ss-slide:last').prependTo($(".ss-slide-stage", that)).css({� 'opacity':'1',� 'transform':'none'� });� $(that).find('.ss-slide:last').css({� 'transition': 'all ' + options.effectDuration + 'ms ' + options.effectEasing +'',� 'transform':'scale(1) rotate(0deg)'� });� $('.ss-next', that).addClass('ss-next-on');� }, options.transitionDuration);� event.preventDefault();� });�� // Navigation Backward� $uniqueId.on('click', '.ss-prev-on', function(event) {� $('.ss-prev-on', that).removeClass('ss-prev-on');� // Fade out last� $uniqueId.find(".ss-slide:first").css({� 'transition':'none',� 'opacity':'0'� }).appendTo('#'+uniqueId+' .ss-slide-stage');� $uniqueId.find('.ss-slide:last').css('opacity');� $uniqueId.find('.ss-slide:last').css({� 'transition':'all '+options.transitionDuration+'ms',� 'opacity':'1'� });� captionUpdateBack();� paginationUpdateBack();� setTimeout(function(){� $('.ss-prev').addClass('ss-prev-on');�� }, options.transitionDuration);� event.preventDefault();� });�� // Disabled nav� $uniqueId.on('click', '.ss-prev, .ss-next', function(event) {� event.preventDefault();� });�� // Pagination Clicking� $uniqueId.on('click', '.ss-paginate a', function(event) {� var dotClicked = $(this).index(); // 0 indexed� var currentDot = $('#'+uniqueId+' .ss-paginate-current').index(); // 0 indexed� var iterate; var i;�� if (dotClicked < currentDot) {� iterate = (currentDot - dotClicked);� for (i = 0; i < iterate; i++) {� $uniqueId.find('.ss-slide:first').appendTo('#'+uniqueId+' .ss-slide-stage');� }� } else if (dotClicked > currentDot) {� iterate = (dotClicked - currentDot);� for (i = 0; i < iterate; i++) {� $uniqueId.find('.ss-slide:last').prependTo('#'+uniqueId+' .ss-slide-stage');� }� }� $uniqueId.find('.ss-paginate-current').removeClass();� $uniqueId.find('.ss-paginate a:eq('+dotClicked+')').addClass('ss-paginate-current');�� // var nextCaption = $uniqueId.find('.ss-slide:eq(-1) img').prop('alt');�� var nextId = $('#'+uniqueId).find('.ss-slide:eq(-1) img').data('id');�� if (!nextId) {� $uniqueId.find(".teasers-active").css('opacity','0');� } else {� var content = $('.teaser-cache div[data-id="'+nextId+'"]').html();� $uniqueId.find(".teasers-active").css('opacity','1').html(content)� }� event.preventDefault();� });�� }� });�})(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.