{"version":3,"sources":["jquery.jSlider.js"],"names":["factory","define","amd","jQuery","$","activeSlider","isTouch","window","isPointerIE10","navigator","msPointerEnabled","pointerEnabled","isPointer","isTouchDevice","startEvent","moveEvent","stopEvent","enterEvent","leaveEvent","cancelEvent","cssEndTransition","sliderMap","isTouching","startX","startY","deltaX","deltaY","css","document","body","documentElement","style","isCSSAnimation","undefined","transform","WebkitTransform","MozTransform","MsTransform","OTransform","transition","WebkitTransition","MozTransition","MsTransition","OTransition","getXY","evt","val","event","originalEvent","touches","length","getX","getY","fn","extend","setTransition","time","timing","duration","property","this","-webkit-transition-property","-moz-transition-property","-ms-transition-property","-o-transition-property","transition-property","-webkit-transition-duration","-moz-transition-duration","-ms-transition-duration","-o-transition-duration","transition-duration","-webkit-transition-timing-function","-moz-transition-timing-function","-ms-transition-timing-function","-o-transition-timing-function","transition-timing-function","translateX","noanim","surfix","toString","indexOf","-webkit-transform","-moz-transform","-ms-transform","-o-transform","margin-left","animateX","hasClass","addClass","on","$this","target","getSlider","slideComplete","stop","animate","animateFade","-webkit-opacity","-moz-opacity","-ms-opacity","-o-opacity","opacity","propertyName","fadeTo","sliderInit","options","total","children","data","defaults","navigation","indicator","speed","delay","loop","group","html_data","settings","isNaN","Math","ceil","current","selected","location","hash","find","index","removeClass","each","$elem","top","parseInt","left","wrapInner","push","slider","sliderInterval","showInterval","clone","prependTo","-ms-scroll-chaining","-ms-touch-action","touch-action","$slider","$slides","preventDefault","sliderStop","w","width","abs","sliderCancelTouch","dir","sliderGo","sliderUpdate","mouseup","trigger","fadeIn","fadeOut","controller","class","html","appendTo","userAgent","toLowerCase","nav","ind","show","i","text","data-slide","next","sliderOptimize","type","sliderResized","sliderPlay","isLoaded","setInterval","clearInterval","prev","p2","$elems","sliderShowItems","eq","z-index","direction","showIndex","sliderHideItems","$item","parents","ready","resize"],"mappings":"CAWA,SAAUA,GACa,mBAAXC,QACPA,OAAOC,KACPD,OAAOC,IAAIC,OAGRF,OAAO,CAAC,UAAWD,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,KAAK2B,SAAS,WACV3B,KAEDA,KAAKgI,QAAQ,eAKtBxL,EAAEwB,UAAUiK,MAAM,SAAShJ,GAC1BzC,EAAE,iBAAiB4H,KAAK,WACvB5H,EAAEwD,MAAM4C,iBAIVpG,EAAEG,QAAQuL,OAAO,SAASjJ,GACzBzC,EAAE,iBAAiB4H,KAAK,WACvB5H,EAAEwD,MAAMiH","file":"jquery.jSlider.min.js","sourcesContent":["/*!\r\n* @jSlider - a jQuery Plugin\r\n* @version 1.0.1\r\n*\r\n* @author Thuy Nguyen ducthuy@gmail.com\r\n* @website http://startjs.com/\r\n* @github https://github.com/copthuy/jSlider\r\n* MIT License\r\n* Copyright (c) 2018 Thuy Nguyen\r\n*/\r\n\r\n(function(factory) {\r\n\tif (typeof define === 'function'\r\n\t\t&& define.amd\r\n\t\t&& define.amd.jQuery) {\r\n\r\n\t\t// AMD. Register as anonymous module.\r\n define(['jquery'], factory);\r\n\r\n } else if (typeof jQuery !== 'undefined') {\r\n // Browser globals.\r\n factory(jQuery);\r\n\r\n }\r\n\r\n})(function($) {\r\n\t\"use strict\";\r\n\r\n\t/* global touching environment variables */\r\n\tvar isTouch = 'ontouchstart' in window\r\n\t\t, isPointerIE10 = (window.navigator.msPointerEnabled && !window.navigator.pointerEnabled) || false\r\n\t\t, isPointer = window.navigator.pointerEnabled || window.navigator.msPointerEnabled || false\r\n\t\t, isTouchDevice = isTouch || isPointer;\r\n\r\n\tvar startEvent = isTouchDevice ? (isPointer ? (isPointerIE10 ? 'MSPointerDown' : 'pointerdown') : 'touchstart') : 'mousedown'\r\n\t\t, moveEvent = isTouchDevice ? (isPointer ? (isPointerIE10 ? 'MSPointerMove' : 'pointermove') : 'touchmove') : 'mousemove'\r\n\t\t, stopEvent = isTouchDevice ? (isPointer ? (isPointerIE10 ? 'MSPointerUp' : 'pointerup') : 'touchend') : 'mouseup'\r\n\t\t, enterEvent = isTouchDevice ? null : 'mouseenter'\r\n\t\t, leaveEvent = isTouchDevice ? null : 'mouseleave'\r\n\t\t, cancelEvent = isTouchDevice ? (isPointer ? (isPointerIE10 ? 'MSPointerCancel' : 'pointercancel') : 'touchcancel') : null;\r\n\r\n\tvar cssEndTransition = 'transitionend webkitTransitionEnd oTransitionEnd msTransitionEnd';\r\n\r\n\tvar sliderMap = []\r\n\t\t, isTouching = false\r\n\t\t, isSwiping = false\r\n\t\t, swipeThreshold = 35\r\n\t\t, startX = 0\r\n\t\t, startY = 0\r\n\t\t, deltaX = 0\r\n\t\t, deltaY = 0\r\n\t\t, activeSlider;\r\n\r\n\tvar body = document.body || document.documentElement, css = body.style;\r\n\tvar isCSSAnimation = (css.transform !== undefined\r\n\t\t\t\t\t\t|| css.WebkitTransform !== undefined\r\n\t\t\t\t\t\t|| css.MozTransform !== undefined\r\n\t\t\t\t\t\t|| css.MsTransform !== undefined\r\n\t\t\t\t\t\t|| css.OTransform !== undefined)\r\n\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t(css.transition !== undefined\r\n\t\t\t\t\t\t|| css.WebkitTransition !== undefined\r\n\t\t\t\t\t\t|| css.MozTransition !== undefined\r\n\t\t\t\t\t\t|| css.MsTransition !== undefined\r\n\t\t\t\t\t\t|| css.OTransition !== undefined);\r\n\r\n\t/* common functions */\r\n\tfunction getXY(evt, val) {\r\n\t\tvar event = evt.originalEvent ? evt.originalEvent : evt;\r\n\r\n\t\treturn isTouch && event.touches !== undefined && event.touches.length == 1\r\n\t\t\t? event.touches[0][val]\r\n\t\t\t: evt[val] !== undefined\r\n\t\t\t\t? evt[val]\r\n\t\t\t\t: event[val] !== undefined\r\n\t\t\t\t\t? event[val]\r\n\t\t\t\t\t: 0;\r\n\t}\r\n\r\n\tfunction getX(evt) {\r\n\t\treturn getXY(evt, 'pageX');\r\n\t}\r\n\r\n\tfunction getY(evt) {\r\n\t\treturn getXY(evt, 'pageY');\r\n\t}\r\n\r\n\t/* lib extension */\r\n\t$.fn.extend({\r\n\r\n\t\t'setTransition': function(time) {\r\n\t\t\tif (isCSSAnimation == true) {\r\n\t\t\t\tvar timing = time !== 0 ? 'cubic-bezier(0.39, 0.575, 0.565, 1)' : 'linear'\r\n\t\t\t\t\t, duration = time + 's'\r\n\t\t\t\t\t, property = time !== 0 ? 'all' : 'none';\r\n\r\n\t\t\t\tthis.css({\r\n\t\t\t\t\t'-webkit-transition-property': property\r\n\t\t\t\t\t, '-moz-transition-property': property\r\n\t\t\t\t\t, '-ms-transition-property': property\r\n\t\t\t\t\t, '-o-transition-property': property\r\n\t\t\t\t\t, 'transition-property': property\r\n\r\n\t\t\t\t\t, '-webkit-transition-duration': duration\r\n\t\t\t\t\t, '-moz-transition-duration': duration\r\n\t\t\t\t\t, '-ms-transition-duration': duration\r\n\t\t\t\t\t, '-o-transition-duration': duration\r\n\t\t\t\t\t, 'transition-duration': duration\r\n\r\n\t\t\t\t\t, '-webkit-transition-timing-function': timing\r\n\t\t\t\t\t, '-moz-transition-timing-function': timing\r\n\t\t\t\t\t, '-ms-transition-timing-function': timing\r\n\t\t\t\t\t, '-o-transition-timing-function': timing\r\n\t\t\t\t\t, 'transition-timing-function': timing\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t, 'translateX': function(val, noanim) {\r\n\t\t\tvar surfix = '';\r\n\t\t\tif (val.toString().indexOf('px') == -1) {\r\n\t\t\t\tsurfix = 'px';\r\n\t\t\t}\r\n\r\n\t\t\tif (isCSSAnimation == true) {\r\n\t\t\t\tif (noanim !== undefined && noanim !== null && noanim === true) {\r\n\t\t\t\t\tthis.setTransition(0);\r\n\t\t\t\t}\r\n\t\t\t\tthis.css({\r\n\t\t\t\t\t'-webkit-transform': 'translate3d(' + val + surfix + ', 0, 0)'\r\n\t\t\t\t\t, '-moz-transform': 'translateX(' + val + surfix + ')'\r\n\t\t\t\t\t, '-ms-transform': 'translateX(' + val + surfix + ')'\r\n\t\t\t\t\t, '-o-transform': 'translateX(' + val + surfix + ')'\r\n\t\t\t\t\t, 'transform': 'translateX(' + val + surfix + ')'\r\n\t\t\t\t});\r\n\r\n\t\t\t} else {\r\n\t\t\t\tthis.css({\r\n\t\t\t\t\t'margin-left': val\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t, 'animateX': function(val, time) {\r\n\t\t\tif (isCSSAnimation == true) {\r\n\t\t\t\tthis\r\n\t\t\t\t\t.setTransition(time / 1000)\r\n\t\t\t\t\t.translateX(val);\r\n\r\n\t\t\t\tif (!this.hasClass('event-attached')) {\r\n\t\t\t\t\tthis\r\n\t\t\t\t\t\t.addClass('event-attached')\r\n\t\t\t\t\t\t.on(cssEndTransition, function(evt) {\r\n\t\t\t\t\t\t\tvar $this = $(evt.target);\r\n\t\t\t\t\t\t\tif ($this.hasClass('slider-slides')) {\r\n\t\t\t\t\t\t\t\t$this.getSlider().slideComplete();\r\n\t\t\t\t\t\t\t\t$this.setTransition(0);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tthis\r\n\t\t\t\t\t.stop(true, true)\r\n\t\t\t\t\t.animate({\r\n\t\t\t\t\t\t\t'margin-left': val\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t, time\r\n\t\t\t\t\t\t, function() {\r\n\t\t\t\t\t\t\t$(this).getSlider().slideComplete();\r\n\t\t\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t, 'animateFade': function(time) {\r\n\t\t\tif (isCSSAnimation == true) {\r\n\t\t\t\tthis\r\n\t\t\t\t\t.setTransition(time / 1000)\r\n\t\t\t\t\t.css({\r\n\t\t\t\t\t\t'-webkit-opacity': 1\r\n\t\t\t\t\t\t, '-moz-opacity': 1\r\n\t\t\t\t\t\t, '-ms-opacity': 1\r\n\t\t\t\t\t\t, '-o-opacity': 1\r\n\t\t\t\t\t\t, 'opacity': 1\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\tif (!this.hasClass('event-attached')) {\r\n\t\t\t\t\tthis\r\n\t\t\t\t\t\t.addClass('event-attached')\r\n\t\t\t\t\t\t.on(cssEndTransition, function(evt) {\r\n\t\t\t\t\t\t\tif (evt.originalEvent.propertyName.indexOf('opacity') != -1\r\n\t\t\t\t\t\t\t\t&& $(this).css('z-index') != 0) {\r\n\r\n\t\t\t\t\t\t\t\t$(this).getSlider().slideComplete();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tthis\r\n\t\t\t\t\t.stop(true, true)\r\n\t\t\t\t\t.fadeTo(time\r\n\t\t\t\t\t\t, 1\r\n\t\t\t\t\t\t, function() {\r\n\t\t\t\t\t\t\t$(this).getSlider().slideComplete();\r\n\t\t\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\treturn this;\r\n\t\t}\r\n\t});\r\n\r\n\t/* extend slider to DOM object */\r\n\t$.fn.extend({\r\n\r\n\t\t/* setup slider */\r\n\t\t'sliderInit': function(options) {\r\n\r\n\t\t\t/* do nothing if there is only one slide */\r\n\t\t\tvar total = this.children().length;\r\n\t\t\tif (total <= 1 || this.data('initialized') == true) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (!this.hasClass('jSlider')) {\r\n\t\t\t\tthis.addClass('jSlider');\r\n\t\t\t}\r\n\r\n\t\t\t/* SLIDER SETTINGS */\r\n\t\t\t/* ------------------------------------------------------------------------------------------*/\r\n\t\t\tvar defaults = {\r\n\t\t\t\t'navigation': 'hover'\r\n\t\t\t\t, 'indicator': 'always'\r\n\t\t\t\t, 'speed': 500\r\n\t\t\t\t, 'delay': 5000\r\n\t\t\t\t, 'transition': 'slide'\r\n\t\t\t\t, 'loop': false\r\n\t\t\t\t, 'group': 1\r\n\t\t\t};\r\n\r\n\t\t\tvar html_data = {\r\n\t\t\t\t'navigation': this.data('navigation')\r\n\t\t\t\t, 'indicator': this.data('indicator')\r\n\t\t\t\t, 'speed': this.data('speed')\r\n\t\t\t\t, 'delay': this.data('delay')\r\n\t\t\t\t, 'transition': this.data('transition')\r\n\t\t\t\t, 'loop': this.data('loop')\r\n\t\t\t\t, 'group': this.data('group')\r\n\t\t\t}\r\n\r\n\t\t\t/* extend settings */\r\n\t\t\tvar settings = $.extend({}, defaults, html_data, options);\r\n\r\n\t\t\t/* fixes */\r\n\t\t\tif (isNaN(settings.speed)\r\n\t\t\t\t|| settings.speed < 0) {\r\n\r\n\t\t\t\tsettings.speed = defaults.speed;\r\n\t\t\t}\r\n\t\t\tif (isNaN(settings.delay)\r\n\t\t\t\t|| settings.delay < 0) {\r\n\r\n\t\t\t\tsettings.delay = defaults.delay;\r\n\t\t\t}\r\n\t\t\tif (settings.transition != 'slide'\r\n\t\t\t\t&& settings.transition != 'fade') {\r\n\r\n\t\t\t\tsettings.transition = defaults.transition;\r\n\t\t\t}\r\n\t\t\tif (settings.transition != 'slide') {\r\n\t\t\t\tsettings.group = 1;\r\n\t\t\t}\r\n\t\t\tif (isTouchDevice) {\r\n\t\t\t\tif (settings.navigation == 'hover') {\r\n\t\t\t\t\tsettings.navigation = 'none';\r\n\t\t\t\t}\r\n\t\t\t\tif (settings.indicator == 'hover') {\r\n\t\t\t\t\tsettings.indicator = 'none';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttotal = Math.ceil(total / settings.group);\r\n\r\n\r\n\t\t\t/* save settings */\r\n\t\t\tthis.data('settings', settings);\r\n\r\n\r\n\t\t\t/* GET THE START UP DATA */\r\n\t\t\t/* ------------------------------------------------------------------------------------------*/\r\n\t\t\tvar current = 0\r\n\t\t\t\t, selected = '> div.selected';\r\n\r\n\t\t\t/* hash tag is in top priority */\r\n\t\t\tif (window.location.hash != '') {\r\n\t\t\t\tselected = window.location.hash + ',' + selected\r\n\t\t\t}\r\n\r\n\t\t\t/* if found selected item, store the index & update class */\r\n\t\t\tif (this.find(selected).length != 0) {\r\n\t\t\t\tcurrent = Math.ceil(this.find(selected).index() / settings.group);\r\n\r\n\t\t\t\t/* update class */\r\n\t\t\t\tthis.find('> div.selected').removeClass('selected');\r\n\t\t\t\tthis.find('> div:eq(' + current + ')').addClass('selected');\r\n\r\n\t\t\t}\r\n\r\n\t\t\t/* SETUP ANIMATION */\r\n\t\t\tthis.find('[class*=appear-]').each(function() {\r\n\t\t\t\tvar $elem = $(this)\r\n\t\t\t\t\t, top = parseInt($elem.css('top'), 10)\r\n\t\t\t\t\t, left = parseInt($elem.css('left'), 10);\r\n\r\n\t\t\t\t$elem\r\n\t\t\t\t\t.data('top', top)\r\n\t\t\t\t\t.data('left', left);\r\n\r\n\t\t\t\tif ($elem.hasClass('appear-top')) {\r\n\t\t\t\t\t$elem.css('top', top - 15);\r\n\t\t\t\t}\r\n\t\t\t\tif ($elem.hasClass('appear-bottom')) {\r\n\t\t\t\t\t$elem.css('top', top + 15);\r\n\t\t\t\t}\r\n\t\t\t\tif ($elem.hasClass('appear-left')) {\r\n\t\t\t\t\t$elem.css('left', top - 15);\r\n\t\t\t\t}\r\n\t\t\t\tif ($elem.hasClass('appear-right')) {\r\n\t\t\t\t\t$elem.css('left', left + 15);\r\n\t\t\t\t}\r\n\t\t\t\t$elem.css('opacity', 0);\r\n\r\n\t\t\t\tif (isCSSAnimation) {\r\n\t\t\t\t\t$elem.addClass('cssAnimation');\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\r\n\t\t\t/* SETUP DATA */\r\n\t\t\t/* ------------------------------------------------------------------------------------------*/\r\n\t\t\tthis.data('total', total)\r\n\t\t\t\t.data('current', current)\r\n\t\t\t\t.data('cancel-play', false)\r\n\t\t\t\t.data('map-index', sliderMap.length)\r\n\t\t\t\t.data('initialized', true)\r\n\t\t\t\t.wrapInner('
');\r\n\t\t\tthis.find('.slider-slides').setTransition(0);\r\n\r\n\t\t\t/* SAVE TO MAP */\r\n\t\t\tsliderMap.push({\r\n\t\t\t\t'slider': this\r\n\t\t\t\t, 'sliderInterval': null\r\n\t\t\t\t, 'showInterval': null\r\n\t\t\t});\r\n\r\n\t\t\t/* calculate group */\r\n\t\t\tif (settings.group != 1) {\r\n\t\t\t\tthis.find('.slider-slides > div').css('width', 100 / settings.group + '%');\r\n\t\t\t} else {\r\n\t\t\t\tthis.find('img:eq(0)').clone().prependTo(this);\r\n\t\t\t}\r\n\r\n\t\t\t/* FIX DOM */\r\n\t\t\tif (isPointerIE10 || isPointer) {\r\n\t\t\t\tthis.css({\r\n\t\t\t\t\t'-ms-scroll-chaining': 'none'\r\n\t\t\t\t\t, '-ms-touch-action': 'pan-y pinch-zoom'\r\n\t\t\t\t\t, 'touch-action': 'pan-y pinch-zoom'\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\tif (isTouch) {\r\n\t\t\t\tthis.addClass('webkit-slider');\r\n\t\t\t}\r\n\t\t\tif (settings.transition == 'fade' && (settings.navigation != 'none' || settings.indicator != 'none')) {\r\n\t\t\t\tthis.addClass('fade-transition');\r\n\t\t\t} else if (settings.navigation == 'none' && settings.indicator == 'none') {\r\n\t\t\t\tthis.addClass('background-transition');\r\n\t\t\t}\r\n\r\n\r\n\t\t\t/* BINDING EVENTS */\r\n\t\t\t/* ------------------------------------------------------------------------------------------*/\r\n\t\t\tif (settings.navigation != 'none' || settings.indicator != 'none') {\r\n\t\t\t\tthis.find('.slider-content-wrapper').on(startEvent, function(evt) {\r\n\t\t\t\t\tvar $slider = $(this).getSlider()\r\n\t\t\t\t\t\t, $slides = $slider.find('.slider-slides');\r\n\r\n\t\t\t\t\tif (!isTouchDevice) {\r\n\t\t\t\t\t\tevt.preventDefault();\r\n\r\n\t\t\t\t\t\t/* change cursor */\r\n\t\t\t\t\t\t$slides.addClass('grabbing');\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$slides.setTransition(0);\r\n\r\n\t\t\t\t\t/* reset touch status */\r\n\t\t\t\t\tisTouching = true;\r\n\t\t\t\t\tisSwiping = false;\r\n\r\n\t\t\t\t\t/* start capture first mouse / finger point position */\r\n\t\t\t\t\tstartX = getX(evt);\r\n\t\t\t\t\tstartY = getY(evt);\r\n\r\n\t\t\t\t\t/* cancel autoplay */\r\n\t\t\t\t\t$slider.sliderStop();\r\n\t\t\t\t\tactiveSlider = $slider;\r\n\r\n\t\t\t\t}).on(moveEvent, function(evt) {\r\n\t\t\t\t\tvar $slider = $(this).getSlider()\r\n\t\t\t\t\t\t, $slides = $slider.find('.slider-slides')\r\n\t\t\t\t\t\t, settings = $slider.data('settings')\r\n\t\t\t\t\t\t, current = $slider.data('current')\r\n\t\t\t\t\t\t, w = $slider.width();\r\n\r\n\t\t\t\t\t/* on desktop, keep firing mouse move event if not drag */\r\n\t\t\t\t\tif (isTouching != true) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t/* if on desktop, cancel other events */\r\n\t\t\t\t\tif (!isTouchDevice) {\r\n\t\t\t\t\t\tevt.preventDefault();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* capture new mouse / finger point position */\r\n\t\t\t\t\tdeltaX = getX(evt) - startX;\r\n\t\t\t\t\tdeltaY = getY(evt) - startY;\r\n\r\n\t\t\t\t\t/* on mobile, the vertical swipe distance is bigger, assume this is page scroll\t*/\r\n\t\t\t\t\tif (Math.abs(deltaY) > Math.abs(deltaX)) {\r\n\t\t\t\t\t\tif (isTouchDevice) {\r\n\t\t\t\t\t\t\t$slider.sliderCancelTouch();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* if this is swipe & drag, set swipe on and recalculate the slider-slides */\r\n\t\t\t\t\tisSwiping = true;\r\n\t\t\t\t\tevt.preventDefault();\r\n\r\n\t\t\t\t\tif (settings.transition == 'slide') {\r\n\t\t\t\t\t\t$slides.translateX(- current * w + deltaX, true);\r\n\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t}).on(stopEvent + ' ' + cancelEvent, function(evt) {\r\n\t\t\t\t\tvar $slider = $(this).getSlider()\r\n\t\t\t\t\t\t, $slides = $slider.find('.slider-slides')\r\n\t\t\t\t\t\t, settings =$slider.data('settings')\r\n\t\t\t\t\t\t, current = $slider.data('current')\r\n\t\t\t\t\t\t, w = $slider.width()\r\n\t\t\t\t\t\t, dir = 1;\r\n\r\n\t\t\t\t\t/* change cursor */\r\n\t\t\t\t\t$slides.removeClass('grabbing');\r\n\r\n\t\t\t\t\t/* finish the touch swipe by moving to the next / previous slider */\r\n\t\t\t\t\tif (Math.abs(deltaX) > swipeThreshold) {\r\n\t\t\t\t\t\tif (deltaX > 0) {\r\n\t\t\t\t\t\t\tdir = -1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tdir = 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$slider.sliderGo(dir);\r\n\r\n\t\t\t\t\t} else if (settings.transition == 'slide') {\r\n\r\n\t\t\t\t\t\t/* if not wipe enough, stay at the current slider */\r\n\t\t\t\t\t\t$slider.sliderUpdate(current);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* restore default values */\r\n\t\t\t\t\t$slider.sliderCancelTouch();\r\n\t\t\t\t\tactiveSlider = null;\r\n\t\t\t\t});\r\n\r\n\t\t\t\t$(document).on({\r\n\t\t\t\t\t'mouseup': function(evt) {\r\n\t\t\t\t\t\tif (activeSlider != null) {\r\n\t\t\t\t\t\t\tactiveSlider.find('.slider-content-wrapper').trigger(stopEvent);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\t/* SHOW NAV / INDICATOR */\r\n\t\t\t\t/* ------------------------------------------------------------------------------------------*/\r\n\t\t\t\tif (enterEvent != null && leaveEvent != null) {\r\n\t\t\t\t\tthis.on(enterEvent, function() {\r\n\t\t\t\t\t\tvar $slider = $(this)\r\n\t\t\t\t\t\t\t, settings = $slider.data('settings');\r\n\t\t\t\t\t\tif (settings.navigation == 'hover') {\r\n\t\t\t\t\t\t\t$slider.find('.navigator').fadeIn();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (settings.indicator == 'hover') {\r\n\t\t\t\t\t\t\t$slider.find('.indicator').fadeIn();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}).on(leaveEvent, function() {\r\n\t\t\t\t\t\tvar $slider = $(this)\r\n\t\t\t\t\t\t\t, settings = $slider.data('settings');\r\n\t\t\t\t\t\tif (settings.navigation == 'hover') {\r\n\t\t\t\t\t\t\t$slider.find('.navigator').fadeOut();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (settings.indicator == 'hover') {\r\n\t\t\t\t\t\t\t$slider.find('.indicator').fadeOut();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t\t/* ADD CONTROLLER */\r\n\t\t\t/* ------------------------------------------------------------------------------------------*/\r\n\t\t\tvar controller = $('
', {\r\n\t\t\t\t'class': 'controller'\r\n\t\t\t\t, 'html': '
PreviousNext
'\r\n\t\t\t\t\t\t+ '
'\r\n\t\t\t}).appendTo(this);\r\n\t\t\tif (navigator.userAgent.toLowerCase().indexOf('msie 8') != -1) {\r\n\t\t\t\tcontroller.addClass('msie8');\r\n\t\t\t}\r\n\r\n\t\t\t/* navigator */\r\n\t\t\tvar nav = this.find('.navigator')\r\n\t\t\t\t, ind = this.find('.indicator');\r\n\r\n\t\t\tif (settings.navigation == 'always') {\r\n\t\t\t\tnav.show();\r\n\t\t\t}\r\n\t\t\tthis\r\n\t\t\t\t.find('.navigator span')\r\n\t\t\t\t.on('click', function(evt) {\r\n\t\t\t\t\tevt.preventDefault();\r\n\t\t\t\t\t$(this).getSlider()\r\n\t\t\t\t\t\t.sliderStop()\r\n\t\t\t\t\t\t.sliderGo($(this).data('direction'));\r\n\t\t\t\t});\r\n\r\n\r\n\t\t\t/* indicator */\r\n\t\t\tif (settings.indicator == 'always') {\r\n\t\t\t\tind.show();\r\n\t\t\t}\r\n\r\n\t\t\tfor (var i = 0; i < total; i++) {\r\n\t\t\t\t$('', {\r\n\t\t\t\t\t'class': (i == current ? 'selected' : '')\r\n\t\t\t\t\t, 'text': i\r\n\t\t\t\t\t, 'data-slide': i\r\n\t\t\t\t})\r\n\t\t\t\t.appendTo(controller.find('.indicator'))\r\n\t\t\t\t.on('click', function(evt) {\r\n\t\t\t\t\tevt.preventDefault();\r\n\t\t\t\t\tvar $this = $(this)\r\n\t\t\t\t\t\t, slider = $this.getSlider()\r\n\t\t\t\t\t\t, current = slider.data('current')\r\n\t\t\t\t\t\t, next = $this.data('slide');\r\n\r\n\t\t\t\t\tif (next < 0 || next >= slider.data('total')) {\r\n\t\t\t\t\t\tnext = current;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tslider\r\n\t\t\t\t\t\t.sliderStop()\r\n\t\t\t\t\t\t.sliderOptimize(current, next)\r\n\t\t\t\t\t\t.sliderUpdate(next);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\t/* UPDATE SIZE & SELECTED INDEX */\r\n\t\t\t/* ------------------------------------------------------------------------------------------*/\r\n\t\t\t/* fire event for addition plugins */\r\n\t\t\tthis.trigger({\r\n\t\t\t\t'type': 'slideCreated'\r\n\t\t\t});\r\n\r\n\t\t\tthis\r\n\t\t\t\t\t.sliderResized()\r\n\t\t\t\t\t.sliderUpdate(current)\r\n\t\t\t\t\t.sliderOptimize()\r\n\t\t\t\t\t.sliderPlay();\r\n\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t, 'sliderPlay': function() {\r\n\t\t\tvar current = this.data('current')\r\n\t\t\t\t, index = this.data('map-index')\r\n\t\t\t\t, settings = this.data('settings')\r\n\t\t\t\t, total = this.data('total')\r\n\t\t\t\t, stop = this.data('cancel-play')\r\n\t\t\t\t, isLoaded = this.data('imageLoaded') == this.data('totalImages');\r\n\r\n\t\t\tif (current >= total - 1) {\r\n\t\t\t\tthis.sliderStop();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (stop == true || settings.delay == 0) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tvar $slider = this;\r\n\t\t\tsliderMap[index]['sliderInterval'] = setInterval(function() {\r\n\t\t\t\tvar stop = $slider.data('cancel-play');\r\n\t\t\t\tif (stop == true) {\r\n\t\t\t\t\tclearInterval(sliderMap[index]['sliderInterval']);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (isLoaded) {\r\n\t\t\t\t\t$slider.sliderGo(1);\r\n\t\t\t\t}\r\n\t\t\t}, settings.delay);\r\n\t\t}\r\n\r\n\t\t, 'sliderStop': function() {\r\n\t\t\tvar index = this.data('map-index');\r\n\t\t\tclearInterval(sliderMap[index]['sliderInterval']);\r\n\r\n\t\t\tif (this.data('cancel-play') == true) {\r\n\t\t\t\treturn this;\r\n\t\t\t}\r\n\r\n\t\t\treturn this.data('cancel-play', true).trigger('slideCancelAutoPlay');\r\n\t\t}\r\n\r\n\t\t, 'slideComplete': function() {\r\n\r\n\t\t\t/* fire event for addition plugins */\r\n\t\t\treturn this.sliderOptimize().trigger({\r\n\t\t\t\t'type': 'slideComplete'\r\n\t\t\t\t, 'current': this.data('current')\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t, 'sliderOptimize': function(prev, next) {\r\n\t\t\tvar settings = this.data('settings')\r\n\t\t\t\t, current = this.data('current')\r\n\t\t\t\t, p1 = prev !== undefined ? prev : current\r\n\t\t\t\t, p2 = next !== undefined ? next : current\r\n\t\t\t\t, $elems = this.find('.slider-slides > div');\r\n\r\n\t\t\tif (settings.transition == 'slide') {\r\n\t\t\t\treturn this.sliderShowItems();\r\n\t\t\t}\r\n\r\n\t\t\t/* hide un-use slide */\r\n\t\t\tfor (var i = 0; i < $elems.length; i++) {\r\n\t\t\t\tif (p2 != i) {\r\n\t\t\t\t\t$elems.eq(i).css({\r\n\t\t\t\t\t\t'-webkit-transition-duration': 0\r\n\t\t\t\t\t\t, '-moz-transition-duration': 0\r\n\t\t\t\t\t\t, '-ms-transition-duration': 0\r\n\t\t\t\t\t\t, '-o-transition-duration': 0\r\n\t\t\t\t\t\t, 'transition-duration': 0\r\n\r\n\t\t\t\t\t\t, '-webkit-opacity': 0\r\n\t\t\t\t\t\t, '-moz-opacity': 0\r\n\t\t\t\t\t\t, '-ms-opacity': 0\r\n\t\t\t\t\t\t, '-o-opacity': 0\r\n\t\t\t\t\t\t, 'opacity': 0\r\n\t\t\t\t\t\t, 'z-index': 0\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn this.sliderShowItems();\r\n\t\t}\r\n\r\n\t\t, 'sliderCancelTouch': function() {\r\n\t\t\t/* restore default values */\r\n\t\t\tstartX = 0;\r\n\t\t\tstartY = 0;\r\n\t\t\tdeltaX = 0;\r\n\t\t\tdeltaY = 0;\r\n\t\t\tisTouching = false;\r\n\t\t\tisSwiping = false;\r\n\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t/* update slider dimension */\r\n\t\t, 'sliderResized': function() {\r\n\t\t\tvar i\r\n\t\t\t\t, settings = this.data('settings')\r\n\t\t\t\t, total = this.data('total')\r\n\t\t\t\t, current = this.data('current')\r\n\t\t\t\t, w = this.width()\r\n\t\t\t\t, $elems = this.find('.slider-slides > div');\r\n\r\n\t\t\t/* update elements */\r\n\t\t\tfor (i = 0; i < $elems.length; i++) {\r\n\t\t\t\tif (settings.transition == 'slide') {\r\n\t\t\t\t\t$elems.eq(i).css('left', w * i / settings.group);\r\n\t\t\t\t} else if (settings.transition == 'fade') {\r\n\t\t\t\t\t$elems.eq(i).css('z-index', total - i);\r\n\t\t\t\t\tif (i == current) {\r\n\t\t\t\t\t\t$elems.eq(i).css('z-index', total);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* update container & slider-slides */\r\n\t\t\tif (settings.transition == 'slide') {\r\n\t\t\t\tthis.find('.slider-slides')\r\n\t\t\t\t\t.translateX(- current * w, true);\r\n\t\t\t}\r\n\r\n\t\t\t/* re-chain */\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t, 'sliderGo': function(direction) {\r\n\t\t\tvar settings = this.data('settings')\r\n\t\t\t\t, current = this.data('current')\r\n\t\t\t\t, total = this.data('total');\r\n\t\t\tvar next = current + direction;\r\n\r\n\t\t\tif (next < 0 || next >= total) {\r\n\t\t\t\tif (settings.loop == false) {\r\n\t\t\t\t\tnext = current;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (next < 0) {\r\n\t\t\t\t\t\tnext = total - 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnext = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn this\r\n\t\t\t\t\t.sliderOptimize(current, next)\r\n\t\t\t\t\t.sliderUpdate(next);\r\n\t\t}\r\n\r\n\t\t, 'sliderUpdate': function(current) {\r\n\t\t\tif (this.data('current') != current) {\r\n\t\t\t\t/* fire event for addition plugins */\r\n\t\t\t\tthis.trigger({\r\n\t\t\t\t\t'type': 'slideStart'\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\tvar w = this.width()\r\n\t\t\t\t, settings = this.data('settings');\r\n\r\n\t\t\t/* move sliders */\r\n\t\t\tthis.data('current', current);\r\n\t\t\tif (settings.transition == 'slide') {\r\n\t\t\t\tthis\r\n\t\t\t\t\t.find('.slider-slides')\r\n\t\t\t\t\t.animateX(- current * w, settings.speed);\r\n\t\t\t} else if (settings.transition == 'fade') {\r\n\t\t\t\tthis\r\n\t\t\t\t\t.find('.slider-slides > div:eq(' + current + ')')\r\n\t\t\t\t\t.css('z-index', this.data('total'))\r\n\t\t\t\t\t.animateFade(settings.speed);\r\n\t\t\t}\r\n\r\n\t\t\t/* update navigator */\r\n\t\t\tthis.find('.navigator span').removeClass('disabled');\r\n\t\t\tif (settings.loop == false) {\r\n\t\t\t\tif (current == 0) {\r\n\t\t\t\t\tthis.find('.navigator .prev').addClass('disabled');\r\n\r\n\t\t\t\t} else if (current == this.data('total') - 1) {\r\n\t\t\t\t\tthis.find('.navigator .next').addClass('disabled');\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* update indicator */\r\n\t\t\tthis.find('.indicator span.selected').removeClass('selected');\r\n\t\t\tthis.find('.indicator span:eq(' + current + ')').addClass('selected');\r\n\r\n\t\t\t/* re-chain */\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t, 'sliderShowItems': function() {\r\n\t\t\tvar $slider = this\r\n\t\t\t\t, current = $slider.data('current')\r\n\t\t\t\t, index = $slider.data('map-index')\r\n\t\t\t\t, $elems = $slider.find('.slider-slides > div:eq(' + current + ') [class*=appear-]')\r\n\t\t\t\t, showIndex = 0;\r\n\r\n\t\t\t$slider.sliderHideItems();\r\n\t\t\tclearInterval(sliderMap[index]['showInterval']);\r\n\t\t\tif ($elems.length <= 0) {\r\n\t\t\t\treturn $slider;\r\n\t\t\t}\r\n\r\n\t\t\tsliderMap[index]['showInterval'] = setInterval(function() {\r\n\t\t\t\tif (showIndex >= $elems.length) {\r\n\t\t\t\t\tclearInterval(sliderMap[index]['showInterval']);\r\n\t\t\t\t\treturn $slider;\r\n\t\t\t\t}\r\n\t\t\t\tvar $item = $elems.eq(showIndex);\r\n\t\t\t\tif (isCSSAnimation) {\r\n\t\t\t\t\t$item.css({\r\n\t\t\t\t\t\t'top': $item.data('top')\r\n\t\t\t\t\t\t, 'left': $item.data('left')\r\n\t\t\t\t\t\t, 'opacity': 1\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$item.stop(true, true).animate({\r\n\t\t\t\t\t\t'top': $item.data('top')\r\n\t\t\t\t\t\t, 'left': $item.data('left')\r\n\t\t\t\t\t\t, 'opacity': 1\r\n\t\t\t\t\t}, 500);\r\n\t\t\t\t}\r\n\t\t\t\tshowIndex++;\r\n\t\t\t}, 200);\r\n\r\n\t\t\treturn $slider;\r\n\t\t}\r\n\r\n\t\t, 'sliderHideItems': function() {\r\n\t\t\tvar current = this.data('current')\r\n\t\t\t\t, index = this.data('map-index');\r\n\r\n\t\t\tclearInterval(sliderMap[index]['showInterval']);\r\n\t\t\tthis.find('.slider-slides > div:not(:eq(' + current + ')) [class*=appear-]').each(function() {\r\n\t\t\t\tvar $elem = $(this)\r\n\t\t\t\t\t, top = $elem.data('top')\r\n\t\t\t\t\t, left = $elem.data('left');\r\n\r\n\t\t\t\tif ($elem.hasClass('appear-top')) {\r\n\t\t\t\t\t$elem.css('top', top - 15);\r\n\t\t\t\t}\r\n\t\t\t\tif ($elem.hasClass('appear-bottom')) {\r\n\t\t\t\t\t$elem.css('top', top + 15);\r\n\t\t\t\t}\r\n\t\t\t\tif ($elem.hasClass('appear-left')) {\r\n\t\t\t\t\t$elem.css('left', top - 15);\r\n\t\t\t\t}\r\n\t\t\t\tif ($elem.hasClass('appear-right')) {\r\n\t\t\t\t\t$elem.css('left', left + 15);\r\n\t\t\t\t}\r\n\t\t\t\t$elem.css('opacity', 0);\r\n\t\t\t});\r\n\r\n\t\t\treturn this;\r\n\t\t}\r\n\r\n\t\t, 'getSlider': function() {\r\n\t\t\tif (this.hasClass('jSlider')) {\r\n\t\t\t\treturn this;\r\n\t\t\t}\r\n\t\t\treturn this.parents('.jSlider');\r\n\t\t}\r\n\t});\r\n\r\n\t/* startup functions */\r\n\t$(document).ready(function(evt) {\r\n\t\t$('body .jSlider').each(function() {\r\n\t\t\t$(this).sliderInit();\r\n\t\t});\r\n\t});\r\n\r\n\t$(window).resize(function(evt) {\r\n\t\t$('body .jSlider').each(function() {\r\n\t\t\t$(this).sliderResized();\r\n\t\t});\r\n\t});\r\n\r\n});\r\n"]}