vendor: 14,844 bytes, lines 1-2
1/*! WOW */(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this); 2(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a}
2,e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this); 3 4 5/*banner*/ 6( function ( $ ) { 7 "use strict"; 8 9 $.fn.bsTouchSlider = function ( options ) { 10 var carousel = $( ".carousel" ); 11 return this.each( function ( ) { 12 13 function doAnimations( elems ) { 14 //Cache the animationend event in a variable 15 var animEndEv = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; 16 elems.each( function ( ) { 17 var $this = $( this ), 18 $animationType = $this.data( 'animation' ); 19 $this.addClass( $animationType ).one( animEndEv, function ( ) { 20 $this.removeClass( $animationType ); 21 } ); 22 } ); 23 } 24 25 //Variables on page load 26 var $firstAnimatingElems = carousel.find( '.item:first' ).find( "[data-animation ^= 'animated']" ); 27 //Initialize carousel 28 carousel.carousel( ); 29 //Animate captions in first slide on page load 30 doAnimations( $firstAnimatingElems ); 31 //Other slides to be animated on carousel slide event 32 carousel.on( 'slide.bs.carousel', function ( e ) { 33 var $animatingElems = $( e.relatedTarget ).find( "[data-animation ^= 'animated']" ); 34 doAnimations( $animatingElems ); 35 } ); 36 //swipe initial 37 } ); 38 }; 39 40 41} )( jQuery ); 42 43$('#bootstrap-touch-slider2').bsTouchSlider(); 44 45 46/**!num---1 **/ 47!function(a,b){"object"==typeof exports?module.exports=b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],b):b(a.jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);
47e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(){},onStep:function(){},onStop:function(){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));e.easing="string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?jQuery.easing[e.easing]:d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}}); 48 49// Generated by CoffeeScript 1.4.0 50/* 51jQuery Waypoints - v2.0.2 52Copyright (c) 2011-2013 Caleb Troughton 53Dual licensed under the MIT license and GPL license. 54https://github.com/imakewebthings/jquery-waypoints/blob/master/licenses.txt 55*/ 56(function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++){if(e in this&&this[e]===t)return e}return-1},e=[].slice;(function(t,e){if(typeof define==="function"&&define.amd){return define("waypoints",["jquery"],function(n){return e(n,t)})}else{return e(t.jQuery,t)}})(this,function(n,r){var i,o,l,s,f,u,a,c,h,d,p,y,v,w,g,m;i=n(r);c=t.call(r,"ontouchstart")>=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||c)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHe
56ight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1){return t.push(n[e+1])}})},_traverse:function(t,e,i){var o,l;if(t==null){t="vertical"}if(e==null){e=r}l=h.aggregate(e);o=[];this.each(function(){var e;e=n.inArray(this,l[t]);return i(o,e,l[t])});return this.pushStack(o)},_invoke:function(t,e){t.each(function(){var t;t=l.getWaypointsByElement(this);return n.each(t,function(t,n){n[e]();return true})});return this}};n.fn[g]=function(){var t,r;r=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(d[r]){return d[r].apply(this,t)}else if(n.isFunction(r)){return d.init.apply(this,arguments)}else if(n.isPlainObject(r)){return d.init.apply(this,[null,r])}else if(!r){return n.error("jQuery Waypoints needs a callback function or handler option.")}else{return n.error("The "+r+" method does not exist in jQuery Waypoints.")}};n.fn[g].defaults={context:r,continuous:true,enabled:true,horizontal:false,offset:0,triggerOnce:false};h={refresh:function(){return n.each(a,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return(t=r.innerHeight)!=null?t:i.height()},aggregate:function(t){var e,r,i;e=s;if(t){e=(i=a[n(t).data(u)])!=null?i.waypoints:void 0}if(!e){return[]}r={horizontal:[],vertical:[]};n.each(r,function(t,i){n.each(e[t],function(t,e){return i.push(e)});i.sort(function(t,e){return t.offset-e.offset});r[t]=n.map(i,function(t){return t.element});return r[t]=n.unique(r[t])});return r},above:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){if(t==null){t=r}return h._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);
56return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this); 57 58 59/* HTML5 Placeholder jQuery Plugin - v2.1.1 60 * Copyright (c)2015 Mathias Bynens 61 * 2015-03-11 62 */ 63!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){function b(b){var c={},d=/^jQuery\d+$/;return a.each(b.attributes,function(a,b){b.specified&&!d.test(b.name)&&(c[b.name]=b.value)}),c}function c(b,c){var d=this,f=a(d);if(d.value==f.attr("placeholder")&&f.hasClass(m.customClass))if(f.data("placeholder-password")){if(f=f.hide().nextAll('input[type="password"]:first').show().attr("id",f.removeAttr("id").data("placeholder-id")),b===!0)return f[0].value=c;f.focus()}else d.value="",f.removeClass(m.customClass),d==e()&&d.select()}function d(){var d,e=this,f=a(e),g=this.id;if(""===e.value){if("password"===e.type){if(!f.data("placeholder-textinput")){try{d=f.clone().attr({type:"text"})}catch(h){d=a("<input>").attr(a.extend(b(this),{type:"text"}))}d.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",c),f.data({"placeholder-textinput":d,"placeholder-id":g}).before(d)}f=f.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",g).show()}f.addClass(m.customClass),f[0].value=f.attr("placeholder")}else f.removeClass(m.customClass)}function e(){try{return document.activeElement}catch(a){}}var f,g,h="[object OperaMini]"==Object.prototype.toString.call(window.operamini),i="placeholder"in document.createElement("input")&&!h,j="placeholder"in document.createElement("textarea")&&!h,k=a.valHooks,l=a.propHooks;if(i&&j)g=a.fn.placeholder=function(){return this},g.input=g.textarea=!0;else{var m={};g=a.fn.placeholder=function(b){var e={customClass:"placeholder"};m=a.extend({},e,b);var f=this;return f.filter((i?"textarea":":input")+"[placeholder]").not("."+m.customClass).bind({"focus.placeholder":c,"blur.placeholder":d}).data("placeholder-enabled",!0).trigger("blur.placeholder"),f},g.input=i,g.textarea=j,f={get:function(b){var c=a(b),d=c.data("placeholder-password");return d?d[0].value:c.data("placeholder-enabled")&&c.hasClass(m.customClass)?"":b.value},set:function(b,f){var g=a(b),h=g.data("placeholder-password");return h?h[0].value=f:g.data("placeholder-enabled")?(""===f?(b.value=f,b!=e()&&d.call(b)):g.hasClass(m.customClass)?c.call(b,!0,f)||(b.value=f):b.value=f,g):b.value=f}},i||(k.input=f,l.value=f),j||(k.textarea=f,l.value=f),a(function(){a(document).delegate("form","submit.placeholder",function(){var b=a("."+m.customClass,this).each(c);setTimeout(function(){b.each(d)},10)})}),a(window).bind("beforeunload.placeholder",function(){a("."+m.customClass).each(function(){this.value=""})})}}); 64 65 66(function() { 67 68 "use strict"; 69 70 var Core = { 71 72 initialized: false, 73 74 initialize: function() { 75 76 if (this.initialized) return; 77 this.initialized = true; 78 79 this.build(); 80 81 }, 82 83 build: function() { 84 85 //Placeholder for IE 86 $('input, textarea').placeholder(); 87 88 // Dropdown menu 89 this.dropdownhover(); 90 91 // Page preloader 92 this.initPagePreloader(); 93 94 95 //Setup WOW.js 96 // this.initScrollAnimations(); 97 98 99 100 // Tabs 101 this.initTabs(); 102 103 // Collapse Blocks 104 this.initCollapsible(); 105 106 // Counter 107 this.initNumberCounter(); 108 109 // Isotope 110 this.initIsotope(); 111 112 // Search 113 this.initSearchModal(); 114 115 }, 116 117 dropdownhover: function(options) { 118 /** Extra script for smoother navigation effect **/ 119 if ($(window).width() > 767) {
120 $('.navbar-main-slide').on('mouseenter', '.navbar-nav-menu > .dropdown', function() { 121 "use strict"; 122 $(this).addClass('open'); 123 }).on('mouseleave', '.navbar-nav-menu > .dropdown', function() { 124 "use strict"; 125 $(this).removeClass('open'); 126 }); 127 } 128 }, 129 130 initPagePreloader: function(options) { 131 var $preloader = $('#page-preloader'), 132 $spinner = $preloader.find('.spinner-loader'); 133 $( window ).on('load', function() { 134 $spinner.fadeOut(); 135 $preloader.delay(500).fadeOut('slow'); 136 }); 137 }, 138 139 140 initScrollAnimations: function(options) { 141 var scrollingAnimations = true; // Set true for turn on animation 142 if(scrollingAnimations){ 143 new WOW().init(); 144 } 145 }, 146 147 148 149 150 initTabs: function(options) { 151 $(document).on('click', '.js-tab-link', function(e){ 152 var tabId = $(this).data('for'); 153 var tabContainer = $(tabId); 154 if(tabContainer.length > 0){ 155 $('.js-tab-link').removeClass('aside-tabs__active-link'); 156 $(this).addClass('aside-tabs__active-link'); 157 $('.js-tab-block').hide(); 158 tabContainer.show(); 159 } 160 e.preventDefault(); 161 }); 162 }, 163 164 initCollapsible: function(options) { 165 var collapse = $('.js-toggle').length; 166 if(collapse){ 167 $(document).on('click', '.js-toggle', function(e){ 168 $(this).find('span').toggleClass('fa-plus fa-minus'); 169 $(this).parents('.services__info-block').toggleClass('services__info-block--active'); 170 e.preventDefault(); 171 }); 172 } 173 }, 174 175 initNumberCounter: function(options) { 176 if ($('body').length) { 177 var waypointScroll = $('.percent-blocks').data('waypoint-scroll'); 178 if(waypointScroll){ 179 $(window).on('scroll', function() { 180 var winH = $(window).scrollTop(); 181 $('.percent-blocks').waypoint(function() { 182 $('.chart').each(function() { 183 CharsStart(); 184 }); 185 }, { 186 offset: '80%' 187 }); 188 }); 189 } 190 } 191 function CharsStart() { 192 $('.chart').easyPieChart({ 193 barColor: false, 194 trackColor: false, 195 scaleColor: false, 196 scaleLength: false, 197 lineCap: false, 198 lineWidth: false, 199 size: false, 200 animate: 3000, 201 onStep: function(from, to, percent){ 202 $(this.el).find('.percent').text(Math.round(percent)); 203 } 204 }); 205 } 206 }, 207 208 initGoToTop: function(options) { 209 // Show/Hide Button on Window Scroll event. 210 $(window).on('scroll', function(){ 211 var fromTop = $(this).scrollTop(); 212 var display = 'none'; 213 if(fromTop > 650){ 214 display = 'block'; 215 } 216 $('#to-top').css({'display': display}); 217 }); 218 }, 219 220 initIsotope: function(options) { 221 var $isotopeContainer = $('.isotope'); 222 if($isotopeContainer && $isotopeContainer.length){ 223 var $container = $('.isotope'); 224 $(document).on('click', '.js-isotope-btn', function(){ 225 $('.js-isotope-btn').removeClass('button--active'); 226 $(this).addClass('button--active'); 227 228 var sortName = $(this).data('sort-by'); 229 230 $container.isotope({ 231 sortBy : sortName, 232 }); 233 return false; 234 }); 235 236 $container.isotope({ 237 itemSelector : '.isotope-item', 238 getSortData : { 239 name: '.name', 240 } 241 }); 242 } 243 }, 244 245 246 initSearchModal: function(options) { 247 $(document).on("click", ".btn_header_search", function (event) { 248 event.preventDefault(); 249 $(".search-form-modal").addClass("open"); 250 }); 251 $(document).on("click", ".search-form_close", function (event) { 252 event.preventDefault(); 253 $(".search-form-modal").removeClass("open"); 254 }); 255 }, 256 257 }; 258 259 Core.initialize(); 260 261})(); 262 263 264 265 266 267/* nav*/ 268!function(y,e){"use strict";var a,l,x=e.document,T=(/iPad|iPhone|iPod/.test(navigator.userAgent)||!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform))&&!e.MSStream,w="ontouchstart"in e||navigator.maxTouchPoints||e.DocumentTouch&&x instanceof DocumentTouch,O=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},B=function(e){return e.stopPropagation()},M=function(n,a,l){return function(e){n&&e.preventDefault(),a&&e.stopPropagation(),"function"==typeof l&&l()}},P=(a=y("head"),l="hc-mobile-nav-style",function(e){var n=a.find("style#"+l);n.length?n.html(e):y('<style id="'+l+'">'+e+"</style>").appendTo(a)}),N=function(e,n,a){var l=a.children("li"),o=l.length,i=-1<n?Math.max(0,Math.min(n-1,o)):Math.max(0,Math.min(o+n+1,o));0===i?a.prepend(e):l.eq(i-1).after(e)},S=0;y.fn.extend({hcMobileNav:function(e){if(!this.length)return this;var l,m=y.extend({},{maxWidth:1024,appendTo:"body",clone:!0,offCanvas:!0,side:"left",levelOpen:"overlap",levelSpacing:40,levelTitles:!1,navTitle:null,navClass:"",disableBody:!0,closeOnClick:!0,customToggle:null,responsive:null,insertClose:!0,insertBack:!0,labelClose:"Close",labelBack:"Back"},e),k=y(x.getElementsByTagName("html")[0]),b=(y(x),y(x.body)),C=(l=function(e){var n=["Webkit","Moz","Ms","O"],a=(x.body||x.documentElement).style,l=e.charAt(0).toUpperCase()+e.slice(1);if(void 0!==a[e])return e;for(var o=0;o<n.length;o++)if(void 0!==a[n[o]+l])return n[o]+l;return!1}("transform"),function(e,n){if(l){var a="left"===m.side?n:-n;e.css(l,"translate3d("+a+"px,0,0)")}else e.css(m.side,n)});return this.each(function(){var e=y(this),n=void 0,a=!1,l=0;if(e.is("ul"))n=e.clone().wrap("<nav>").parent();else if(e.is("nav"))n=e.clone();else if(!(n=e.find("nav, ul").first().clone()).length)return void console.log("%c! HC MobileNav:%c There is no <nav> or <ul> elements in your menu.","color: red","color: black");var o=n.find("ul");if(o.length){var p={},i=void 0,v="hc-nav-"+ ++S;e.addClass("hc-nav "+v),m.customToggle?i=y(m.customToggle).addClass(v).on("click",u):(i=y('<a class="hc-nav-trigger '+v+'"><span></span></a>').on("click",u),e.after(i));var r=n.children("ul").wrapAll('<div class="nav-wrapper nav-wrapper-1">').parent().on("click",B).wrap('<div class="nav-container">').parent();m.navTitle&&r.children().prepend("<h6>
268"+m.navTitle+"</h6>");var t="\n .hc-mobile-nav."+v+" {\n display: block;\n }\n .hc-nav-trigger."+v+",\n "+m.customToggle+"."+v+" {\n display: "+(i.css("display")||"block")+"\n }\n .hc-nav."+v+" {\n display: none;\n }";if(m.maxWidth&&(t="@media screen and (max-width: "+(m.maxWidth-1)+"px) {\n "+t+"\n }"),P(t),n.on("click",B).removeAttr("id").removeClass().addClass("\n hc-mobile-nav\n "+v+"\n "+(m.navClass||"")+"\n nav-levels-"+(m.levelOpen||"none")+"\n side-"+m.side+"\n "+(m.offCanvas?"off-canvas":"")+"\n "+(m.disableBody?"disable-body":"")+"\n "+(T?"is-ios":"")+"\n "+(w?"touch-device":"")+"\n ").find("[id]").removeAttr("id"),m.disableBody&&n.on("click",h),m.closeOnClick&&o.find("li").children("a").on("click",h),!1!==m.insertClose){var s=y('<li class="nav-close"><a href="#">'+(m.labelClose||"")+"<span></span></a></li>");s.children("a").on("click",M(!0,!0,h)),!0===m.insertClose?o.first().prepend(s):O(m.insertClose)&&N(s,m.insertClose,o.first().add(o.siblings("ul")))}o.each(function(){var e=y(this),n=e.parents("li").length;if(0!==n){var a=e.parent().addClass("nav-parent"),l=a.children("a");p[n]||(p[n]=[]),p[n].push({nav:e});var o=p[n].length-1;p[n][o].wrapper=e.closest(".nav-wrapper");var i=e.wrap('<div class="nav-wrapper nav-wrapper-'+(n+1)+'">').parent().on("click",B);if(!m.levelSpacing||"expand"!==m.levelOpen&&!1!==m.levelOpen&&"none"!==m.levelOpen||e.css("text-indent",m.levelSpacing*n+"px"),!1===m.levelOpen||"none"===m.levelOpen)return;!0===m.levelTitles&&i.prepend();var t=y('<span class="nav-next">').appendTo(l),r=y('<label for="'+v+"-"+n+"-"+o+'">').on("click",B),s=y('<input type="checkbox" id="'+v+"-"+n+"-"+o+'">').attr("data-level",n).attr("data-index",o).on("click",B).on("change",d);if(p[n][o].checkbox=s,a.prepend(s),l.attr("href")&&"#"!==l.attr("href")?t.append(r):l.on("click",M(!0,!0)).prepend(r),!1!==m.insertBack&&"overlap"===m.levelOpen){var c=y('<li class="nav-back"><a href="#">'+l.text()+"<span></span></a></li>");c.children("a").on("click",M(!0,!0,function(){return g(n,o)})),!0===m.insertBack?e.prepend(c):O(m.insertBack)&&N(c,m.insertBack,e)}}}),m.clone?y(m.appendTo).append(n):e.replaceWith(n);var c=function(e,n){if(p[e]&&p[e][n]){var a=p[e][n].checkbox,l=a.parent("li"),o=p[e][n].wrapper;a.prop("checked",!1),o.removeClass("sub-level-open"),l.removeClass("level-open")}}}else console.log("%c! HC MobileNav:%c Menu must contain <ul> element.","color: red","color: black");function d(){var e,n,a,l,o=y(this),i=Number(o.attr("data-level")),t=Number(o.attr("data-index"));o.prop("checked")?(n=t,a=p[e=i][n].checkbox.parent("li"),(l=p[e][n].wrapper).addClass("sub-level-open"),a.addClass("level-open"),"overlap"===m.levelOpen&&(l.on("click",function(){return g(e,n)}),C(r,e*m.levelSpacing))):g(i,t)}function f(){a=!0,n.addClass("nav-open"),i.addClass("toggle-open"),m.disableBody&&(l=k.scrollTop()||b.scrollTop(),b.addClass("hc-nav-open"),l&&b.css("top",-l),x.body.scrollHeight>x.body.offsetHeight&&k.addClass("hc-yscroll"))}function h(){a=!1,n.removeClass("nav-open"),r.removeAttr("style"),i.removeClass("toggle-open"),!1!==m.levelOpen&&"none"!==m.levelOpen&&g(0),m.disableBody&&(b.removeClass("hc-nav-open"),k.removeClass("hc-yscroll"),l&&(b.css("top","").scrollTop(l),k.scrollTop(l),l=0))}function u(e){e.preventDefault(),e.stopPropagation(),a?h():f()}function g(e,n){for(var a=e;a<=Object.keys(p).length;a++){if(0!==a)if(a==e&&void 0!==n){if(c(a,n),"overlap"===m.levelOpen)p[a][n].wrapper.off("click").on("click",B),C(r,(a-1)*m.levelSpacing)}else for(var l in p[a]){if(c(a,l),"overlap"===m.levelOpen)p[a][l].wrapper.off("click").on("click",B),a==e&&C(r,(a-1)*m.levelSpacing)}}}})}})}(jQuery,"undefined"!=typeof window?window:this); 269 270 271 272 273//nav_shu 274(function($) { 275 276 $.fn.menumaker = function(options) { 277 278 var cssmenu = $(this), settings = $.extend({ 279 title: "Menu", 280 format: "dropdown",
281 sticky: false 282 }, options); 283 284 return this.each(function() { 285 cssmenu.prepend('<div id="menu-button">' + settings.title + '</div>'); 286 $(this).find("#menu-button").on('click', function(){ 287 $(this).toggleClass('menu-opened'); 288 var mainmenu = $(this).next('ul'); 289 if (mainmenu.hasClass('open')) { 290 mainmenu.hide().removeClass('open'); 291 } 292 else { 293 mainmenu.show().addClass('open'); 294 if (settings.format === "dropdown") { 295 mainmenu.find('ul').show(); 296 } 297 } 298 }); 299 300 cssmenu.find('li ul').parent().addClass('has-sub'); 301 302 multiTg = function() { 303 cssmenu.find(".has-sub").prepend('<span class="submenu-button"></span>'); 304 cssmenu.find('.submenu-button').on('click', function() { 305 $(this).toggleClass('submenu-opened'); 306 if ($(this).siblings('ul').hasClass('open')) { 307 $(this).siblings('ul').removeClass('open').hide(); 308 } 309 else { 310 $(this).siblings('ul').addClass('open').show(); 311 } 312 }); 313 }; 314 315 if (settings.format === 'multitoggle') multiTg(); 316 else cssmenu.addClass('dropdown'); 317 318 if (settings.sticky === true) cssmenu.css('position', 'fixed'); 319 320 resizeFix = function() { 321 if ($( window ).width() > 768) { 322 cssmenu.find('ul').show(); 323 } 324 325 if ($(window).width() <= 768) { 326 cssmenu.find('ul').hide().removeClass('open'); 327 } 328 }; 329 resizeFix(); 330 return $(window).on('resize', resizeFix); 331 332 }); 333 }; 334})(jQuery); 335 336(function($){ 337$(document).ready(function(){ 338 339$(document).ready(function() { 340 $("#cssmenu").menumaker({ 341 title: "", 342 format: "multitoggle" 343 }); 344var foundActive = false, activeElement, linePosition = 0, menuLine = $("#cssmenu #menu-line"), lineWidth, defaultPosition, defaultWidth; 345 346$("#cssmenu > ul > li").each(function() { 347 if ($(this).hasClass('active')) { 348 activeElement = $(this); 349 foundActive = true; 350 } 351}); 352 353if (foundActive === false) { 354 activeElement = $("#cssmenu > ul > li").first(); 355} 356 357defaultWidth = lineWidth = activeElement.width(); 358 359// defaultPosition = linePosition = activeElement.position().left; 360 361menuLine.css("width", lineWidth); 362menuLine.css("left", linePosition); 363 364$("#cssmenu > ul > li").hover(function() { 365 activeElement = $(this); 366 lineWidth = activeElement.width(); 367 linePosition = activeElement.position().left; 368 menuLine.css("width", lineWidth); 369 menuLine.css("left", linePosition); 370}, 371function() { 372 menuLine.css("left", defaultPosition); 373 menuLine.css("width", defaultWidth); 374}); 375 376}); 377 378}); 379})(jQuery); 380 381 382 383 384/* slick */ 385 386(function(factory) { 387 'use strict'; 388 if (typeof define === 'function' && define.amd) { 389 define(['jquery'], factory); 390 } else { 391 factory(jQuery); 392 } 393 394}(function($) { 395 'use strict'; 396 var Slick = window.Slick || {}; 397 398 Slick = (function() { 399 400 var instanceUid = 0; 401 402 function Slick(element, settings) { 403 404 var _ = this, 405 responsiveSettings, breakpoint; 406 407 _.defaults = { 408 accessibility: true, 409 arrows: true, 410 autoplay: false, 411 autoplaySpeed: 3000, 412 centerMode: false, 413 centerPadding: '50px', 414 cssEase: 'ease', 415 customPaging: function(slider, i) { 416 return '<button type="button">' + (i + 1) + '</button>'; 417 }, 418 dots: false, 419 draggable: true, 420 easing: 'linear', 421 fade: false, 422 infinite: true, 423 lazyLoad: 'ondemand', 424 onBeforeChange: null, 425 onAfterChange: null, 426 onInit: null, 427 onReInit: null, 428 pauseOnHover: true, 429 responsive: null, 430 slide: 'div', 431 slidesToShow: 1, 432 slidesToScroll: 1, 433 speed: 300, 434 swipe: true, 435 touchMove: true, 436 touchThreshold: 5, 437 vertical: false 438 }; 439 440 _.initials = { 441 animating: false, 442 autoPlayTimer: null, 443 currentSlide: 0, 444 currentLeft: null, 445 direction: 1, 446 $dots: null, 447 listWidth: null, 448 listHeight: null, 449 loadIndex: 0, 450 $nextArrow: null, 451 $prevArrow: null, 452 slideCount: null, 453 slideWidth: null, 454 $slideTrack: null, 455 $slides: null, 456 sliding: false, 457 slideOffset: 0, 458 swipeLeft: null, 459 $list: null, 460 touchObject: {}, 461 transformsEnabled: false 462 }; 463 464 $.extend(_, _.initials); 465 466 _.activeBreakpoint = null; 467 _.animType = null; 468 _.animProp = null; 469 _.breakpoints = []; 470 _.breakpointSettings = []; 471 _.cssTransitions = false; 472 _.paused = false; 473 _.positionProp = null; 474 _.$slider = $(element); 475 _.$slidesCache = null; 476 _.transformType = null; 477 _.transitionType = null; 478 _.windowWidth = 0; 479 _.windowTimer = null; 480
481 _.options = $.extend({}, _.defaults, settings); 482 483 _.originalSettings = _.options; 484 responsiveSettings = _.options.responsive || null; 485 486 if (responsiveSettings && responsiveSettings.length > -1) { 487 for (breakpoint in responsiveSettings) { 488 if (responsiveSettings.hasOwnProperty(breakpoint)) { 489 _.breakpoints.push(responsiveSettings[ 490 breakpoint].breakpoint); 491 _.breakpointSettings[responsiveSettings[ 492 breakpoint].breakpoint] = 493 responsiveSettings[breakpoint].settings; 494 } 495 } 496 _.breakpoints.sort(function(a, b) { 497 return b - a; 498 }); 499 } 500 501 _.autoPlay = $.proxy(_.autoPlay, _); 502 _.autoPlayClear = $.proxy(_.autoPlayClear, _); 503 _.changeSlide = $.proxy(_.changeSlide, _); 504 _.setPosition = $.proxy(_.setPosition, _); 505 _.swipeHandler = $.proxy(_.swipeHandler, _); 506 _.dragHandler = $.proxy(_.dragHandler, _); 507 _.keyHandler = $.proxy(_.keyHandler, _); 508 _.autoPlayIterator = $.proxy(_.autoPlayIterator, _); 509 510 _.instanceUid = instanceUid++; 511 512 _.init(); 513 514 } 515 516 return Slick; 517 518 }()); 519 520 Slick.prototype.addSlide = function(markup, index, addBefore) { 521 522 var _ = this; 523 524 if (typeof(index) === 'boolean') { 525 addBefore = index; 526 index = null; 527 } else if (index < 0 || (index >= _.slideCount)) { 528 return false; 529 } 530 531 _.unload(); 532 533 if (typeof(index) === 'number') { 534 if (index === 0 && _.$slides.length === 0) { 535 $(markup).appendTo(_.$slideTrack); 536 } else if (addBefore) { 537 $(markup).insertBefore(_.$slides.eq(index)); 538 } else { 539 $(markup).insertAfter(_.$slides.eq(index)); 540 } 541 } else { 542 if (addBefore === true) { 543 $(markup).prependTo(_.$slideTrack); 544 } else { 545 $(markup).appendTo(_.$slideTrack); 546 } 547 } 548 549 _.$slides = _.$slideTrack.children(this.options.slide); 550 551 _.$slideTrack.children(this.options.slide).remove(); 552 553 _.$slideTrack.append(_.$slides); 554 555 _.$slidesCache = _.$slides; 556 557 _.reinit(); 558 559 }; 560 561 Slick.prototype.animateSlide = function(targetLeft, 562 callback) { 563 564 var animProps = {}, _ = this; 565 566 if (_.transformsEnabled === false) { 567 if (_.options.vertical === false) { 568 _.$slideTrack.animate({ 569 left: targetLeft 570 }, _.options.speed, _.options.easing, callback); 571 } else { 572 _.$slideTrack.animate({ 573 top: targetLeft 574 }, _.options.speed, _.options.easing, callback); 575 } 576 577 } else { 578 579 if (_.cssTransitions === false) { 580 581 $({ 582 animStart: _.currentLeft 583 }).animate({ 584 animStart: targetLeft 585 }, { 586 duration: _.options.speed, 587 easing: _.options.easing, 588 step: function(now) { 589 if (_.options.vertical === false) { 590 animProps[_.animType] = 'translate(' + 591 now + 'px, 0px)'; 592 _.$slideTrack.css(animProps); 593 } else { 594 animProps[_.animType] = 'translate(0px,' + 595 now + 'px)'; 596 _.$slideTrack.css(animProps); 597 } 598 }, 599 complete: function() { 600 if (callback) { 601 callback.call(); 602 } 603 } 604 }); 605 606 } else { 607 608 _.applyTransition(); 609 610 if (_.options.vertical === false) { 611 animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)'; 612 } else { 613 animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)'; 614 } 615 _.$slideTrack.css(animProps); 616 617 if (callback) { 618 setTimeout(function() { 619 620 _.disableTransition(); 621 622 callback.call(); 623 }, _.options.speed); 624 } 625 626 } 627 628 } 629 630 }; 631 632 Slick.prototype.applyTransition = function(slide) { 633 634 var _ = this, 635 transition = {}; 636 637 if (_.options.fade === false) { 638 transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase; 639 } else { 640 transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase; 641 } 642 643 if (_.options.fade === false) { 644 _.$slideTrack.css(transition); 645 } else { 646 _.$slides.eq(slide).css(transition); 647 } 648 649 }; 650 651 Slick.prototype.autoPlay = function() { 652 653 var _ = this; 654 655 if (_.autoPlayTimer) { 656 clearInterval(_.autoPlayTimer); 657 } 658 659 if (_.slideCount > _.options.slidesToShow && _.paused !== true) { 660 _.autoPlayTimer = setInterval(_.autoPlayIterator,
661 _.options.autoplaySpeed); 662 } 663 664 }; 665 666 Slick.prototype.autoPlayClear = function() { 667 668 var _ = this; 669 670 if (_.autoPlayTimer) { 671 clearInterval(_.autoPlayTimer); 672 } 673 674 }; 675 676 Slick.prototype.autoPlayIterator = function() { 677 678 var _ = this; 679 680 if (_.options.infinite === false) { 681 682 if (_.direction === 1) { 683 684 if ((_.currentSlide + 1) === _.slideCount - 685 1) { 686 _.direction = 0; 687 } 688 689 _.slideHandler(_.currentSlide + _.options 690 .slidesToScroll); 691 692 } else { 693 694 if ((_.currentSlide - 1 === 0)) { 695 696 _.direction = 1; 697 698 } 699 700 _.slideHandler(_.currentSlide - _.options 701 .slidesToScroll); 702 703 } 704 705 } else { 706 707 _.slideHandler(_.currentSlide + _.options.slidesToScroll); 708 709 } 710 711 }; 712 713 Slick.prototype.buildArrows = function() { 714 715 var _ = this; 716 717 if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { 718 719 _.$prevArrow = $( 720 '<button type="button" class="slick-prev">Previous</button>').appendTo( 721 _.$slider); 722 _.$nextArrow = $( 723 '<button type="button" class="slick-next">Next</button>').appendTo( 724 _.$slider); 725 726 if (_.options.infinite !== true) { 727 _.$prevArrow.addClass('slick-disabled'); 728 } 729 730 } 731 732 }; 733 734 Slick.prototype.buildDots = function() { 735 736 var _ = this, 737 i, dotString; 738 739 if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { 740 741 dotString = '<ul class="slick-dots">'; 742 743 for (i = 0; i <= _.getDotCount(); i += 1) { 744 dotString += '<li>' + _.options.customPaging.call(this, _, i) + '</li>'; 745 } 746 747 dotString += '</ul>'; 748 749 _.$dots = $(dotString).appendTo( 750 _.$slider); 751 752 _.$dots.find('li').first().addClass( 753 'slick-active'); 754 755 } 756 757 }; 758 759 Slick.prototype.buildOut = function() { 760 761 var _ = this; 762 763 _.$slides = _.$slider.children(_.options.slide + 764 ':not(.slick-cloned)').addClass( 765 'slick-slide'); 766 _.slideCount = _.$slides.length; 767 _.$slidesCache = _.$slides; 768 769 _.$slider.addClass('slick-slider'); 770 771 _.$slideTrack = (_.slideCount === 0) ? 772 $('<div class="slick-track"/>').appendTo(_.$slider) : 773 _.$slides.wrapAll('<div class="slick-track"/>').parent(); 774 775 _.$list = _.$slideTrack.wrap( 776 '<div class="slick-list"/>').parent(); 777 _.$slideTrack.css('opacity', 0); 778 779 if (_.options.centerMode === true) { 780 _.options.infinite = true; 781 _.options.slidesToScroll = 1; 782 if (_.options.slidesToShow % 2 === 0) { 783 _.options.slidesToShow = 3; 784 } 785 } 786 787 $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading'); 788 789 _.setupInfinite(); 790 791 _.buildArrows(); 792 793 _.buildDots(); 794 795 if (_.options.accessibility === true) { 796 _.$list.prop('tabIndex', 0); 797 } 798 799 _.setSlideClasses(0); 800 801 if (_.options.draggable === true) { 802 _.$list.addClass('draggable'); 803 } 804 805 }; 806 807 Slick.prototype.checkResponsive = function() { 808 809 var _ = this, 810 breakpoint, targetBreakpoint; 811 812 if (_.originalSettings.responsive && _.originalSettings 813 .responsive.length > -1 && _.originalSettings.responsive !== null) { 814 815 targetBreakpoint = null; 816 817 for (breakpoint in _.breakpoints) { 818 if (_.breakpoints.hasOwnProperty(breakpoint)) { 819 if ($(window).width() < _.breakpoints[ 820 breakpoint]) {
821 targetBreakpoint = _.breakpoints[ 822 breakpoint]; 823 } 824 } 825 } 826 827 if (targetBreakpoint !== null) { 828 if (_.activeBreakpoint !== null) { 829 if (targetBreakpoint !== _.activeBreakpoint) { 830 _.activeBreakpoint = 831 targetBreakpoint; 832 _.options = $.extend({}, _.defaults, 833 _.breakpointSettings[ 834 targetBreakpoint]); 835 _.refresh(); 836 } 837 } else { 838 _.activeBreakpoint = targetBreakpoint; 839 _.options = $.extend({}, _.defaults, 840 _.breakpointSettings[ 841 targetBreakpoint]); 842 _.refresh(); 843 } 844 } else { 845 if (_.activeBreakpoint !== null) { 846 _.activeBreakpoint = null; 847 _.options = $.extend({}, _.defaults, 848 _.originalSettings); 849 _.refresh(); 850 } 851 } 852 853 } 854 855 }; 856 857 Slick.prototype.changeSlide = function(event) { 858 859 var _ = this; 860 861 switch (event.data.message) { 862 863 case 'previous': 864 _.slideHandler(_.currentSlide - _.options 865 .slidesToScroll); 866 break; 867 868 case 'next': 869 _.slideHandler(_.currentSlide + _.options 870 .slidesToScroll); 871 break; 872 873 case 'index': 874 _.slideHandler($(event.target).parent().index() * _.options.slidesToScroll); 875 break; 876 877 default: 878 return false; 879 } 880 881 }; 882 883 Slick.prototype.destroy = function() { 884 885 var _ = this; 886 887 _.autoPlayClear(); 888 889 _.touchObject = {}; 890 891 $('.slick-cloned', _.$slider).remove(); 892 if (_.$dots) { 893 _.$dots.remove(); 894 } 895 if (_.$prevArrow) { 896 _.$prevArrow.remove(); 897 _.$nextArrow.remove(); 898 } 899 _.$slides.unwrap().unwrap(); 900 _.$slides.removeClass( 901 'slick-slide slick-active slick-visible').removeAttr('style'); 902 _.$slider.removeClass('slick-slider'); 903 _.$slider.removeClass('slick-initialized'); 904 905 _.$list.off('.slick'); 906 $(window).off('.slick-' + _.instanceUid); 907 }; 908 909 Slick.prototype.disableTransition = function(slide) { 910 911 var _ = this, 912 transition = {}; 913 914 transition[_.transitionType] = ""; 915 916 if (_.options.fade === false) { 917 _.$slideTrack.css(transition); 918 } else { 919 _.$slides.eq(slide).css(transition); 920 } 921 922 }; 923 924 Slick.prototype.fadeSlide = function(slideIndex, callback) { 925 926 var _ = this; 927 928 if (_.cssTransitions === false) { 929 930 _.$slides.eq(slideIndex).css({ 931 zIndex: 1000 932 }); 933 934 _.$slides.eq(slideIndex).animate({ 935 opacity: 1 936 }, _.options.speed, _.options.easing, callback); 937 938 } else { 939 940 _.applyTransition(slideIndex); 941 942 _.$slides.eq(slideIndex).css({ 943 opacity: 1, 944 zIndex: 1000 945 }); 946 947 if (callback) { 948 setTimeout(function() { 949 950 _.disableTransition(slideIndex); 951 952 callback.call(); 953 }, _.options.speed); 954 } 955 956 } 957 958 }; 959 960 Slick.prototype.filterSlides = function(filter) { 961 962 var _ = this; 963 964 if (filter !== null) { 965 966 _.unload(); 967 968 _.$slideTrack.children(this.options.slide).remove(); 969 970 _.$slidesCache.filter(filter).appendTo(_.$slideTrack); 971 972 _.reinit(); 973 974 } 975 976 }; 977 978 Slick.prototype.getCurrent = function() { 979 980 var _ = this; 981 982 return _.currentSlide; 983 984 }; 985 986 Slick.prototype.getDotCount = function() { 987 988 var _ = this, 989 breaker = 0, 990 dotCounter = 0, 991 dotCount = 0, 992 dotLimit; 993 994 dotLimit = _.options.infinite === true ? _.slideCount + _.options.slidesToShow - _.options.slidesToScroll : _.slideCount; 995
996 while (breaker < dotLimit) { 997 dotCount++; 998 dotCounter += _.options.slidesToScroll; 999 breaker = dotCounter + _.options.slidesToShow; 1000 } 1001 1002 return dotCount; 1003 1004 }; 1005 1006 Slick.prototype.getLeft = function(slideIndex) { 1007 1008 var _ = this, 1009 targetLeft; 1010 1011 _.slideOffset = 0; 1012 1013 if (_.options.infinite === true) { 1014 if (_.slideCount > _.options.slidesToShow) { 1015 _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1; 1016 } 1017 if (_.slideCount % _.options.slidesToScroll !== 0) { 1018 if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) { 1019 _.slideOffset = ((_.slideCount % _.options.slidesToShow) * _.slideWidth) * -1; 1020 } 1021 } 1022 } else { 1023 if (_.slideCount % _.options.slidesToShow !== 0) { 1024 if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) { 1025 _.slideOffset = ((_.slideCount % _.options.slidesToShow) * _.slideWidth); 1026 } 1027 } 1028 } 1029 1030 if (_.options.centerMode === true) { 1031 _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth; 1032 } 1033 1034 if (_.options.vertical === false) { 1035 targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset; 1036 } else { 1037 _.listHeight = _.$list.height(); 1038 if (_.options.infinite === true) { 1039 targetLeft = ((slideIndex * _.listHeight) * -1) - _.listHeight; 1040 } else { 1041 targetLeft = ((slideIndex * _.listHeight) * -1); 1042 } 1043 } 1044 1045 return targetLeft; 1046 1047 }; 1048 1049 Slick.prototype.init = function() { 1050 1051 var _ = this; 1052 1053 if (!$(_.$slider).hasClass('slick-initialized')) { 1054 1055 $(_.$slider).addClass('slick-initialized'); 1056 _.buildOut(); 1057 _.setProps(); 1058 _.startLoad(); 1059 _.loadSlider(); 1060 _.initializeEvents(); 1061 _.checkResponsive(); 1062 } 1063 1064 if (_.options.onInit !== null) { 1065 _.options.onInit.call(this, _); 1066 } 1067 1068 }; 1069 1070 Slick.prototype.initArrowEvents = function() { 1071 1072 var _ = this; 1073 1074 if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { 1075 _.$prevArrow.on('click.slick', { 1076 message: 'previous' 1077 }, _.changeSlide); 1078 _.$nextArrow.on('click.slick', { 1079 message: 'next' 1080 }, _.changeSlide); 1081 } 1082 1083 }; 1084 1085 Slick.prototype.initDotEvents = function() { 1086 1087 var _ = this; 1088 1089 if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { 1090 $('li', _.$dots).on('click.slick', { 1091 message: 'index' 1092 }, _.changeSlide); 1093 } 1094 1095 }; 1096 1097 Slick.prototype.initializeEvents = function() { 1098 1099 var _ = this; 1100 1101 _.initArrowEvents(); 1102 1103 _.initDotEvents(); 1104 1105 _.$list.on('touchstart.slick mousedown.slick', { 1106 action: 'start' 1107 }, _.swipeHandler); 1108 _.$list.on('touchmove.slick mousemove.slick', { 1109 action: 'move' 1110 }, _.swipeHandler); 1111 _.$list.on('touchend.slick mouseup.slick', { 1112 action: 'end' 1113 }, _.swipeHandler);
1114 _.$list.on('touchcancel.slick mouseleave.slick', { 1115 action: 'end' 1116 }, _.swipeHandler); 1117 1118 if (_.options.pauseOnHover === true && _.options.autoplay === true) { 1119 _.$list.on('mouseenter.slick', _.autoPlayClear); 1120 _.$list.on('mouseleave.slick', _.autoPlay); 1121 } 1122 1123 if(_.options.accessibility === true) { 1124 _.$list.on('keydown.slick', _.keyHandler); 1125 } 1126 1127 $(window).on('orientationchange.slick.slick-' + _.instanceUid, function() { 1128 _.checkResponsive(); 1129 _.setPosition(); 1130 }); 1131 1132 $(window).on('resize.slick.slick-' + _.instanceUid, function() { 1133 if ($(window).width !== _.windowWidth) { 1134 clearTimeout(_.windowDelay); 1135 _.windowDelay = window.setTimeout(function() { 1136 _.windowWidth = $(window).width(); 1137 _.checkResponsive(); 1138 _.setPosition(); 1139 }, 50); 1140 } 1141 }); 1142 1143 $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition); 1144 1145 }; 1146 1147 Slick.prototype.initUI = function() { 1148 1149 var _ = this; 1150 1151 if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { 1152 1153 _.$prevArrow.show(); 1154 _.$nextArrow.show(); 1155 1156 } 1157 1158 if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { 1159 1160 _.$dots.show(); 1161 1162 } 1163 1164 if (_.options.autoplay === true) { 1165 1166 _.autoPlay(); 1167 1168 } 1169 1170 }; 1171 1172 Slick.prototype.keyHandler = function(event) { 1173 1174 var _ = this; 1175 1176 if (event.keyCode === 37) { 1177 _.changeSlide({ 1178 data: { 1179 message: 'previous' 1180 } 1181 }); 1182 } else if (event.keyCode === 39) { 1183 _.changeSlide({ 1184 data: { 1185 message: 'next' 1186 } 1187 }); 1188 } 1189 1190 }; 1191 1192 Slick.prototype.lazyLoad = function() { 1193 1194 var _ = this, 1195 loadRange, cloneRange, rangeStart, rangeEnd; 1196 1197 if (_.options.centerMode === true) { 1198 rangeStart = _.options.slidesToShow + _.currentSlide - 1; 1199 rangeEnd = rangeStart + _.options.slidesToShow + 2; 1200 } else { 1201 rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide; 1202 rangeEnd = rangeStart + _.options.slidesToShow; 1203 } 1204 1205 loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd); 1206 1207 $('img[data-lazy]', loadRange).not('[src]').each(function() { 1208 $(this).css({opacity: 0}).attr('src', $(this).attr('data-lazy')).removeClass('slick-loading').load(function(){ 1209 $(this).animate({ opacity: 1 }, 200); 1210 }); 1211 }); 1212 1213 if (_.currentSlide >= _.slideCount - _.options.slidesToShow) { 1214 cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow); 1215 $('img[data-lazy]', cloneRange).not('[src]').each(function() { 1216 $(this).css({opacity: 0}).attr('src', $(this).attr('data-lazy')).removeClass('slick-loading').load(function(){ 1217 $(this).animate({ opacity: 1 }, 200); 1218 }); 1219 }); 1220 } else if (_.currentSlide === 0) { 1221 cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1); 1222 $('img[data-lazy]', cloneRange).not('[src]').each(function() { 1223 $(this).css({opacity: 0}).attr('src', $(this).attr('data-lazy')).removeClass('slick-loading').load(function(){ 1224 $(this).animate({ opacity: 1 }, 200); 1225 }); 1226 }); 1227 } 1228 1229 }; 1230 1231 Slick.prototype.loadSlider = function() { 1232 1233 var _ = this; 1234 1235 _.setPosition(); 1236 1237 _.$slideTrack.css({ 1238 opacity: 1 1239 }); 1240 1241 _.$slider.removeClass('slick-loading'); 1242 1243 _.initUI(); 1244 1245 if (_.options.lazyLoad === 'progressive') { 1246 _.progressiveLazyLoad(); 1247 } 1248 1249 }; 1250 1251 Slick.prototype.postSlide = function(index) { 1252 1253 var _ = this; 1254 1255 if (_.options.onAfterChange !== null) {
1256 _.options.onAfterChange.call(this, _, index); 1257 } 1258 1259 _.animating = false; 1260 1261 _.setPosition(); 1262 1263 _.swipeLeft = null; 1264 1265 if (_.options.autoplay === true && _.paused === false) { 1266 _.autoPlay(); 1267 } 1268 1269 _.setSlideClasses(_.currentSlide); 1270 1271 }; 1272 1273 Slick.prototype.progressiveLazyLoad = function() { 1274 1275 var _ = this, 1276 imgCount, targetImage; 1277 1278 imgCount = $('img[data-lazy]').not('[src]').length; 1279 1280 if (imgCount > 0) { 1281 targetImage = $($('img[data-lazy]', _.$slider).not('[src]').get(0)); 1282 targetImage.attr('src', targetImage.attr('data-lazy')).removeClass('slick-loading').load(function() { 1283 _.progressiveLazyLoad(); 1284 }); 1285 } 1286 1287 }; 1288 1289 Slick.prototype.refresh = function() { 1290 1291 var _ = this; 1292 1293 _.destroy(); 1294 1295 $.extend(_, _.initials); 1296 1297 _.init(); 1298 1299 }; 1300 1301 Slick.prototype.reinit = function() { 1302 1303 var _ = this; 1304 1305 _.$slides = $(_.options.slide + 1306 ':not(.slick-cloned)', _.$slideTrack).addClass( 1307 'slick-slide'); 1308 1309 _.slideCount = _.$slides.length; 1310 1311 if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) { 1312 _.currentSlide = _.currentSlide - _.options.slidesToScroll; 1313 } 1314 1315 _.setProps(); 1316 1317 _.setupInfinite(); 1318 1319 _.buildArrows(); 1320 1321 _.updateArrows(); 1322 1323 _.initArrowEvents(); 1324 1325 _.buildDots(); 1326 1327 _.updateDots(); 1328 1329 _.initDotEvents(); 1330 1331 _.setSlideClasses(0); 1332 1333 _.setPosition(); 1334 1335 if (_.options.onReInit !== null) { 1336 _.options.onReInit.call(this, _); 1337 } 1338 1339 }; 1340 1341 Slick.prototype.removeSlide = function(index, removeBefore) { 1342 1343 var _ = this; 1344 1345 if (typeof(index) === 'boolean') { 1346 removeBefore = index; 1347 index = removeBefore === true ? 0 : _.slideCount - 1; 1348 } else { 1349 index = removeBefore === true ? --index : index; 1350 } 1351 1352 if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) { 1353 return false; 1354 } 1355 1356 _.unload(); 1357 1358 _.$slideTrack.children(this.options.slide).eq(index).remove(); 1359 1360 _.$slides = _.$slideTrack.children(this.options.slide); 1361 1362 _.$slideTrack.children(this.options.slide).remove(); 1363 1364 _.$slideTrack.append(_.$slides); 1365 1366 _.$slidesCache = _.$slides; 1367 1368 _.reinit(); 1369 1370 }; 1371 1372 Slick.prototype.setCSS = function(position) { 1373 1374 var _ = this, 1375 positionProps = {}, x, y; 1376 1377 x = _.positionProp == 'left' ? position + 'px' : '0px'; 1378 y = _.positionProp == 'top' ? position + 'px' : '0px'; 1379 1380 positionProps[_.positionProp] = position; 1381 1382 if (_.transformsEnabled === false) { 1383 _.$slideTrack.css(positionProps); 1384 } else { 1385 positionProps = {}; 1386 if (_.cssTransitions === false) { 1387 positionProps[_.animType] = 'translate(' + x + ', ' + y + ')'; 1388 _.$slideTrack.css(positionProps); 1389 } else { 1390 positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)'; 1391 _.$slideTrack.css(positionProps); 1392 } 1393 } 1394 1395 }; 1396 1397 Slick.prototype.setDimensions = function() { 1398 1399 var _ = this; 1400 1401 if (_.options.centerMode === true) { 1402 _.$slideTrack.children('.slick-slide').width(_.slideWidth); 1403 } else { 1404 _.$slideTrack.children('.slick-slide').width(_.slideWidth); 1405 } 1406 1407 1408 if (_.options.vertical === false) { 1409 _.$slideTrack.width(Math.ceil((_.slideWidth * _ 1410 .$slideTrack.children('.slick-slide').length))); 1411 if (_.options.centerMode === true) { 1412 _.$list.css({ 1413 padding: ('0px ' + _.options.centerPadding) 1414 }); 1415 } 1416 } else { 1417 _.$list.height(_.$slides.first().outerHeight()); 1418 _.$slideTrack.height(Math.ceil((_.listHeight * _ 1419 .$slideTrack.children('.slick-slide').length))); 1420 if (_.options.centerMode === true) { 1421 _.$list.css({ 1422 padding: (_.options.centerPadding + ' 0px') 1423 }); 1424 } 1425 } 1426 1427 }; 1428 1429 Slick.prototype.setFade = function() { 1430 1431 var _ = this, 1432 targetLeft; 1433 1434 _.$slides.each(function(index, element) { 1435 targetLeft = (_.slideWidth * index) * -1; 1436 $(element).css({ 1437 position: 'relative', 1438 left: targetLeft, 1439 top: 0, 1440 zIndex: 800, 1441 opacity: 0 1442 }); 1443 }); 1444 1445 _.$slides.eq(_.currentSlide).css({ 1446 zIndex: 900, 1447 opacity: 1 1448 }); 1449 1450 }; 1451 1452 Slick.prototype.setPosition = function() { 1453 1454 var _ = this; 1455 1456 _.setValues();
1457 _.setDimensions(); 1458 1459 if (_.options.fade === false) { 1460 _.setCSS(_.getLeft(_.currentSlide)); 1461 } else { 1462 _.setFade(); 1463 } 1464 1465 }; 1466 1467 Slick.prototype.setProps = function() { 1468 1469 var _ = this; 1470 1471 _.positionProp = _.options.vertical === true ? 'top' : 'left'; 1472 1473 if (_.positionProp === 'top') { 1474 _.$slider.addClass('slick-vertical'); 1475 } else { 1476 _.$slider.removeClass('slick-vertical'); 1477 } 1478 1479 if (document.body.style.WebkitTransition !== undefined || 1480 document.body.style.MozTransition !== undefined || 1481 document.body.style.msTransition !== undefined) { 1482 _.cssTransitions = true; 1483 } 1484 1485 if (document.body.style.MozTransform !== undefined) { 1486 _.animType = 'MozTransform'; 1487 _.transformType = "-moz-transform"; 1488 _.transitionType = 'MozTransition'; 1489 } 1490 if (document.body.style.webkitTransform !== undefined) { 1491 _.animType = 'webkitTransform'; 1492 _.transformType = "-webkit-transform"; 1493 _.transitionType = 'webkitTransition'; 1494 } 1495 if (document.body.style.msTransform !== undefined) { 1496 _.animType = 'transform'; 1497 _.transformType = "transform"; 1498 _.transitionType = 'transition'; 1499 } 1500 1501 _.transformsEnabled = (_.animType !== null); 1502 1503 }; 1504 1505 Slick.prototype.setValues = function() { 1506 1507 var _ = this; 1508 1509 _.listWidth = _.$list.width(); 1510 _.listHeight = _.$list.height(); 1511 _.slideWidth = Math.ceil(_.listWidth / _.options 1512 .slidesToShow); 1513 1514 }; 1515 1516 Slick.prototype.setSlideClasses = function(index) { 1517 1518 var _ = this, 1519 centerOffset, allSlides, indexOffset; 1520 1521 _.$slider.find('.slick-slide').removeClass('slick-active').removeClass('slick-center'); 1522 allSlides = _.$slider.find('.slick-slide'); 1523 1524 if (_.options.centerMode === true) { 1525 1526 centerOffset = Math.floor(_.options.slidesToShow / 2); 1527 1528 if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) { 1529 _.$slides.slice(index - centerOffset, index + centerOffset + 1).addClass('slick-active'); 1530 } else { 1531 indexOffset = _.options.slidesToShow + index; 1532 allSlides.slice(indexOffset - centerOffset + 1, indexOffset + centerOffset + 2).addClass('slick-active'); 1533 } 1534 1535 if (index === 0) { 1536 allSlides.eq(allSlides.length - 1 - _.options.slidesToShow).addClass('slick-center'); 1537 } else if (index === _.slideCount - 1) { 1538 allSlides.eq(_.options.slidesToShow).addClass('slick-center'); 1539 } 1540 1541 _.$slides.eq(index).addClass('slick-center'); 1542 1543 } else { 1544 1545 if (index > 0 && index < (_.slideCount - _.options.slidesToShow)) { 1546 _.$slides.slice(index, index + _.options.slidesToShow).addClass('slick-active'); 1547 } else { 1548 indexOffset = _.options.slidesToShow + index; 1549 allSlides.slice(indexOffset, indexOffset + _.options.slidesToShow).addClass('slick-active'); 1550 } 1551 1552 } 1553 1554 if (_.options.lazyLoad === 'ondemand') { 1555 _.lazyLoad(); 1556 } 1557 1558 }; 1559 1560 Slick.prototype.setupInfinite = function() { 1561 1562 var _ = this, 1563 i, slideIndex, infiniteCount; 1564 1565 if (_.options.fade === true || _.options.vertical === true) { 1566 _.options.slidesToShow = 1; 1567 _.options.slidesToScroll = 1; 1568 _.options.centerMode = false; 1569 } 1570 1571 if (_.options.infinite === true && _.options.fade === false) { 1572 1573 slideIndex = null; 1574 1575 if (_.slideCount > _.options.slidesToShow) { 1576 1577 if (_.options.centerMode === true) { 1578 infiniteCount = _.options.slidesToShow + 1; 1579 } else { 1580 infiniteCount = _.options.slidesToShow; 1581 } 1582 1583 for (i = _.slideCount; i > (_.slideCount - 1584 infiniteCount); i -= 1) { 1585 slideIndex = i - 1; 1586 $(_.$slides[slideIndex]).clone().attr('id', '').prependTo( 1587 _.$slideTrack).addClass('slick-cloned'); 1588 } 1589 for (i = 0; i < infiniteCount; i += 1) { 1590 slideIndex = i; 1591 $(_.$slides[slideIndex]).clone().attr('id', '').appendTo( 1592 _.$slideTrack).addClass('slick-cloned'); 1593 } 1594 _.$slideTrack.find('.slick-cloned').find('[id]').each(function() { 1595 $(this).attr('id', ''); 1596 }); 1597 1598 } 1599 1600 } 1601 1602 }; 1603 1604 Slick.prototype.slideHandler = function(index) { 1605 1606 var targetSlide, animSlide, slideLeft, unevenOffset, targetLeft = null, 1607 _ = this; 1608 1609 if (_.animating === true) { 1610 return false; 1611 } 1612 1613 targetSlide = index; 1614 targetLeft = _.getLeft(targetSlide); 1615 slideLeft = _.getLeft(_.currentSlide); 1616 1617 unevenOffset = _.slideCount % _.options.slidesToScroll !== 0 ? _.options.slidesToScroll : 0; 1618 1619 _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft; 1620 1621 if (_.options.infinite === false && (index < 0 || index > (_.slideCount - _.options.slidesToShow + unevenOffset))) { 1622 targetSlide = _.currentSlide; 1623 _.animateSlide(slideLeft, function() { 1624 _.postSlide(targetSlide); 1625 }); 1626 return false; 1627 } 1628 1629 if (_.options.autoplay === true) { 1630 clearInterval(_.autoPlayTimer); 1631 } 1632
1633 if (targetSlide < 0) { 1634 if (_.slideCount % _.options.slidesToScroll !== 0) { 1635 animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll); 1636 } else { 1637 animSlide = _.slideCount - _.options.slidesToScroll; 1638 } 1639 } else if (targetSlide > (_.slideCount - 1)) { 1640 animSlide = 0; 1641 } else { 1642 animSlide = targetSlide; 1643 } 1644 1645 _.animating = true; 1646 1647 if (_.options.onBeforeChange !== null && index !== _.currentSlide) { 1648 _.options.onBeforeChange.call(this, _, _.currentSlide, animSlide); 1649 } 1650 1651 _.currentSlide = animSlide; 1652 _.updateDots(); 1653 _.updateArrows(); 1654 1655 if (_.options.fade === true) { 1656 _.fadeSlide(animSlide, function() { 1657 _.postSlide(animSlide); 1658 }); 1659 return false; 1660 } 1661 1662 _.animateSlide(targetLeft, function() { 1663 _.postSlide(animSlide); 1664 }); 1665 1666 }; 1667 1668 Slick.prototype.startLoad = function() { 1669 1670 var _ = this; 1671 1672 if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) { 1673 1674 _.$prevArrow.hide(); 1675 _.$nextArrow.hide(); 1676 1677 } 1678 1679 if (_.options.dots === true && _.slideCount > _.options.slidesToShow) { 1680 1681 _.$dots.hide(); 1682 1683 } 1684 1685 _.$slider.addClass('slick-loading'); 1686 1687 }; 1688 1689 Slick.prototype.swipeDirection = function() { 1690 1691 var xDist, yDist, r, swipeAngle, _ = this; 1692 1693 xDist = _.touchObject.startX - _.touchObject.curX; 1694 yDist = _.touchObject.startY - _.touchObject.curY; 1695 r = Math.atan2(yDist, xDist); 1696 1697 swipeAngle = Math.round(r * 180 / Math.PI); 1698 if (swipeAngle < 0) { 1699 swipeAngle = 360 - Math.abs(swipeAngle); 1700 } 1701 1702 if ((swipeAngle <= 45) && (swipeAngle >= 0)) { 1703 return 'left'; 1704 } 1705 if ((swipeAngle <= 360) && (swipeAngle >= 315)) { 1706 return 'left'; 1707 } 1708 if ((swipeAngle >= 135) && (swipeAngle <= 225)) { 1709 return 'right'; 1710 } 1711 1712 return 'vertical'; 1713 1714 }; 1715 1716 Slick.prototype.swipeEnd = function(event) { 1717 1718 var _ = this; 1719 1720 _.$list.removeClass('dragging'); 1721 1722 if (_.touchObject.curX === undefined) { 1723 return false; 1724 } 1725 1726 if (_.touchObject.swipeLength >= _.touchObject.minSwipe) { 1727 $(event.target).on('click.slick', function(event) { 1728 event.stopImmediatePropagation(); 1729 event.stopPropagation(); 1730 event.preventDefault(); 1731 $(event.target).off('click.slick'); 1732 }); 1733 1734 switch (_.swipeDirection()) { 1735 case 'left': 1736 _.slideHandler(_.currentSlide + _.options.slidesToScroll); 1737 _.touchObject = {}; 1738 break; 1739 1740 case 'right': 1741 _.slideHandler(_.currentSlide - _.options.slidesToScroll); 1742 _.touchObject = {}; 1743 break; 1744 } 1745 } else { 1746 if(_.touchObject.startX !== _.touchObject.curX) { 1747 _.slideHandler(_.currentSlide); 1748 _.touchObject = {}; 1749 } 1750 } 1751 1752 }; 1753 1754 Slick.prototype.swipeHandler = function(event) { 1755 1756 var _ = this; 1757 1758 if ('ontouchend' in document && _.options.swipe === false) { 1759 return false; 1760 } else if (_.options.draggable === false && !event.originalEvent.touches) { 1761 return false; 1762 } 1763 1764 _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ? 1765 event.originalEvent.touches.length : 1; 1766 1767 _.touchObject.minSwipe = _.listWidth / _.options 1768 .touchThreshold; 1769 1770 switch (event.data.action) { 1771 1772 case 'start': 1773 _.swipeStart(event); 1774 break; 1775 1776 case 'move': 1777 _.swipeMove(event); 1778 break; 1779 1780 case 'end': 1781 _.swipeEnd(event); 1782 break; 1783 1784 } 1785 1786 }; 1787 1788 Slick.prototype.swipeMove = function(event) { 1789 1790 var _ = this, 1791 curLeft, swipeDirection, positionOffset, touches; 1792 1793 touches = event.originalEvent !== undefined ? event.originalEvent.touches : null; 1794 1795 curLeft = _.getLeft(_.currentSlide); 1796 1797 if (!_.$list.hasClass('dragging') || touches && touches.length !== 1) { 1798 return false; 1799 } 1800 1801 _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX; 1802 _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY; 1803 1804 _.touchObject.swipeLength = Math.round(Math.sqrt( 1805 Math.pow(_.touchObject.curX - _.touchObject.startX, 2))); 1806 1807 swipeDirection = _.swipeDirection(); 1808 1809 if (swipeDirection === 'vertical') { 1810 return; 1811 } 1812 1813 if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) { 1814 event.preventDefault(); 1815 } 1816 1817 positionOffset = _.touchObject.curX > _.touchObject.startX ? 1 : -1; 1818 1819 if (_.options.vertical === false) { 1820 _.swipeLeft = curLeft + _.touchObject.swipeLength * positionOffset; 1821 } else { 1822 _.swipeLeft = curLeft + (_.touchObject 1823 .swipeLength * (_.listHeight / _.listWidth)) * positionOffset; 1824 } 1825 1826 if (_.options.fade === true || _.options.touchMove === false) { 1827 return false; 1828 } 1829 1830 if (_.animating === true) { 1831 _.swipeLeft = null; 1832 return false; 1833 } 1834 1835 _.setCSS(_.swipeLeft); 1836 1837 }; 1838 1839 Slick.prototype.swipeStart = function(event) { 1840 1841 var _ = this, 1842 touches; 1843 1844 if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) { 1845 _.touchObject = {}; 1846 return false; 1847 } 1848 1849 if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) { 1850 touches = event.originalEvent.touches[0]; 1851 } 1852 1853 _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX; 1854 _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY; 1855 1856 _.$list.addClass('dragging'); 1857 1858 }; 1859 1860 Slick.prototype.unfilterSlides = function() { 1861 1862 var _ = this; 1863 1864 if (_.$slidesCache !== null) { 1865 1866 _.unload(); 1867 1868 _.$slideTrack.children(this.options.slide).remove(); 1869 1870 _.$slidesCache.appendTo(_.$slideTrack); 1871 1872 _.reinit(); 1873 1874 } 1875 1876 }; 1877 1878 Slick.prototype.unload = function() { 1879 1880 var _ = this; 1881 1882 $('.slick-cloned', _.$slider).remove(); 1883 if (_.$dots) { 1884 _.$dots.remove(); 1885 } 1886 if (_.$prevArrow) { 1887 _.$prevArrow.remove(); 1888 _.$nextArrow.remove(); 1889 } 1890 _.$slides.removeClass( 1891 'slick-slide slick-active slick-visible').removeAttr('style'); 1892 1893 }; 1894 1895 Slick.prototype.updateArrows = function() { 1896 1897 var _ = this; 1898 1899 if (_.options.arrows === true && _.options.infinite !== 1900 true && _.slideCount > _.options.slidesToShow) { 1901 _.$prevArrow.removeClass('slick-disabled'); 1902 _.$nextArrow.removeClass('slick-disabled'); 1903 if (_.currentSlide === 0) { 1904 _.$prevArrow.addClass('slick-disabled'); 1905 _.$nextArrow.removeClass('slick-disabled'); 1906 } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow) { 1907 _.$nextArrow.addClass('slick-disabled'); 1908 _.$prevArrow.removeClass('slick-disabled'); 1909 } 1910 } 1911 1912 }; 1913 1914 Slick.prototype.updateDots = function() { 1915 1916 var _ = this; 1917 1918 if (_.$dots !== null) { 1919 1920 _.$dots.find('li').removeClass('slick-active'); 1921 _.$dots.find('li').eq(_.currentSlide / _.options.slidesToScroll).addClass( 1922 'slick-active'); 1923 1924 } 1925 1926 }; 1927 1928 $.fn.slick = function(options) { 1929 var _ = this; 1930 return _.each(function(index, element) { 1931 1932 element.slick = new Slick(element, options); 1933 1934 }); 1935 }; 1936 1937 $.fn.slickAdd = function(slide, slideIndex, addBefore) { 1938 var _ = this; 1939 return _.each(function(index, element) { 1940 1941 element.slick.addSlide(slide, slideIndex, addBefore); 1942 1943 }); 1944 }; 1945 1946 $.fn.slickCurrentSlide = function() { 1947 var _ = this; 1948 return _.get(0).slick.getCurrent(); 1949 }; 1950 1951 $.fn.slickFilter = function(filter) { 1952 var _ = this; 1953 return _.each(function(index, element) { 1954 1955 element.slick.filterSlides(filter); 1956 1957 }); 1958 }; 1959 1960 $.fn.slickGoTo = function(slide) { 1961 var _ = this; 1962 return _.each(function(index, element) { 1963 1964 element.slick.slideHandler(slide); 1965 1966 }); 1967 }; 1968 1969 $.fn.slickNext = function() { 1970 var _ = this; 1971 return _.each(function(index, element) { 1972 1973 element.slick.changeSlide({ 1974 data: { 1975 message: 'next' 1976 } 1977 }); 1978 1979 }); 1980 }; 1981 1982 $.fn.slickPause = function() { 1983 var _ = this; 1984 return _.each(function(index, element) { 1985 1986 element.slick.autoPlayClear(); 1987 element.slick.paused = true; 1988 1989 }); 1990 }; 1991 1992 $.fn.slickPlay = function() { 1993 var _ = this; 1994 return _.each(function(index, element) { 1995 1996 element.slick.paused = false; 1997 element.slick.autoPlay(); 1998 1999 }); 2000 }; 2001 2002 $.fn.slickPrev = function() { 2003 var _ = this; 2004 return _.each(function(index, element) { 2005 2006 element.slick.changeSlide({ 2007 data: { 2008 message: 'previous' 2009 } 2010 }); 2011 2012 }); 2013 }; 2014 2015 $.fn.slickRemove = function(slideIndex, removeBefore) { 2016 var _ = this; 2017 return _.each(function(index, element) { 2018 2019 element.slick.removeSlide(slideIndex, removeBefore); 2020 2021 }); 2022 }; 2023 2024 $.fn.slickSetOption = function(option, value, refresh) { 2025 var _ = this; 2026 return _.each(function(index, element) { 2027 2028 element.slick.options[option] = value; 2029 2030 if (refresh === true) { 2031 element.slick.unload(); 2032 element.slick.reinit(); 2033 } 2034 2035 }); 2036 }; 2037 2038 $.fn.slickUnfilter = function() { 2039 var _ = this; 2040 return _.each(function(index, element) { 2041 2042 element.slick.unfilterSlides(); 2043 2044 }); 2045 }; 2046 2047 $.fn.unslick = function() { 2048 var _ = this; 2049 return _.each(function(index, element) { 2050 2051 element.slick.destroy(); 2052 2053 }); 2054 }; 2055 2056})); 2057 2058 2059 2060 2061 2062/*shou suo*/ 2063 var footer_icon_plus = 'icon-plus-sign'; 2064 var footer_icon_minus = 'icon-minus-sign'; 2065var responsiveflagFooter = false; 2066function accordionFooter(status){ 2067 if(status == 'enable'){ 2068 $('.modules .block h4').on('click', function(){ 2069 2070 $(this).toggleClass('active').parent().find('.toggle_content').stop().slideToggle('medium', function(){ 2071 if($(this).prev().hasClass('active')) { 2072 $(this).prev().children('i').removeClass(footer_icon_plus).addClass(footer_icon_minus); 2073 } 2074 else { 2075 $(this).prev().children('i').removeClass(footer_icon_minus).addClass(footer_icon_plus); 2076 } 2077 }); 2078 }) 2079 $('.modules').addClass('accordion').find('.toggle_content').slideUp('fast'); 2080 }else{ 2081 $('.modules h4').removeClass('active').off().parent().find('.toggle_content').removeAttr('style').slideDown('fast'); 2082 $('.modules h4 i').removeClass(footer_icon_minus).addClass(footer_icon_plus); 2083 $('.modules').removeClass('accordion'); 2084 } 2085 } 2086function toDoFooter(){ 2087 if ($(document).width() <= 800 && responsiveflagFooter == false){ 2088 accordionFooter('enable'); 2089 responsiveflagFooter = true; 2090 } 2091 else if ($(document).width() >= 800){ 2092 accordionFooter('disable'); 2093 responsiveflagFooter = false; 2094 } 2095} 2096$(document).ready(toDoFooter); 2097$(window).resize(toDoFooter); 2098 2099 2100 2101 2102 2103 2104jQuery(document).ready(function() { 2105// -------------------------------------------------- 2106// paralax background 2107// -------------------------------------------------- 2108 $window = jQuery(window); 2109 jQuery('section[data-type="background"]').each(function(){ 2110 var $bgobj = jQuery(this); // assigning the object 2111 2112 jQuery(window).scroll(function() { 2113 var yPos = -($window.scrollTop() / $bgobj.data('speed')); 2114 var coords = '50% '+ yPos + 'px'; 2115 $bgobj.css({ backgroundPosition: coords }); 2116 2117 }); 2118 }); 2119 document.createElement("article"); 2120 document.createElement("section"); 2121 2122}); 2123 2124 2125 2126 2127 2128 2129
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.