https://www.mojaazja.eu/skins/store_user/store_51530cb51aa33584410334a776d96a81_9/js/user.js?sci=551
vendor: 36,085 bytes, lines 1-7
1/** 2 * Owl Carousel v2.3.4 3 * Copyright 2013-2018 David Deutsch 4 * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE 5 */ 6!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i,g-=1;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],e.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(a("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeItems=function(){var b=this.$element.find(".owl-item");if(b.length)return this._items=b.get().map(function(b){return a(b)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var a,b,c;a=this.$element.find("img"),b=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadAutoWidthImages(a)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freeDrag||a.each(h,a.proxy(function(a,i){return"left"===c&&b>i-f&&b<i+f?e=a:"right"===c&&b>i-g-f&&b<i-g+f?e=a+1:this.op(b,"<",i)&&this.op(b,">",h[a+1]!==d?h[a+1]:i-g)&&(e="left"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,">",h[this.minimum()])?e=b=this.minimum():this.op(b,"<",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isVisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type)){var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyLoadEager>0&&(e+=c.lazyLoadEager,c.loop&&(g-=c.lazyLoadEager,e++));f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src")||f.attr("data-srcset");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):f.is("source")?f.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("srcset",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"===a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var d=this;a(b).on("load",function(){d._core.settings.autoHeight&&d.update()}),a(b).resize(function(){d._core.settings.autoHeight&&(null!=d._intervalId&&clearTimeout(d._intervalId),d._intervalId=setTimeout(function(){d.update()},250))})};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=Math.max.apply(null,f),g<=1&&d&&this._previousHeight&&(g=this._previousHeight),this._previousHeight=g,this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?"width:"+c.width+"px;height:"+c.height+"px;":"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(c){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?a("<div/>",{class:"owl-video-tn "+j,srcType:c}):a("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("<div/>",{class:"owl-video-wrapper",style:g})),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('<div class="owl-video-frame" />').insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1, 7animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to}
vendor: 5,569 bytes, line 7
7,this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('<button role="button">').addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d,e;e=this._core.settings;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)"$relative"===b&&e.navContainer?this._controls[b].html(""):this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(
7window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document); 8 9/** 10 * Minified by jsDelivr using Terser v3.14.1. 11 * Original file: /npm/[email protected]/src/js.cookie.js 12 * 13 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 14 */ 15!function(e){var n;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var t=window.Cookies,o=window.Cookies=e();o.noConflict=function(){return window.Cookies=t,o}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var t=arguments[e];
15for(var o in t)n[o]=t[o]}return n}function n(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function t(o){function r(){}function i(n,t,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},r.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(t);/^[\{\[]/.test(c)&&(t=c)}catch(e){}t=o.write?o.write(t,n):encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var f="";for(var u in i)i[u]&&(f+="; "+u,!0!==i[u]&&(f+="="+i[u].split(";")[0]));return document.cookie=n+"="+t+f}}function c(e,t){if("undefined"!=typeof document){for(var r={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var f=i[c].split("="),u=f.slice(1).join("=");t||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var a=n(f[0]);if(u=(o.read||o)(u,a)||n(u),t)try{u=JSON.parse(u)}catch(e){}if(r[a]=u,e===a)break}catch(e){}}return e?r[e]:r}}return r.set=i,r.get=function(e){return c(e,!1)},r.getJSON=function(e){return c(e,!0)},r.remove=function(n,t){i(n,"",e(t,{expires:-1}))},r.defaults={},r.withConverter=t,r}(function(){})}); 16//# sourceMappingURL=/sm/b0ce608ffc029736e9ac80a8dd6a7db2da8e1d45d2dcfc92043deb2214aa30d8.map 17 18!function(C){"use strict";C.Zebra_Pin=function(t,s){var n={class_name:"Zebra_Pin",contain:!(this.version="2.0.0"),hard:!1,top_spacing:0,bottom_spacing:0,z_index:1e3,onPin:null,onUnpin:null},c=this,d=(Math.random()+1).toString(36).substring(2,7),f=C(window);c.update=function(){t.each(function(s){var n=C(this);C(this).hasClass(c.settings.class_name)&&(n.attr("style",n.data("ztt_previous_style")||"").removeClass(c.settings.class_name).removeClass("Zebra_Pin_Contained"),n.next(".Zebra_Pin_Clone").remove());var t,e,i,a,o=n.offset(),l=n.position(),g=n.outerHeight(),_=n.outerWidth(),p=parseInt(n.css("marginLeft"),10)||0,r=parseInt(n.css("marginTop"),10)||0;o.left-=p,o.top-=r,c.settings.contain&&(t=n.parent(),e=t.height(),i=t.offset()),c.settings.hard?n.css({position:"fixed",left:o.left,top:o.top,width:_,zIndex:c.settings.z_index}).addClass(c.settings.class_name):(a=".Zebra_Pin_"+d+"_"+s,f.off("scroll"+a).on("scroll"+a,function(){var t=f.scrollTop();t>=o.top-c.settings.top_spacing&&(!c.settings.contain||t<=i.top+e-c.settings.top_spacing-g-c.settings.bottom_spacing)&&(!n.hasClass(c.settings.class_name)||n.hasClass("Zebra_Pin_Contained"))?(n.hasClass("Zebra_Pin_Contained")?n.removeClass("Zebra_Pin_Contained"):(n.clone().addClass("Zebra_Pin_Clone").insertAfter(n).css("visibility","hidden"),n.data("ztt_previous_style",n.attr("style")).addClass(c.settings.class_name),c.settings.onPin&&"function"==typeof c.settings.onPin&&c.settings.onPin(o.top-c.settings.top_spacing,n,s)),n.css({position:"fixed",left:o.left,top:c.settings.top_spacing,width:_,zIndex:c.settings.z_index})):t<o.top-c.settings.top_spacing&&n.hasClass(c.settings.class_name)?(n.next(".Zebra_Pin_Clone").remove(),n.attr("style",n.data("ztt_previous_style")||"").removeClass(c.settings.class_name),c.settings.onUnpin&&"function"==typeof c.settings.onUnpin&&c.settings.onUnpin(o.top-c.settings.top_spacing,n,s)):c.settings.contain&&t>=i.top+e-c.settings.top_spacing-g-c.settings.bottom_spacing&&!n.hasClass("Zebra_Pin_Contained")&&(n.hasClass(c.settings.class_name)||(n.clone().addClass("Zebra_Pin_Clone").insertAfter(n).css("visibility","hidden"),n.data("ztt_previous_style",n.attr("style")).addClass(c.settings.class_name),c.settings.onPin&&"function"==typeof c.settings.onPin&&c.settings.onPin(o.top-c.settings.top_spacing,n,s)),n.css({position:"absolute",left:l.left,top:e-g-c.settings.bottom_spacing-c.settings.bottom_spacing}).addClass("Zebra_Pin_Contained"))}),f.trigger("scroll"+a))})},c.settings={},c.settings=C.extend({},n,s),c.update(),f.on("resize",function(){c.update()})}}(jQuery); 19 20/** 21 * @namespace mainCore 22 */ 23 24var mainCore = (function mainCore() { 25 /** 26 * Returns the flag. 27 * True - run function. 28 * 29 * Don't call this function! 30 * This function works like a callback. 31 * @function OnOffFunc 32 * 33 * @param {array} whichPage - The array of selectors that they specify where function should be run. 34 * 35 * @returns {boolean} 36 */
37 var OnOffFunc = function (whichPage) { 38 var whichPage = whichPage || ["all"]; 39 40 if (Array.isArray(whichPage)) { 41 var isTrue = false; 42 43 for (var i = 0, len = whichPage.length; i < len; i++) { 44 if (whichPage[i] === "all") { 45 isTrue = true; 46 continue; 47 } 48 49 if ($(whichPage[i]).length) { 50 isTrue = true; 51 } 52 } 53 } 54 55 if (!isTrue) { 56 return null; 57 } else { 58 return true; 59 } 60 }; 61 62 /** 63 * Adds style and move box on the top. 64 * @function infoBar 65 * 66 * @param {string} id - Box selector. ( Set default ). 67 * @param {array} whichPage - The array of selectors that they specify where function should be run. 68 * @param {string} color - Text color. 69 * @param {string} bg - Background color. 70 * 71 * @default id - 'fx-welcome' 72 * @default whichPage - all pages 73 * 74 * @example 75 * //Your id : fx-welcome-super-bar 76 * //Only index 77 * //Color red 78 * //Background blue 79 * 80 * mainCore.infoBar('fx-welcome-super-bar',['.shop_index'],'red','blue') 81 */ 82 var infoBar = function (id, whichPage, color, bg) { 83 var OnOff = OnOffFunc(whichPage); 84 85 if (!OnOff || sessionStorage.getItem('fx-welcome')) { 86 return null; 87 } 88 89 var id = id || "fx-welcome"; 90 91 var mainElem = document.getElementById(id); 92 93 if (!mainElem) { 94 console.warn("Element not found"); 95 return null; 96 } else { 97 mainElem.classList.add("active"); 98 } 99 100 var closeSign = document.createElement("span"); 101 102 $(closeSign).html('<i class="fa fa-times"></i>'); 103 $(closeSign).addClass(id + "-x"); 104 105 $("<style>#" + id + "{box-sizing:border-box;text-align:center;margin:0;background:" + bg + ";width:100%;padding:10px 20px;overflow:hidden}#" + id + ">p,#" + id + " a{color:" + color + ";font-size:13px;font-weight:300;text-transform:uppercase;margin:0}#" + id + " a{text-decoration:underline}." + id + "-x{position:absolute;top:50%;right:2%;transform:translateY(-50%);color:" + color + ";cursor:pointer;font-size:16px}</style>").appendTo("head"); 106 107 closeSign.addEventListener("click", function () { 108 109 sessionStorage.setItem('fx-welcome', 'off'); 110 111 $.when($(mainElem).fadeOut()).then(function () { 112 $(mainElem).remove(); 113 }); 114 }, 115 false 116 ); 117 118 $(mainElem).append(closeSign); 119 120 moveElement( 121 mainElem, 122 ".wrap > header.row", 123 "prepend", 124 undefined, 125 whichPage 126 ); 127 }; 128 129 /** 130 * Moves the element to the selected location. 131 * @function moveElement 132 * 133 * @param {string} el - The selector of the element to be moved. 134 * @param {string} where - The selector of the element to which the previous element is to be moved. 135 * @param {string} fnType - The name of the function that describes how to insert content. 136 * @param {string} fnHow - The name of the function describing the way of moving content. 137 * @param {array} whichPage - The array of selectors that they specify where function should be run. 138 * @param {function} fn - The callback function. 139 * 140 * @requires el 141 * @requires where 142 * @requires fnType 143 * 144 * @default fnHow - detach 145 * @default whichPage - all pages 146 * @default fn - undefined 147 * 148 * @example 149 * //Element selector : 'header .link-logo' 150 * //Where selector : 'div.main .innermain' 151 * //fnType : prepend 152 * //fnHow : undefined 153 * //whichPage : undefined 154 * //fn : undefined 155 * 156 * mainCore.moveElement('header .link-logo','div.main .innermain','prepend') 157 */ 158 var moveElement = function (el, where, fnType, fnHow, whichPage, fn) { 159 var fnHow = fnHow || undefined, 160 fnType = fnType || undefined, 161 whichPage = whichPage || ["all"]; 162 163 var OnOff = OnOffFunc(whichPage); 164 165 if (!OnOff) { 166 return null; 167 } 168 169 if (!$(el).length) { 170 console.warn("Element not found."); 171 return null; 172 } 173 174 if (!$(where).length) { 175 console.warn("Content not found."); 176 return null; 177 } 178 179 if (fnType === undefined) { 180 console.warn("The type is not specified."); 181 return null; 182 } 183 184 var possibleHow = ["clone", "detach"], 185 possibleType = ["after", "append", "before", "prepend"]; 186 187 var isGood = 0; 188 189 for (var i in possibleType) { 190 if (fnType === possibleType[i]) { 191 isGood++; 192 } 193 } 194 195 if (!isGood && fnType !== undefined) { 196 console.warn("Wrong fnType"); 197 return false;
198 } 199 200 isGood = 0; 201 for (var i in possibleHow) { 202 if (fnHow === possibleHow[i]) { 203 isGood++; 204 } 205 } 206 if (!isGood && fnHow !== undefined) { 207 console.warn("Wrong fnHow"); 208 return false; 209 } 210 211 var add = new Function( 212 "el", 213 "where", 214 "fnType", 215 "fnHow", 216 "var el = $(el), where = $(where), fnType = fnType, fnHow = fnHow; if(fnHow){(fnType === 'before' || fnType === 'after') ? $(el)." + 217 fnHow + 218 "().insert" + 219 fnType.charAt(0).toUpperCase() + 220 fnType.slice(1) + 221 "(where) : $(el)." + 222 fnHow + 223 "()." + 224 fnType + 225 "To(where);} else{$(where)." + 226 fnType + 227 "(el);}" 228 ); 229 230 add(el, where, fnType, fnHow); 231 232 if (typeof fn === "function") { 233 fn(); 234 } 235 }; 236 237 /** 238 * Adds more/less button in a curtain menu. 239 * @function curtainSubmenu 240 * 241 * @param {number} lvl - Menu level. 242 * @param {number} whichPosition - From which position to start covering. 243 * 244 * @requires lvl 245 * @requires whichPosition 246 * 247 * @example 248 * //Lvl - 1 249 * //whichPosition - 2 250 * 251 * mainCore.curtainSubmenu(1,2) 252 */ 253 var curtainSubmenu = function (lvl, whichPosition) { 254 255 var menu = document.querySelector(".menu"); 256 257 if(!menu){ 258 return; 259 } 260 261 var listLvl = $(".submenu.level" + lvl + " .level" + lvl), 262 htmlLang = $("html").attr("lang"), 263 moreText = { 264 pl: "wiÄcej", 265 en: "more", 266 de: "mehr" 267 }, 268 lessText = { 269 pl: "mniej", 270 en: "less", 271 de: "wenig" 272 }, 273 whichPosition = whichPosition || undefined; 274 275 if (listLvl.length === 0) { 276 console.warn("Not found this submenu level."); 277 return null; 278 } 279 280 if (whichPosition === undefined) { 281 console.warn("You must pass a value - how many positions to hide."); 282 return null; 283 } else if (typeof whichPosition !== "number") { 284 console.warn("Wrong type of argument."); 285 return null; 286 } 287 288 listLvl.each(function (i, ul) { 289 var listEl = $(ul).children("li"); 290 listEl.each(function (howMany, li) { 291 if (howMany > whichPosition - 1) { 292 $(li).addClass("hideMenuPosition"); 293 if ($(ul).find("li.showMoreElements" + lvl).length == 0) { 294 var moreBtn = $( 295 "<li class='showMoreElements" + 296 lvl + 297 "'><h4><a><span>" + 298 moreText[htmlLang] + 299 "</span></a></h4></li>" 300 ); 301 $(ul).append(moreBtn); 302 } 303 } 304 }); 305 $(".hideMenuPosition").hide(); 306 }); 307 308 $('li[class ^="showMoreElements"] h4 a span').css({ 309 cursor: "pointer", 310 "user-select": "none" 311 }); 312 313 $(".showMoreElements" + lvl).each(function (i, el) { 314 $(el).on("click", function (e) { 315 e.stopPropagation(); 316 $(this) 317 .siblings(".hideMenuPosition") 318 .toggle(500); 319 var $inText = $(this) 320 .find("span")[0] 321 .innerText.toUpperCase(); 322 if ($inText == lessText[htmlLang].toUpperCase()) { 323 $(this).find("span")[0].innerText = moreText[htmlLang]; 324 } else if ($inText === moreText[htmlLang].toUpperCase()) { 325 $(this).find("span")[0].innerText = lessText[htmlLang]; 326 } 327 }); 328 }); 329 }; 330 331 /** 332 * Sets sticky menu. EXTERNAL CSS! 333 * @function stickyMenu 334 * 335 * @param {boolean} copyLogo - The flag specifying whether to move the logo. 336 * @param {boolean} copyBasket - The flag specifying whether to move the basket. 337 * 338 * @default copyLogo - false 339 * @default copyBasket - false 340 * 341 * @requires CSS/stickyMenu/stickyMenu.less 342 * @requires CSS/stickyMenu/stickyBasket.png 343 * 344 * @example 345 * //We want copy logo 346 * 347 * mainCore.stickyMenu(true); 348 */ 349 var stickyMenu = function (copyLogo, copyBasket) { 350 var mainWrap = document.querySelector(".wrap"), 351 mainMenu = document.querySelector(".menu.row"), 352 menuFromTop = $(mainMenu).offset().top; 353 354 if(!mainMenu){ 355 return; 356 } 357 358 if (copyLogo) { 359 moveElement( 360 ".link-logo", 361 ".menu .innermenu .home-link-menu-li", 362 "prepend", 363 "clone" 364 ); 365 $(".home-link-menu-li").addClass("stickyMenucopyLogo"); 366 } 367 368 if (copyBasket) { 369 moveElement( 370 "header .logo-bar .basket", 371 ".menu .innermenu .menu-list", 372 "append", 373 "clone" 374 ); 375 $(".menu .innermenu .basket").addClass("stickyMenucopyBasket"); 376 } 377 378 document.addEventListener("DOMContentLoaded", isSticky); 379 380 document.addEventListener( 381 "scroll", 382 isSticky.bind(this, mainWrap, mainMenu, menuFromTop) 383 ); 384 385 function isSticky(mainWrap, mainMenu, y) { 386 if (mainWrap.getBoundingClientRect().top * -1 > y) { 387 mainWrap.style.paddingTop = mainMenu.clientHeight + "px"; 388 389 $(mainMenu).addClass("sticky"); 390 } else { 391 //Not sticky 392 $(mainMenu).removeClass("sticky"); 393 394 mainWrap.style.paddingTop = 0; 395 } 396 } 397 }; 398 399 /** 400 * Runs other type of menu. EXTERNAL CSS! 401 * @function hamburgerMenu 402 * 403 * @param {number} type - Type of menu. ( 1. Fullpage , 2. Leftsliding ) 404 * @param {string} where - The selector of the element to which the previous element is to be moved. 405 * @param {string} fnType - The name of the function that describes how to insert content. 406 * 407 * @requires CSS/hamburgerMenu 408 * 409 * @requires type 410 * @requires where 411 * @requires fnType 412 * 413 * @example 414 * //type - 1 ( Fullpage ) 415 * //where - 'header'
416 * //fnType - 'prepend' 417 * 418 * mainCore.hamburgerMenu(1,'header','prepend') 419 */ 420 var hamburgerMenu = function (type, where, fnType) { 421 var $mainMenu = $("div.menu"), 422 hamburgerMenu = document.createElement("div"); 423 424 if($(mainMenu).length == 0){ 425 return; 426 } 427 428 if (type !== 1 && type !== 2) { 429 console.warn("You must pass type of menu."); 430 return null; 431 } 432 433 $(hamburgerMenu).addClass("burgerMenu"); 434 435 $(hamburgerMenu).html( 436 '<div class="wrapHamburger"><div class="hamburgerBar"></div><div class="hamburgerBar"></div><div class="hamburgerBar"></div></div>' 437 ); 438 439 hamburgerMenu.addEventListener("click", function () { 440 $($mainMenu).toggleClass("showMe"); 441 $(this).toggleClass("changeMe"); 442 }); 443 444 if (type === 1) { 445 //FullPage 446 moveElement(hamburgerMenu, where, fnType); 447 448 $($mainMenu).addClass("fullpage"); 449 } 450 if (type === 2) { 451 //Leftside sliding 452 moveElement(hamburgerMenu, where, fnType); 453 454 $(".menu").addClass("leftSide"); 455 } 456 }; 457 458 /** 459 * Connects boxes in one module and displaying they like a tabs. EXTERNAL CSS! 460 * @function turnTabs 461 * 462 * @param {string} whereAppend - The selector of the element to which the previous element is to be moved. 463 * @param {string} fnType - The name of the function that describes how to insert content. 464 * @param {array} whichPage - The array of selectors that they specify where function should be run. 465 * 466 * You must add externel JS code from Shoper! 467 * 468 * @requires whereAppend 469 * @requires fnType 470 * 471 * @example 472 * //whereAppend - 'div.main #box_newsletter' 473 * //fnType - 'after' 474 * //whichPage - undefined 475 * 476 * mainCore.turnTabs('div.main #box_newsletter','after') 477 */ 478 var turnTabs = function (whereAppend, fnType, whichPage) { 479 var OnOff = OnOffFunc(whichPage); 480 481 if (!OnOff) { 482 return null; 483 } 484 485 var selectorsAvailable = { 486 lastAdd: "#box_lastadded", 487 promotion: "#box_specialoffer", 488 bestsellers: "#box_bestsellers" 489 }; 490 491 var selectors = {}; 492 493 var tabsHead = document.createElement("div"), 494 allContent = document.createElement("div"); 495 496 var flagNotFound = false, 497 allTabs = {}, 498 allHeader = []; 499 500 for (var t = 0; t < Object.keys(selectorsAvailable).length; t++) { 501 $("" + Object.values(selectorsAvailable)[t]).length !== 0 ? 502 (selectors[Object.keys(selectorsAvailable)[t]] = Object.values( 503 selectorsAvailable 504 )[t]) : 505 null; 506 } 507 508 for (var i in selectors) { 509 if ($(selectors[i]).length === 0) { 510 console.warn("Not found " + selectors[i] + " elements."); 511 flagNotFound = true; 512 } else { 513 allHeader.push($("" + selectors[i] + " .boxhead")); 514 allTabs[selectors[i]] = $(selectors[i]); 515 } 516 } 517 518 if (flagNotFound) { 519 return false; 520 } 521 522 if ($.isEmptyObject(selectors)) { 523 console.warn("You did not add any products modules."); 524 return null; 525 } 526 527 //Do tabs 528 tabsHead.classList("tabsHead", "box", "resetcss", "box_custom"); 529 530 var childrenTabsHead = $(tabsHead)[0].children; 531 532 for (var i in allHeader) { 533 var tabsHeadPosition = document.createElement("div"); 534 535 tabsHeadPosition.setAttribute("class", Object.keys(selectors)[i]); 536 tabsHeadPosition.setAttribute("data-id", Object.values(selectors)[i]); 537 538 var activeBox = $(tabsHeadPosition).attr("data-id"); 539 540 if (i == 0) { 541 tabsHeadPosition.classList.add("active"); 542 } else { 543 $("" + Object.values(selectors)[i]).css({ 544 display: "none" 545 }); 546 } 547 548 tabsHeadPosition.innerHTML = 549 "<span>" + allHeader[i][0].innerText + "</span>"; 550 tabsHead.appendChild(tabsHeadPosition); 551 552 tabsHeadPosition.addEventListener("click", function () { 553 $(childrenTabsHead).each(function () { 554 if ($(this).hasClass("active")) { 555 this.classList.remove("active"); 556 $($(this).attr("data-id")).css("display", "none"); 557 } 558 }); 559 this.classList.add("active"); 560 $($(this).attr("data-id")).css({ 561 display: "block" 562 }); 563 }); 564 565 $("div" + activeBox) 566 .find(".boxhead") 567 .detach(); 568 } 569 570 for (var i in selectors) { 571 $(allContent).append($("" + selectors[i])); 572 } 573 574 $(allContent).prepend(tabsHead); 575 576 moveElement(allContent, whereAppend, fnType); 577 }; 578 579 /**
580 * Display specific element when other element is visible. External CSS ! 581 * @function slidingBox 582 * 583 * @param {string} el - The element that will be shown. ( You must set style this element in external CSS !) 584 * @param {string} whenEl - The element that must be in viewport. 585 * @param {array} whichPage - The array of selectors that they specify where function should be run. 586 * 587 * @requires el 588 * @requires whenEl 589 * 590 * @example 591 * //el - #box_newsletter 592 * //whenEl - div.main 593 * //whichPage - ['.shop_index'] 594 * 595 * mainCore.slidingBox('#box_newsletter','div.main',['.shop_index']) 596 */ 597 var slidingBox = function (el, whenEl, whichPage) { 598 var OnOff = OnOffFunc(whichPage); 599 600 if (!OnOff) { 601 return null; 602 } 603 604 if (!$(el).length) { 605 console.warn("Element not found."); 606 return null; 607 } 608 609 if (!$(whenEl).length) { 610 console.warn("Content not found."); 611 return null; 612 } 613 614 var slidingEl = document.querySelector(el), 615 whenSliding = document.querySelector(whenEl); 616 617 slidingEl.setAttribute("class", "slidingElement"); 618 619 function isAnyPartOfElementInViewport(el) { 620 var rect = el.getBoundingClientRect(); 621 622 var windowHeight = 623 window.innerHeight || document.documentElement.clientHeight, 624 windowWidth = window.innerWidth || document.documentElement.clientWidth; 625 626 var vertInView = rect.top <= windowHeight && rect.top + rect.height >= 0, 627 horInView = rect.left <= windowWidth && rect.left + rect.width >= 0; 628 629 return vertInView && horInView; 630 } 631 632 document.addEventListener( 633 "scroll", 634 function () { 635 if (isAnyPartOfElementInViewport(whenSliding)) { 636 $(slidingEl).addClass("showSliding"); 637 } else { 638 $(slidingEl).removeClass("showSliding"); 639 } 640 }, 641 false 642 ); 643 }; 644 645 /** 646 * Set and display counter. EXTERNAL CSS! 647 * @function counter 648 * 649 * @param {string} setId - The box with requirement values. 650 * @param {string} mainId - The box with main text. 651 * @param {array} whichPage - The array of selectors that they specify where function should be run. 652 * 653 * @default setId 'fx-setCounter' 654 * @default mainId 'fx-mainCounter' 655 * 656 * @example 657 * // Values of setId and mainId are default. 658 * // counter will be run only on main page. 659 * mainCore.counter('','',['.shop_index']); 660 */ 661 var counter = function (setId, mainId, whichPage) { 662 var OnOff = OnOffFunc(whichPage); 663 664 if (!OnOff) { 665 return null; 666 } 667 668 var setId = setId || "fx-setCounter", 669 mainId = mainId || "fx-mainCounter"; 670 671 var setElem = document.getElementById(setId), 672 mainElem = document.getElementById(mainId); 673 674 if (!setElem) { 675 console.warn("Configuration element not found."); 676 return null; 677 } 678 679 if (!mainElem) { 680 console.warn("Main element not found."); 681 return null; 682 } 683 684 mainElem.setAttribute("class", "fx-CounterBox"); 685 setElem.setAttribute("class", "fx-setCounterBox"); 686 687 var queryBox = document.querySelector("#" + setId + " > p:first-child"), 688 setTime = queryBox.innerText, 689 whenOff = document.querySelector("#" + setId + " > p:nth-child(2)"), 690 optionalText = document.querySelector("#" + setId + " > p:nth-child(3)"), 691 dayOff = document.querySelector("#" + setId + " > p:nth-child(4)"), 692 countdown = document.querySelector("#" + setId + " > p:nth-child(5)"), 693 counterBox = document.createElement("div"); 694 695 $("#" + mainId).append(counterBox); 696 697 counterBox.classList.add("counterBox"); 698 counterBox.innerHTML = 699 '<span id="fx-hours" class="timeBox"></span><span id="fx-minutes" class="timeBox"></span><span id="fx-seconds" class="timeBox"></span>'; 700 701 if (whenOff) { 702 var setDate = whenOff.innerText.slice(1, -1).split(","); 703 } else { 704 var setDate = []; 705 } 706 707 if (optionalText) { 708 $(counterBox).after(optionalText); 709 } 710 711 var counterDiv = $(counterBox).find(".counterDiv"), 712 counterDivHours = $("#fx-hours")[0], 713 counterDivMinutes = $("#fx-minutes")[0], 714 counterDivSeconds = $("#fx-seconds")[0]; 715 716 var countDownDate = new Date(), 717 currMonth = countDownDate.getMonth() + 1, 718 currDay = countDownDate.getDate(), 719 turnTimer = true; 720 721 for (var i = 0, length = setDate.length; i < length; i++) { 722 if ( 723 currDay == setDate[i].slice(0, 2) && 724 currMonth == setDate[i].slice(3, 5) 725 ) { 726 turnTimer = false;
727 } 728 } 729 730 if ( 731 countDownDate.getDay() === 6 || 732 countDownDate.getDay() === 0 || 733 !turnTimer 734 ) { 735 mainElem.innerText = dayOff.textContent; 736 } else { 737 countDownDate.setHours(setTime); 738 countDownDate.setMinutes(0); 739 countDownDate.setSeconds(0); 740 741 (function displayTime() { 742 var nowDate = new Date().getTime(); 743 744 var diff = countDownDate - nowDate; 745 746 var hours = Math.floor( 747 (diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60) 748 ); 749 var minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60)); 750 var seconds = Math.floor((diff % (1000 * 60)) / 1000); 751 752 counterDivHours.innerText = hours; 753 counterDivMinutes.innerText = minutes; 754 counterDivSeconds.innerText = seconds; 755 756 if (diff < 0) { 757 mainElem.innerText = countdown.textContent; 758 cancelAnimationFrame(displayTime); 759 return; 760 } 761 762 requestAnimationFrame(displayTime); 763 })(); 764 } 765 766 if ($(mainElem).parents("div.top").length) { 767 $("header .logo-bar").append(mainElem); 768 } 769 }; 770 771 /** 772 * Adds a special tag to products with a specific category. 773 * @function addSpecialTag 774 * 775 * @param {string} value - Text inside tag. 776 * @param {string} type - Type of tag. ( text - Include value property, promo - Show percent ) 777 * @param {string} where - Box selector. 778 * @param {string} color - Text color. 779 * @param {stirng} bg - Background color. 780 * 781 * @requires value 782 * @requires type 783 * @requires where 784 * 785 * @example 786 * //value - Hit 787 * //type - text 788 * //where - 'box_lastadded' 789 * //color and bg - default 790 * 791 * mainCore.addSpecialTag('Hit','text','#box_lastadded') 792 */ 793 var addSpecialTag = function (type, value, where, color, bg) { 794 if (type === undefined || typeof type !== "string") { 795 console.warn("Wrong type of tag."); 796 return null; 797 } 798 799 if (where === undefined || typeof where !== "string") { 800 console.warn("Wrong where parameter."); 801 return null; 802 } 803 804 var p = $(where).find(".product"); 805 806 if ($(p).length == 0) { 807 return null; 808 } 809 810 //Default settings 811 812 $( 813 "<style>.fx-" + 814 value + 815 "{color:" + 816 color + 817 "; background:" + 818 bg + 819 "}</style>" 820 ).appendTo("head"); 821 822 $(p).each(function (index, element) { 823 824 if (type === "text" && $(element).find("ul.tags").length === 0) { 825 826 var inside = 827 '<ul class="tags"><li class="fx-' + 828 value + 829 '"><span>' + 830 value + 831 "</span></li></ul>"; 832 833 $(element).append(inside); 834 } else { 835 836 var inside = 837 '<li class="fx-' + value + '"><span>' + value + "</span></li>"; 838 839 $(element) 840 .find("ul.tags") 841 .append(inside); 842 } 843 844 if (type === "promo") { 845 var price = parseFloat($(element).find(".price em")[0].innerText), 846 del = parseFloat($(element).find(".price del")[0].innerText); 847 848 var valPercent = parseInt((price * 100) / del); 849 valPercent = 100 - valPercent; 850 851 if ($(element).find("ul.tags").length === 0) { 852 var inside = 853 '<ul class="tags"><li class="fx-' + 854 value + 855 '"><span>' + 856 valPercent + 857 "%</span></li></ul>"; 858 859 $(element).append(inside); 860 } else { 861 var inside = 862 '<li class="fx-' + 863 value + 864 '"><span>' + 865 valPercent + 866 "%</span></li>"; 867 868 $(element) 869 .find("ul.tags") 870 .append(inside); 871 } 872 } 873 }); 874 }; 875 876 /** 877 * Join baners. 878 * @function joinBaners 879 * 880 * @param {string} value - Text inside tag. 881 * 882 * @requires value 883 * 884 * @example 885 * //value - Hit 886 * //type - text 887 * //where - 'box_lastadded' 888 * //color and bg - default 889 * 890 * mainCore.joinBaners() 891 */ 892 var joinBaners = function () { 893 894 }; 895 896 /** 897 * Show specific module on the left or right side. 898 * @param {string} id - Selector of the element. 899 * @param {array} whichPage - The array of selectors that they specify where function should be run. 900 * 901 * @default id - 'fx-fixedBox' 902 * 903 * @example 904 * //id - default 905 * //whichPage - undefined 906 * 907 * mainCore.fixedBox() 908 */ 909 var fixedBox = function fixedBox(elWidth, elSide, elPosition, id, whichPage) { 910 var OnOff = OnOffFunc(whichPage); 911 912 if (!OnOff) { 913 return null; 914 } 915 916 var id = id || "fx-fixedBox", 917 mainEl = document.getElementById(id); 918 919 if (!mainEl) { 920 console.warn("Element not found."); 921 return null; 922 } 923 924 var valMargin = 925 ($("body").innerWidth() - $("div.main .container").innerWidth()) / 2; 926 927 if (elWidth + 20 > valMargin) { 928 var boxHead = $(mainEl) 929 .find(".boxhead") 930 .addClass(elSide + "Header headerBox"); 931 932 var innerBox = $(mainEl).find(".innerbox"); 933 $( 934 "<style>#" + 935 id + 936 " .innerbox{ position: relative; " + 937 elSide + 938 ": -" + 939 elWidth + 940 "px; transition: " + 941 elSide + 942 " .5s ease-in; overflow : hidden;}</style>" 943 ).appendTo("head"); 944 945 $(boxHead).on("click", function () { 946 $(innerBox).toggleClass(elSide + "Show"); 947 $(this).toggleClass(elSide + "ShowHeader"); 948 }); 949 } 950 951 $( 952 "<style>#" + 953 id + 954 "{position:" + 955 elPosition + 956 ";" + 957 elSide + 958 ":0;top:50%;transform:translateY(-50%); width: " + 959 elWidth + 960 "px;} </style>" 961 ).appendTo("head"); 962 }; 963 964 /** 965 * @function collapseMenu 966 * 967 * Adds "More" button at the end of the menu. 968 * 969 * IN PROGRESS - Wrong behaviour. 970 */ 971 972 var collapseMenu = function (arrSelectors) { 973 974 var mobileViewport = window.matchMedia("screen and (max-width: 767px)"); 975 var menu = document.querySelector(".menu"); 976 977 if (mobileViewport.matches || !menu) { 978 return; 979 } 980 981 var htmlLang = document.getElementsByTagName('html')[0].getAttribute('lang'); 982 var moreText = { 983 'pl': 'wiÄcej', 984 'en': 'more', 985 'de': 'mehr' 986 }; 987 var arrSelectors = arrSelectors || []; 988 989 var innerMenu = document.querySelector(".menu .innermenu"); 990 var innerMenuChildren = innerMenu.children; 991 992 var menuContainer = document.querySelector(".menu-list"); 993 var menuItems = document.querySelectorAll(".menu-list > li:not(.showMore)"); 994 995 menuContainer.insertAdjacentHTML("beforeend", '<li class="showMore parent"><h4><a href="#" title="' + moreText[htmlLang] + '" class="spanhover mainlevel"><span>' + moreText[htmlLang] + '</span></a></h4><div class="submenu level1"><ul class="secondMenu level1">' + menuContainer.innerHTML + '</ul></div></li>'); 996 997 var secondMenu = menuContainer.querySelector(".secondMenu"); 998 var secondMenuItems = menuContainer.querySelectorAll(".secondMenu > li"); 999 1000 var allItems = menuContainer.getElementsByTagName("li"); 1001 var moreLi = menuContainer.querySelector(".showMore"); 1002 var moreBtn = moreLi.querySelector("h4"); 1003 1004 function reCount() { 1005 1006 var selectedMenuPositionWidth = 0; 1007 1008 for (var i = 0; i < innerMenuChildren.length; i++) { 1009 1010 var flag = false;
1011 1012 for (var j = 0; j < arrSelectors.length; j++) { 1013 if (innerMenuChildren[j].classList.contains(arrSelectors[i])) { 1014 flag = true; 1015 } 1016 } 1017 1018 if (!flag) { 1019 selectedMenuPositionWidth += innerMenuChildren[j].getBoundingClientRect().width; 1020 } 1021 1022 } 1023 1024 if (innerMenu.getBoundingClientRect().width - selectedMenuPositionWidth < menuContainer.getBoundingClientRect().width) { 1025 menuContainer.style.width = innerMenu.getBoundingClientRect().width - selectedMenuPositionWidth - moreBtn.getBoundingClientRect().width + "px"; 1026 } 1027 } 1028 1029 var doAdapt = function () { 1030 1031 for (var t = 0; t < allItems.length; t++) { 1032 allItems[t].classList.remove("none"); 1033 } 1034 1035 var stopWidth = moreBtn.getBoundingClientRect().width; 1036 var onlyMenuItemsWidth = 0; 1037 var hiddenItems = []; 1038 var primaryWidth = menuContainer.getBoundingClientRect().width; 1039 1040 for (var i = 0; i < menuItems.length; i++) { 1041 if (primaryWidth >= stopWidth + menuItems[i].getBoundingClientRect().width) { 1042 onlyMenuItemsWidth += menuItems[i].getBoundingClientRect().width; 1043 stopWidth += menuItems[i].getBoundingClientRect().width; 1044 } else { 1045 menuItems[i].classList.add("none"); 1046 hiddenItems.push(i); 1047 } 1048 } 1049 1050 if (!hiddenItems.length) { 1051 moreLi.classList.add("none"); 1052 menuContainer.classList.remove("showSecond"); 1053 } else { 1054 1055 for (var i = 0; i < secondMenuItems.length; i++) { 1056 if (hiddenItems.indexOf(i) < 0) { 1057 secondMenuItems[i].classList.add("none"); 1058 secondMenuItems[i].parentNode.removeChild(secondMenuItems[i]); 1059 } else { 1060 secondMenuItems[i].classList.remove('none'); 1061 } 1062 } 1063 } 1064 }; 1065 1066 reCount(); 1067 doAdapt(); 1068 1069 }; 1070 1071 return { 1072 infoBar: infoBar, 1073 moveElement: moveElement, 1074 curtainSubmenu: curtainSubmenu, 1075 stickyMenu: stickyMenu, 1076 collapseMenu: collapseMenu, 1077 hamburgerMenu: hamburgerMenu, 1078 turnTabs: turnTabs, 1079 slidingBox: slidingBox, 1080 counter: counter, 1081 addSpecialTag: addSpecialTag, 1082 joinBaners: joinBaners, 1083 fixedBox: fixedBox 1084 }; 1085})(); 1086 1087// maincore functions init 1088 1089$(document).ready(function () { 1090 //Tests 1091 1092 mainCore.collapseMenu(); 1093 1094 // // Menu 1095 1096 // mainCore.stickyMenu(); 1097 1098 // init top infobar 1099 mainCore.infoBar('fx-welcome', '', '#fff', '#282828'); 1100 1101 // init fixedbox 1102 mainCore.fixedBox(120, 'left', 'absolute', 'fx-fixedBox'); 1103 1104 // move elemets 1105 mainCore.moveElement('#fx-contact', '.login-bar', 'prepend'); 1106 mainCore.moveElement('#box_languages', '.login-bar', 'prepend'); 1107 if ($('#box_languages').length > 0) { 1108 $('#box_languages').click(function () { 1109 $(this).toggleClass('fx-active'); 1110 }); 1111 } 1112 1113 // init counter 1114 1115 if ($('.top.row #fx-mainCounter').length > 0) { 1116 mainCore.counter(); 1117 mainCore.moveElement('#fx-mainCounter', '.logo-bar', 'append', '', ''); 1118 } else if ($('body').hasClass('shop_product')) { 1119 mainCore.counter(); 1120 mainCore.moveElement('#fx-mainCounter', '#box_productfull .productimg+.f-grid-6', 'prepend'); 1121 } 1122 1123 // my additional JS 1124 1125 var fxParalax = $('#fx-paralax01'); 1126 1127 if (fxParalax.length > 0) { 1128 1129 // adds wrapper 1130 fxParalax.wrap("<div class='fx-paralax-wrap'></div>"); 1131 1132 var fxParalaxWrap = $('.fx-paralax-wrap'); 1133 var fxImg = fxParalax.find('.innerbox img'); 1134 var fxImgSrc = 'url(' + fxImg.attr('src') + ') no-repeat'; 1135 1136 fxParalaxWrap.css({ 1137 "background": fxImgSrc, 1138 "background-size": "cover", 1139 "background-attachment": "fixed" 1140 }); 1141 } 1142 1143 // box_articlelist 1144 1145 var fxBlog = $('#box_articlelist'); 1146 var fxNews = $('#fx-news'); 1147 1148 if (fxBlog.length > 0) { 1149 1150 fxNews.addClass('fx-active'); 1151 1152 $('#box_articlelist article').each(function () { 1153 1154 var fxImgWrap = '<div class="fx-img"></div>'; 1155 var fxImg = $(this).find('.article-image'); 1156 1157 $(this).prepend(fxImgWrap); 1158 1159 if (fxImg.attr('src') != null) { 1160 $(this).find('.fx-img').css('background-image', 'url(' + fxImg.attr('src') + ')'); 1161 } 1162 }) 1163 1164 if (fxNews.length > 0) { 1165 fxNews.append(fxBlog.detach()); 1166 } 1167 } 1168 1169 // footer change 1170 1171 var fxFooter = $('#fx-footer'); 1172 var fxLogo = $('header .logo-bar .link-logo'); 1173 1174 if (fxFooter.length > 0) { 1175 $('footer').addClass('fx-foot');
1176 fxFooter.insertBefore($('footer .innerfooter > ul.overall')); 1177 fxFooter.prepend(fxLogo.clone()); 1178 } 1179 1180 // menu hamburger 1181 1182 var fxMenu = $('.menu'); 1183 fxMenu.addClass('fx-hamburger'); 1184 1185 $('.menu').prepend('<span class="fx-menu-btn"><span class="fx-icon"></span></span>'); 1186 $('.menu .innermenu').prepend('<span class="fx-title">Menu<span class="fx-menu-btn fx-close">x</span></span>'); 1187 $('.menu .innermenu').prepend($('header .login-bar ul.links').clone()); 1188 1189 var fxMobileViewport = window.matchMedia("(max-width: 768px)"); 1190 1191 if (fxMobileViewport.matches) { 1192 fxMenu.addClass('fx-hamburger'); 1193 $('.menu .innermenu').prepend($('header .logo-bar .search__container').detach()); 1194 } else { 1195 fxMenu.removeClass('fx-hamburger'); 1196 $('.menu .innermenu .search__container').insertAfter($('.basket-contain')); 1197 } 1198 fxMobileViewport.addListener(function (mq) { 1199 if (fxMobileViewport.matches) { 1200 fxMenu.addClass('fx-hamburger'); 1201 $('.menu .innermenu').prepend($('header .logo-bar .search__container').detach()); 1202 } else { 1203 fxMenu.removeClass('fx-hamburger'); 1204 $('.menu .innermenu .search__container').insertAfter($('.basket-contain')); 1205 } 1206 }); 1207 1208 var fxHamburger = $('.menu .fx-menu-btn'); 1209 1210 fxHamburger.click(function () { 1211 $('.menu.fx-hamburger').toggleClass('fx-active'); 1212 $('.menu.fx-hamburger .innermenu').toggleClass('fx-active'); 1213 $(this).find('.fx-icon').toggleClass('fx-active'); 1214 }); 1215 1216 $('.menu.fx-hamburger .innermenu ul li.parent h4').click(function () { 1217 $(this).siblings().children('ul').slideToggle(); 1218 }); 1219 $('#fx-addbanners1').wrapInner('<div class="fx-wrap"></div>'); 1220 $('#fx-addbanners2').wrapInner('<div class="fx-wrap"></div>'); 1221}); 1222 1223/* $(document).ready(function () { 1224 var $module = $("#newsletter_popup"); 1225 if ($module.length) { 1226 var $trigger = $("#newsletter_trigger"); 1227 var $close_btn = $module.find(".close_btn"); 1228 var triggerInit = function () { 1229 $trigger.removeClass("none"); 1230 $trigger.on("click", function () { 1231 $module.removeClass("none"); 1232 setTimeout(function () { $module.addClass("is_visible"); }, 300); 1233 }) 1234 } 1235 if (Cookies.get("newsletter_popup") === undefined) { 1236 Cookies.set("newsletter_popup", "visited"); 1237 setTimeout(function () { 1238 $module.removeClass("none"); 1239 setTimeout(function () { 1240 $module.addClass("is_visible"); 1241 $trigger.length && triggerInit(); 1242 }, 300) 1243 }, 3000) 1244 } else { 1245 $trigger.length && triggerInit(); 1246 } 1247 if ($close_btn.length) { 1248 $close_btn.on("click", function () { 1249 $module.removeClass("is_visible"); 1250 setTimeout(function () { $module.addClass("none"); }, 300); 1251 }) 1252 } 1253 } 1254}) 1255*/ 1256 1257$(document).ready(function () { 1258 if ($(".box#marki").length && $(window).innerWidth() > 480) { 1259 $(".box#marki").css("margin-left", "-" + (($(window).innerWidth() - $(".box#marki").outerWidth()) / 2) + "px"); 1260 $(".box#marki").css("width", $(window).innerWidth() + "px"); 1261 } 1262 if ($(".box#marki").length) { 1263 $(".box#marki .owl-carousel").owlCarousel({ 1264 loop: true, 1265 nav: true, 1266 dots: false, 1267 margin: 30, 1268 autoplay: true, 1269 responsive: { 1270 0: { 1271 items:2 1272 }, 1273 768: { 1274 items: 3 1275 }, 1276 1201: { 1277 items: 5 1278 } 1279 } 1280 }) 1281 } 1282}) 1283/* 1284$(document).ready(function () { 1285 var $desc = $(".categorydesc.row"); 1286 if ($desc.length) { 1287 if ($desc.height() > 100) { 1288 var span_text = { 1289 toggle: { 1290 "pl_PL": "Pokaż caÅy opis", 1291 "en_US": "Show all" 1292 }, 1293 toggled: { 1294 "pl_PL": "ZwiÅ opis", 1295 "en_US": "Toggle" 1296 } 1297 }; 1298 var seo_text_default_height = $desc.outerHeight(); 1299 $desc.append($("<div/>", { 1300 "class": "button_wrapper" 1301 }).append($("<span/>", { 1302 "html": span_text.toggle[Shop.lang.name] + '<i class="fa fa-angle-down" aria-hidden="true"></i>', 1303 }).on("click", function () { 1304 if ($desc.hasClass("is_toggled")) { 1305 $desc.css("height", "100%"); 1306 $desc.find(".button_wrapper span").html(span_text.toggled[Shop.lang.name] + '<i class="fa fa-angle-down" aria-hidden="true"></i>'); 1307 } else { 1308 $desc.css("height", "100px"); 1309 $desc.find(".button_wrapper span").html(span_text.toggle[Shop.lang.name] + '<i class="fa fa-angle-down" aria-hidden="true"></i>'); 1310 } 1311 $desc.toggleClass("is_toggled"); 1312 }))); 1313 $desc.addClass("is_toggled"); 1314 } 1315 } 1316}) 1317*/ 1318$(document).ready(function () { 1319 var $menu = $('.menu.row'); 1320 if ($menu.length && $(window).innerWidth() > 979) { 1321 new $.Zebra_Pin($menu); 1322 } 1323}) 1324 1325$(document).ready(function () { 1326 var $button = $("#triggerCompositionPopup"); 1327 if ($button.length) { 1328 $button.on("click", function () { 1329 frontAPI.getPage(function (page) { 1330 if (page.error_description === undefined) { 1331 this.modal = new Shop.Modal(); 1332 this.modal.options.header = $('<span />', { "text": page.name }); 1333 this.modal.options.content = $("<div/>", { 1334 "class": "composition-popup-content", 1335 "html": page.content 1336 }); 1337 this.modal.options.footer = ""; 1338 this.modal.createModal(); 1339 this.modal.reposition(); 1340 this.modal.callbacks.close = function () { 1341 setTimeout(this.destroyModal.bind(this), 600); 1342 } 1343 } 1344 }, { 1345 lang: Shop.lang.name, 1346 id: parseInt($button.attr("data-id")) 1347 }); 1348 }) 1349 } 1350}) 1351 1352$(document).ready(function () { 1353 if (typeof window.attributes_to_hide !== "undefined" && typeof window.attributes_count !== "undefined") { 1354 if (window.attributes_to_hide === window.attributes_count) { 1355 var $module = $(".product-tab[data-tab='box_productdata']");
1356 var $nav = $("li.box_productdata"); 1357 $module.length && $module.remove(); 1358 $nav.length && $nav.remove(); 1359 } 1360 } 1361}) 1362 1363$(document).ready(function () { 1364 if ($("body").hasClass("shop_basket")) { 1365 var $cartOptions = $("#cart-options"); 1366 var $recalcButton = $("#recalc button"); 1367 var $basketProducts = $("#box_basketlist .productlist tbody tr"); 1368 if ($cartOptions.length && $recalcButton.length && $basketProducts.length && $(window).innerWidth() < 979) { 1369 $cartOptions.before($recalcButton.hide().addClass("recalc-button").detach()); 1370 $.each($basketProducts, function (k, v) { 1371 $(v).find(".quantity .shaded_inputwrap input").on("input", function () { 1372 !$recalcButton.is(":visible") && $recalcButton.show(); 1373 }) 1374 }) 1375 } 1376 } 1377}) 1378 1379 1380$(document).ready(function () { 1381 1382 var $instagramModule = $("#mamezi_instagram"); 1383 1384 if ($instagramModule.length > 0) { 1385 1386 var $postsContainer = $instagramModule.find(".insta_posts"); 1387 1388 if ($postsContainer.length > 0) { 1389 1390 $.ajax({ 1391 url: "https://cdn.insta.appstore.mamezi.pl/mojaazja.json", 1392 dataType: "json", 1393 success: function (data) { 1394 if (data.item.length === 0) { 1395 return false; 1396 } else { 1397 $.each(data.item, function (k, v) { 1398 $postsContainer.append('<div class="insta_post"><a target="_blank" rel="noopener" href="https://www.instagram.com/p/' + v["shortcode"] + '/"><img src="' + v["image"] + '" /></a></div>'); 1399 }) 1400 $postsContainer.addClass("owl-carousel"); 1401 $postsContainer.owlCarousel({ 1402 loop: true, 1403 nav: true, 1404 dots: false, 1405 autoplay: true, 1406 responsive: { 1407 0: { 1408 items: 1, 1409 margin: 0 1410 }, 1411 481: { 1412 items: 2, 1413 margin: 24 1414 }, 1415 768: { 1416 items: 3, 1417 margin: 24 1418 }, 1419 980: { 1420 items: 4, 1421 margin: 24 1422 } 1423 } 1424 }); 1425 } 1426 }, 1427 error: function () { 1428 console.error("BÅÄ d pobierania JSON data. Sprawdź link."); 1429 } 1430 }); 1431 1432 } 1433 1434 } 1435 1436});
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.