ultimatesizechart.com
Open in
urlscan Pro
2a06:98c1:3121::c
Public Scan
Submitted URL: http://ultimatesizechart.com/sizechart/js/sd_sizechart.js?shop=adanola.myshopify.com
Effective URL: https://ultimatesizechart.com/sizechart/js/sd_sizechart.js?shop=adanola.myshopify.com
Submission: On August 28 via api from US — Scanned from NL
Effective URL: https://ultimatesizechart.com/sizechart/js/sd_sizechart.js?shop=adanola.myshopify.com
Submission: On August 28 via api from US — Scanned from NL
Form analysis
0 forms found in the DOMText Content
!function(t){var e={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0},onAutoChange:function(){return!0}};t.fn.bxSlider=function(n){if(0===this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var s={},o=this,r=t(window).width(),a=t(window).height();if(!t(o).data("bxSlider")){var l=function(){t(o).data("bxSlider")||(s.settings=t.extend({},e,n),s.settings.slideWidth=parseInt(s.settings.slideWidth),s.children=o.children(s.settings.slideSelector),s.children.length<s.settings.minSlides&&(s.settings.minSlides=s.children.length),s.children.length<s.settings.maxSlides&&(s.settings.maxSlides=s.children.length),s.settings.randomStart&&(s.settings.startSlide=Math.floor(Math.random()*s.children.length)),s.active={index:s.settings.startSlide},s.carousel=s.settings.minSlides>1||s.settings.maxSlides>1,s.carousel&&(s.settings.preloadImages="all"),s.minThreshold=s.settings.minSlides*s.settings.slideWidth+(s.settings.minSlides-1)*s.settings.slideMargin,s.maxThreshold=s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin,s.working=!1,s.controls={},s.interval=null,s.animProp="vertical"===s.settings.mode?"top":"left",s.usingCSS=s.settings.useCSS&&"fade"!==s.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return s.cssPrefix=e[i].replace("Perspective","").toLowerCase(),s.animProp="-"+s.cssPrefix+"-transform",!0;return!1}(),"vertical"===s.settings.mode&&(s.settings.maxSlides=s.settings.minSlides),o.data("origStyle",o.attr("style")),o.children(s.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),d())},d=function(){var e=s.children.eq(s.settings.startSlide);o.wrap('<div class="'+s.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),s.viewport=o.parent(),s.settings.ariaLive&&!s.settings.ticker&&s.viewport.attr("aria-live","polite"),s.loader=t('<div class="bx-loading" />'),s.viewport.prepend(s.loader),o.css({width:"horizontal"===s.settings.mode?1e3*s.children.length+215+"%":"auto",position:"relative"}),s.usingCSS&&s.settings.easing?o.css("-"+s.cssPrefix+"-transition-timing-function",s.settings.easing):s.settings.easing||(s.settings.easing="swing"),s.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),s.viewport.parent().css({maxWidth:u()}),s.children.css({float:"horizontal"===s.settings.mode?"left":"none",listStyle:"none",position:"relative"}),s.children.css("width",h()),"horizontal"===s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginRight",s.settings.slideMargin),"vertical"===s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginBottom",s.settings.slideMargin),"fade"===s.settings.mode&&(s.children.css({position:"absolute",zIndex:0,display:"none"}),s.children.eq(s.settings.startSlide).css({zIndex:s.settings.slideZIndex,display:"block"})),s.controls.el=t('<div class="bx-controls" />'),s.settings.captions&&P(),s.active.last=s.settings.startSlide===f()-1,s.settings.video&&o.fitVids(),("all"===s.settings.preloadImages||s.settings.ticker)&&(e=s.children),s.settings.ticker?s.settings.pager=!1:(s.settings.controls&&C(),s.settings.auto&&s.settings.autoControls&&T(),s.settings.pager&&w(),(s.settings.controls||s.settings.autoControls||s.settings.pager)&&s.viewport.after(s.controls.el)),c(e,g)},c=function(e,i){var n=e.find('img:not([src=""]), iframe').length,s=0;0!==n?e.find('img:not([src=""]), iframe').each(function(){t(this).one("load error",function(){++s===n&&i()}).each(function(){(this.complete||""==this.src)&&t(this).trigger("load")})}):i()},g=function(){if(s.settings.infiniteLoop&&"fade"!==s.settings.mode&&!s.settings.ticker){var e="vertical"===s.settings.mode?s.settings.minSlides:s.settings.maxSlides,i=s.children.slice(0,e).clone(!0).addClass("bx-clone"),n=s.children.slice(-e).clone(!0).addClass("bx-clone");s.settings.ariaHidden&&(i.attr("aria-hidden",!0),n.attr("aria-hidden",!0)),o.append(i).prepend(n)}s.loader.remove(),m(),"vertical"===s.settings.mode&&(s.settings.adaptiveHeight=!0),s.viewport.height(p()),o.redrawSlider(),s.settings.onSliderLoad.call(o,s.active.index),s.initialized=!0,s.settings.responsive&&t(window).bind("resize",U),s.settings.auto&&s.settings.autoStart&&(f()>1||s.settings.autoSlideForOnePage)&&L(),s.settings.ticker&&O(),s.settings.pager&&I(s.settings.startSlide),s.settings.controls&&D(),s.settings.touchEnabled&&!s.settings.ticker&&Y(),s.settings.keyboardEnabled&&!s.settings.ticker&&t(document).keydown(X)},p=function(){var e=0,n=t();if("vertical"===s.settings.mode||s.settings.adaptiveHeight)if(s.carousel){var o=1===s.settings.moveSlides?s.active.index:s.active.index*x();for(n=s.children.eq(o),i=1;i<=s.settings.maxSlides-1;i++)n=o+i>=s.children.length?n.add(s.children.eq(i-1)):n.add(s.children.eq(o+i))}else n=s.children.eq(s.active.index);else n=s.children;return"vertical"===s.settings.mode?(n.each(function(i){e+=t(this).outerHeight()}),s.settings.slideMargin>0&&(e+=s.settings.slideMargin*(s.settings.minSlides-1))):e=Math.max.apply(Math,n.map(function(){return t(this).outerHeight(!1)}).get()),"border-box"===s.viewport.css("box-sizing")?e+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))+parseFloat(s.viewport.css("border-top-width"))+parseFloat(s.viewport.css("border-bottom-width")):"padding-box"===s.viewport.css("box-sizing")&&(e+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))),e},u=function(){var t="100%";return s.settings.slideWidth>0&&(t="horizontal"===s.settings.mode?s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin:s.settings.slideWidth),t},h=function(){var t=s.settings.slideWidth,e=s.viewport.width();if(0===s.settings.slideWidth||s.settings.slideWidth>e&&!s.carousel||"vertical"===s.settings.mode)t=e;else if(s.settings.maxSlides>1&&"horizontal"===s.settings.mode){if(e>s.maxThreshold)return t;e<s.minThreshold?t=(e-s.settings.slideMargin*(s.settings.minSlides-1))/s.settings.minSlides:s.settings.shrinkItems&&(t=Math.floor((e+s.settings.slideMargin)/Math.ceil((e+s.settings.slideMargin)/(t+s.settings.slideMargin))-s.settings.slideMargin))}return t},v=function(){var t=1,e=null;return"horizontal"===s.settings.mode&&s.settings.slideWidth>0?s.viewport.width()<s.minThreshold?t=s.settings.minSlides:s.viewport.width()>s.maxThreshold?t=s.settings.maxSlides:(e=s.children.first().width()+s.settings.slideMargin,t=Math.floor((s.viewport.width()+s.settings.slideMargin)/e)||1):"vertical"===s.settings.mode&&(t=s.settings.minSlides),t},f=function(){var t=0,e=0,i=0;if(s.settings.moveSlides>0){if(!s.settings.infiniteLoop){for(;e<s.children.length;)++t,e=i+v(),i+=s.settings.moveSlides<=v()?s.settings.moveSlides:v();return i}t=Math.ceil(s.children.length/x())}else t=Math.ceil(s.children.length/v());return t},x=function(){return s.settings.moveSlides>0&&s.settings.moveSlides<=v()?s.settings.moveSlides:v()},m=function(){var t,e,i;s.children.length>s.settings.maxSlides&&s.active.last&&!s.settings.infiniteLoop?"horizontal"===s.settings.mode?(t=(e=s.children.last()).position(),S(-(t.left-(s.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===s.settings.mode&&(i=s.children.length-s.settings.minSlides,t=s.children.eq(i).position(),S(-t.top,"reset",0)):(t=s.children.eq(s.active.index*x()).position(),s.active.index===f()-1&&(s.active.last=!0),void 0!==t&&("horizontal"===s.settings.mode?S(-t.left,"reset",0):"vertical"===s.settings.mode&&S(-t.top,"reset",0)))},S=function(e,i,n,r){var a,l;s.usingCSS?(l="vertical"===s.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)",o.css("-"+s.cssPrefix+"-transition-duration",n/1e3+"s"),"slide"===i?(o.css(s.animProp,l),0!==n?o.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){t(e.target).is(o)&&(o.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),A())}):A()):"reset"===i?o.css(s.animProp,l):"ticker"===i&&(o.css("-"+s.cssPrefix+"-transition-timing-function","linear"),o.css(s.animProp,l),0!==n?o.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){t(e.target).is(o)&&(o.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),S(r.resetValue,"reset",0),F())}):(S(r.resetValue,"reset",0),F()))):((a={})[s.animProp]=e,"slide"===i?o.animate(a,n,s.settings.easing,function(){A()}):"reset"===i?o.css(s.animProp,e):"ticker"===i&&o.animate(a,n,"linear",function(){S(r.resetValue,"reset",0),F()}))},b=function(){for(var e="",i="",n=f(),o=0;o<n;o++)i="",s.settings.buildPager&&t.isFunction(s.settings.buildPager)||s.settings.pagerCustom?(i=s.settings.buildPager(o),s.pagerEl.addClass("bx-custom-pager")):(i=o+1,s.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+o+'" class="bx-pager-link">'+i+"</a></div>";s.pagerEl.html(e)},w=function(){s.settings.pagerCustom?s.pagerEl=t(s.settings.pagerCustom):(s.pagerEl=t('<div class="bx-pager" />'),s.settings.pagerSelector?t(s.settings.pagerSelector).html(s.pagerEl):s.controls.el.addClass("bx-has-pager").append(s.pagerEl),b()),s.pagerEl.on("click touchend","a",z)},C=function(){s.controls.next=t('<a class="bx-next" href="">'+s.settings.nextText+"</a>"),s.controls.prev=t('<a class="bx-prev" href="">'+s.settings.prevText+"</a>"),s.controls.next.bind("click touchend",k),s.controls.prev.bind("click touchend",E),s.settings.nextSelector&&t(s.settings.nextSelector).append(s.controls.next),s.settings.prevSelector&&t(s.settings.prevSelector).append(s.controls.prev),s.settings.nextSelector||s.settings.prevSelector||(s.controls.directionEl=t('<div class="bx-controls-direction" />'),s.controls.directionEl.append(s.controls.prev).append(s.controls.next),s.controls.el.addClass("bx-has-controls-direction").append(s.controls.directionEl))},T=function(){s.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+s.settings.startText+"</a></div>"),s.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+s.settings.stopText+"</a></div>"),s.controls.autoEl=t('<div class="bx-controls-auto" />'),s.controls.autoEl.on("click",".bx-start",M),s.controls.autoEl.on("click",".bx-stop",y),s.settings.autoControlsCombine?s.controls.autoEl.append(s.controls.start):s.controls.autoEl.append(s.controls.start).append(s.controls.stop),s.settings.autoControlsSelector?t(s.settings.autoControlsSelector).html(s.controls.autoEl):s.controls.el.addClass("bx-has-controls-auto").append(s.controls.autoEl),q(s.settings.autoStart?"stop":"start")},P=function(){s.children.each(function(e){var i=t(this).find("img:first").attr("title");void 0!==i&&(""+i).length&&t(this).append('<div class="bx-caption"><span>'+i+"</span></div>")})},k=function(t){t.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&s.settings.stopAutoOnClick&&o.stopAuto(),o.goToNextSlide())},E=function(t){t.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&s.settings.stopAutoOnClick&&o.stopAuto(),o.goToPrevSlide())},M=function(t){o.startAuto(),t.preventDefault()},y=function(t){o.stopAuto(),t.preventDefault()},z=function(e){var i,n;e.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&s.settings.stopAutoOnClick&&o.stopAuto(),void 0!==(i=t(e.currentTarget)).attr("data-slide-index")&&(n=parseInt(i.attr("data-slide-index")))!==s.active.index&&o.goToSlide(n))},I=function(e){var i=s.children.length;if("short"===s.settings.pagerType)return s.settings.maxSlides>1&&(i=Math.ceil(s.children.length/s.settings.maxSlides)),void s.pagerEl.html(e+1+s.settings.pagerShortSeparator+i);s.pagerEl.find("a").removeClass("active"),s.pagerEl.each(function(i,n){t(n).find("a").eq(e).addClass("active")})},A=function(){if(s.settings.infiniteLoop){var t="";0===s.active.index?t=s.children.eq(0).position():s.active.index===f()-1&&s.carousel?t=s.children.eq((f()-1)*x()).position():s.active.index===s.children.length-1&&(t=s.children.eq(s.children.length-1).position()),t&&("horizontal"===s.settings.mode?S(-t.left,"reset",0):"vertical"===s.settings.mode&&S(-t.top,"reset",0))}s.working=!1,s.settings.onSlideAfter.call(o,s.children.eq(s.active.index),s.oldIndex,s.active.index)},q=function(t){s.settings.autoControlsCombine?s.controls.autoEl.html(s.controls[t]):(s.controls.autoEl.find("a").removeClass("active"),s.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},D=function(){1===f()?(s.controls.prev.addClass("disabled"),s.controls.next.addClass("disabled")):!s.settings.infiniteLoop&&s.settings.hideControlOnEnd&&(0===s.active.index?(s.controls.prev.addClass("disabled"),s.controls.next.removeClass("disabled")):s.active.index===f()-1?(s.controls.next.addClass("disabled"),s.controls.prev.removeClass("disabled")):(s.controls.prev.removeClass("disabled"),s.controls.next.removeClass("disabled")))},H=function(){o.startAuto()},W=function(){o.stopAuto()},L=function(){if(s.settings.autoDelay>0)setTimeout(o.startAuto,s.settings.autoDelay);else o.startAuto(),t(window).focus(H).blur(W);s.settings.autoHover&&o.hover(function(){s.interval&&(o.stopAuto(!0),s.autoPaused=!0)},function(){s.autoPaused&&(o.startAuto(!0),s.autoPaused=null)})},O=function(){var e,i,n,r,a,l,d,c,g=0;"next"===s.settings.autoDirection?o.append(s.children.clone().addClass("bx-clone")):(o.prepend(s.children.clone().addClass("bx-clone")),e=s.children.first().position(),g="horizontal"===s.settings.mode?-e.left:-e.top),S(g,"reset",0),s.settings.pager=!1,s.settings.controls=!1,s.settings.autoControls=!1,s.settings.tickerHover&&(s.usingCSS?(r="horizontal"===s.settings.mode?4:5,s.viewport.hover(function(){i=o.css("-"+s.cssPrefix+"-transform"),n=parseFloat(i.split(",")[r]),S(n,"reset",0)},function(){c=0,s.children.each(function(e){c+="horizontal"===s.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)}),a=s.settings.speed/c,l="horizontal"===s.settings.mode?"left":"top",d=a*(c-Math.abs(parseInt(n))),F(d)})):s.viewport.hover(function(){o.stop()},function(){c=0,s.children.each(function(e){c+="horizontal"===s.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)}),a=s.settings.speed/c,l="horizontal"===s.settings.mode?"left":"top",d=a*(c-Math.abs(parseInt(o.css(l)))),F(d)})),F()},F=function(t){var e,i,n=t||s.settings.speed,r={left:0,top:0},a={left:0,top:0};"next"===s.settings.autoDirection?r=o.find(".bx-clone").first().position():a=s.children.first().position(),e="horizontal"===s.settings.mode?-r.left:-r.top,i="horizontal"===s.settings.mode?-a.left:-a.top,S(e,"ticker",n,{resetValue:i})},N=function(e){var i=t(window),n={top:i.scrollTop(),left:i.scrollLeft()},s=e.offset();return n.right=n.left+i.width(),n.bottom=n.top+i.height(),s.right=s.left+e.outerWidth(),s.bottom=s.top+e.outerHeight(),!(n.right<s.left||n.left>s.right||n.bottom<s.top||n.top>s.bottom)},X=function(t){var e=document.activeElement.tagName.toLowerCase();if(null==new RegExp(e,["i"]).exec("input|textarea")&&N(o)){if(39===t.keyCode)return k(t),!1;if(37===t.keyCode)return E(t),!1}},Y=function(){s.touch={start:{x:0,y:0},end:{x:0,y:0}},s.viewport.bind("touchstart MSPointerDown pointerdown",V),s.viewport.on("click",".bxslider a",function(t){s.viewport.hasClass("click-disabled")&&(t.preventDefault(),s.viewport.removeClass("click-disabled"))})},V=function(t){if(s.controls.el.addClass("disabled"),s.working)t.preventDefault(),s.controls.el.removeClass("disabled");else{s.touch.originalPos=o.position();var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e];s.touch.start.x=i[0].pageX,s.touch.start.y=i[0].pageY,s.viewport.get(0).setPointerCapture&&(s.pointerId=e.pointerId,s.viewport.get(0).setPointerCapture(s.pointerId)),s.viewport.bind("touchmove MSPointerMove pointermove",Z),s.viewport.bind("touchend MSPointerUp pointerup",B),s.viewport.bind("MSPointerCancel pointercancel",R)}},R=function(t){S(s.touch.originalPos.left,"reset",0),s.controls.el.removeClass("disabled"),s.viewport.unbind("MSPointerCancel pointercancel",R),s.viewport.unbind("touchmove MSPointerMove pointermove",Z),s.viewport.unbind("touchend MSPointerUp pointerup",B),s.viewport.get(0).releasePointerCapture&&s.viewport.get(0).releasePointerCapture(s.pointerId)},Z=function(t){var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],n=Math.abs(i[0].pageX-s.touch.start.x),o=Math.abs(i[0].pageY-s.touch.start.y),r=0,a=0;3*n>o&&s.settings.preventDefaultSwipeX?t.preventDefault():3*o>n&&s.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!==s.settings.mode&&s.settings.oneToOneTouch&&("horizontal"===s.settings.mode?(a=i[0].pageX-s.touch.start.x,r=s.touch.originalPos.left+a):(a=i[0].pageY-s.touch.start.y,r=s.touch.originalPos.top+a),S(r,"reset",0))},B=function(t){s.viewport.unbind("touchmove MSPointerMove pointermove",Z),s.controls.el.removeClass("disabled");var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],n=0,r=0;s.touch.end.x=i[0].pageX,s.touch.end.y=i[0].pageY,"fade"===s.settings.mode?(r=Math.abs(s.touch.start.x-s.touch.end.x))>=s.settings.swipeThreshold&&(s.touch.start.x>s.touch.end.x?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):("horizontal"===s.settings.mode?(r=s.touch.end.x-s.touch.start.x,n=s.touch.originalPos.left):(r=s.touch.end.y-s.touch.start.y,n=s.touch.originalPos.top),!s.settings.infiniteLoop&&(0===s.active.index&&r>0||s.active.last&&r<0)?S(n,"reset",200):Math.abs(r)>=s.settings.swipeThreshold?(r<0?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):S(n,"reset",200)),s.viewport.unbind("touchend MSPointerUp pointerup",B),s.viewport.get(0).releasePointerCapture&&s.viewport.get(0).releasePointerCapture(s.pointerId)},U=function(e){if(s.initialized)if(s.working)window.setTimeout(U,10);else{var i=t(window).width(),n=t(window).height();r===i&&a===n||(r=i,a=n,o.redrawSlider(),s.settings.onSliderResize.call(o,s.active.index))}},j=function(t){var e=v();s.settings.ariaHidden&&!s.settings.ticker&&(s.children.attr("aria-hidden","true"),s.children.slice(t,t+e).attr("aria-hidden","false"))},Q=function(t){return t<0?s.settings.infiniteLoop?f()-1:s.active.index:t>=f()?s.settings.infiniteLoop?0:s.active.index:t};return o.goToSlide=function(e,i){var n,r,a,l,d=!0,c=0,g={left:0,top:0},u=null;if(s.oldIndex=s.active.index,s.active.index=Q(e),!s.working&&s.active.index!==s.oldIndex){if(s.working=!0,void 0!==(d=s.settings.onSlideBefore.call(o,s.children.eq(s.active.index),s.oldIndex,s.active.index))&&!d)return s.active.index=s.oldIndex,void(s.working=!1);"next"===i?s.settings.onSlideNext.call(o,s.children.eq(s.active.index),s.oldIndex,s.active.index)||(d=!1):"prev"===i&&(s.settings.onSlidePrev.call(o,s.children.eq(s.active.index),s.oldIndex,s.active.index)||(d=!1)),s.active.last=s.active.index>=f()-1,(s.settings.pager||s.settings.pagerCustom)&&I(s.active.index),s.settings.controls&&D(),"fade"===s.settings.mode?(s.settings.adaptiveHeight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed),s.children.filter(":visible").fadeOut(s.settings.speed).css({zIndex:0}),s.children.eq(s.active.index).css("zIndex",s.settings.slideZIndex+1).fadeIn(s.settings.speed,function(){t(this).css("zIndex",s.settings.slideZIndex),A()})):(s.settings.adaptiveHeight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed),!s.settings.infiniteLoop&&s.carousel&&s.active.last?"horizontal"===s.settings.mode?(g=(u=s.children.eq(s.children.length-1)).position(),c=s.viewport.width()-u.outerWidth()):(n=s.children.length-s.settings.minSlides,g=s.children.eq(n).position()):s.carousel&&s.active.last&&"prev"===i?(r=1===s.settings.moveSlides?s.settings.maxSlides-x():(f()-1)*x()-(s.children.length-s.settings.maxSlides),g=(u=o.children(".bx-clone").eq(r)).position()):"next"===i&&0===s.active.index?(g=o.find("> .bx-clone").eq(s.settings.maxSlides).position(),s.active.last=!1):e>=0&&(l=e*parseInt(x()),g=s.children.eq(l).position()),void 0!==g&&(a="horizontal"===s.settings.mode?-(g.left-c):-g.top,S(a,"slide",s.settings.speed)),s.working=!1),s.settings.ariaHidden&&j(s.active.index*x())}},o.goToNextSlide=function(){if((s.settings.infiniteLoop||!s.active.last)&&1!=s.working){var t=parseInt(s.active.index)+1;o.goToSlide(t,"next")}},o.goToPrevSlide=function(){if((s.settings.infiniteLoop||0!==s.active.index)&&1!=s.working){var t=parseInt(s.active.index)-1;o.goToSlide(t,"prev")}},o.startAuto=function(t){s.interval||(s.interval=setInterval(function(){"next"===s.settings.autoDirection?o.goToNextSlide():o.goToPrevSlide()},s.settings.pause),s.settings.onAutoChange.call(o,!0),s.settings.autoControls&&!0!==t&&q("stop"))},o.stopAuto=function(t){s.interval&&(clearInterval(s.interval),s.interval=null,s.settings.onAutoChange.call(o,!1),s.settings.autoControls&&!0!==t&&q("start"))},o.getCurrentSlide=function(){return s.active.index},o.getCurrentSlideElement=function(){return s.children.eq(s.active.index)},o.getSlideElement=function(t){return s.children.eq(t)},o.getSlideCount=function(){return s.children.length},o.isWorking=function(){return s.working},o.redrawSlider=function(){s.children.add(o.find(".bx-clone")).outerWidth(h()),s.viewport.css("height",p()),s.settings.ticker||m(),s.active.last&&(s.active.index=f()-1),s.active.index>=f()&&(s.active.last=!0),s.settings.pager&&!s.settings.pagerCustom&&(b(),I(s.active.index)),s.settings.ariaHidden&&j(s.active.index*x())},o.destroySlider=function(){s.initialized&&(s.initialized=!1,t(".bx-clone",this).remove(),s.children.each(function(){void 0!==t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!==t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),s.controls.el&&s.controls.el.remove(),s.controls.next&&s.controls.next.remove(),s.controls.prev&&s.controls.prev.remove(),s.pagerEl&&s.settings.controls&&!s.settings.pagerCustom&&s.pagerEl.remove(),t(".bx-caption",this).remove(),s.controls.autoEl&&s.controls.autoEl.remove(),clearInterval(s.interval),s.settings.responsive&&t(window).unbind("resize",U),s.settings.keyboardEnabled&&t(document).unbind("keydown",X),t(this).removeData("bxSlider"),t(window).off("blur",W).off("focus",H))},o.reloadSlider=function(e){void 0!==e&&(n=e),o.destroySlider(),l(),t(o).data("bxSlider",this)},l(),t(o).data("bxSlider",this),this}}}(jQuery); !(function () { console.log(Shopify.shop); var t = window.ShopifyAnalytics.meta.page.pageType; if ("product" == t) { $(document).on("click", ".sd_fixsizeicon", function () { $(".Sd_sizechartmodel").fadeOut(), setTimeout(function () { $(window).width() < 767 ? jQuery(".sd_fixsizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, slideWidth: 250, infiniteLoop: !0, minSlides: 1, speed: 800, responsive: !0, adaptiveHeight: !0, adaptiveHeightSpeed: 500 }) : jQuery(".sd_fixsizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, infiniteLoop: !0, slideWidth: 500, minSlides: 1, maxSlides: 1, speed: 800, responsive: !0, pager: !1, adaptiveHeight: !0, adaptiveHeightSpeed: 500, }); }, 550), $(".sd_fixsizechart").toggleClass("sd_fixsizeactive"), $("body").toggleClass("sd_activefilter"), $(".sd_fixsizechart").hasClass("sd_fixsizeactive") ? ($(".sd_fixsizechart").css("visibility", "hidden"), $(".sd_size-chart").fadeIn("slow"), $(".sd_size-chart-items").css("right", "0%"), $("body").css("overflow", "hidden"), $(window).width() < 767 && $("body").css("position", "fixed"), $(document).on("click", "body", function () { $(".sd_fixsizechart").css("visibility", "visible"), $(".sd_fixsizechart").removeClass("sd_fixsizeactive"), $("body").removeClass("sd_activefilter"), $(".sd_size-chart").fadeOut("slow"), $(".sd_size-chart-items").css("right", "-100%"), $("body").css("overflow", "auto"), $("body").css("overflow-x", "hidden"), $(window).width() < 767 && $("body").css({ position: "relative" }); })) : ($(".sd_fixsizechart").css("visibility", "visible"), $(".sd_size-chart").fadeOut("slow"), $(".sd_size-chart-items").css("right", "-100%"), $("body").css("overflow", "auto"), $("body").css("overflow-x", "hidden"), $(window).width() < 767 && $("body").css({ position: "relative" })), $(window).width() < 767 && (($.fn.hasScrollBar = function () { $(".Sd_sizechartmodel2 .main-chart-table").find("div").hasClass("size-box-info") ? 1 == $(this)[0].scrollWidth > this.innerWidth() || $(".sd_fixminihover").append("<style>.Sd_popfirst_panel::after{display:none;}.size-box-info::before{display:none;}</style>") : $(".sd_fixminihover").append("<style>.Sd_popfirst_panel::after{display:none;}.size-box-info::before{display:none;}</style>"); }), setTimeout(function () { $(".Sd_sizechartmodel2 .size-box-info").hasScrollBar(); }, 500)); }), $(document).on("click", ".sd_size-chart-left, .sd_fixclose", function () { $(".sd_fixsizechart").removeClass("sd_fixsizeactive"), $("body").removeClass("sd_activefilter"), $(".sd_fixsizechart").css("visibility", "visible"), $(".sd_size-chart").fadeOut("slow"), $(".sd_size-chart-items").css("right", "-100%"), $("body").css("overflow", "auto"), $("body").css({ "overflow-x": "hidden" }), $(window).width() < 767 && $("body").css({ position: "relative" }); }), $("head").append('<link rel="stylesheet" href="https://ultimatesizechart.com/sizechart/css/sd_custompop.css" type="text/css" />'), $("head").append('<link href="https://ultimatesizechart.com/sizechart/css/jquery.bxslider.css" rel="stylesheet" />'), $(window).width() < 767 ? jQuery(".sizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, slideWidth: 300, infiniteLoop: !0, minSlides: 1, speed: 800, responsive: !0, adaptiveHeight: !0, adaptiveHeightSpeed: 500 }) : jQuery(".sizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, infiniteLoop: !0, slideWidth: 460, minSlides: 1, maxSlides: 1, speed: 800, responsive: !0, pager: !1, adaptiveHeight: !1, adaptiveHeightSpeed: 500 }), $("<div class='sd_Sizechart' style=''></div>").insertAfter("body"), $("<div class='sd_intersizechart' style=''></div>").insertAfter(".sd_Sizechart"); var S = window.ShopifyAnalytics.meta.page.resourceId, C = Shopify.shop; $("body").on("click", ".sd_sizelink", function (t) { t.stopPropagation(), setTimeout(function () { $(window).width() < 767 ? jQuery(".sizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, slideWidth: 300, infiniteLoop: !0, minSlides: 1, speed: 800, responsive: !0, adaptiveHeight: !0, adaptiveHeightSpeed: 500 }) : jQuery(".sizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, infiniteLoop: !0, slideWidth: 460, minSlides: 1, maxSlides: 1, speed: 800, responsive: !0, pager: !1, adaptiveHeight: !1, adaptiveHeightSpeed: 500, }); }, 500), $("body").css({ overflow: "hidden", height: "100%" }), $(window).width() < 767 && $("body").css({ position: "fixed" }), $(".Sd_sizechartmodel").css({ "overflow-y": "auto" }), $(".Sd_sizechartmodel").fadeIn("slow"), $("body").addClass("sd_activefilter"), $(window).width() < 767 && (($.fn.hasScrollBar = function () { $(".Sd_sizechartmodel .main-chart-table").find("div").hasClass("size-box-info") ? 1 == $(this)[0].scrollWidth > this.innerWidth() || $(".sd_Sizechart").append("<style>.Sd_popfirst_panel::after{display:none;}.size-box-info::before{display:none;}</style>") : $(".sd_Sizechart").append("<style>.Sd_popfirst_panel::after{display:none;}.size-box-info::before{display:none;}</style>"); }), setTimeout(function () { $(".Sd_sizechartmodel .size-box-info").hasScrollBar(); }, 500)); }), $(document).on("click", ".pclose", function (t) { t.stopPropagation(), $(".Sd_sizechartmodel").animate({ scrollTop: 0 }, "fast"), $(".Sd_sizechartmodel").css({ "overflow-y": "hidden" }), $("body").css({ overflow: "auto", height: "auto" }), $("body").css({ overflow: "auto", position: "relative", height: "auto" }), $(".Sd_sizechartmodel").fadeOut("slow"), $("body").removeClass("sd_activefilter"); }), $(document) .on("click", ".Sd_sizechartmodel", function (t) { t.stopPropagation(), $(".Sd_sizechartmodel").animate({ scrollTop: 0 }, "fast"), $(".Sd_sizechartmodel").css({ "overflow-y": "hidden" }), $("body").css({ overflow: "auto", height: "auto" }), $("body").css({ overflow: "auto", position: "relative", height: "auto" }), $(".Sd_sizechartmodel").fadeOut("slow"), $("body").removeClass("sd_activefilter"); }) .on("click", ".sd_size_innerpop", function (t) { t.stopPropagation(); }); (S = window.ShopifyAnalytics.meta.page.resourceId), (C = Shopify.shop); $.ajax({ url: "https://ultimatesizechart.com/sizechart/sizechart_ajax.php", type: "POST", data: { sizechart: "sizechart", shop: C }, success: function (t) { var i = $.parseJSON(t), s = $.trim(i.sd_sizechartlinktext), e = $.trim("#" + i.sd_sizechartlinkcolor), a = $.trim("" + i.sd_alignsizechartlink), o = $.trim(i.sd_sizecharttextsize + "px"), n = $.trim(i.sd_fixtopmargin + "px"), d = $.trim("#" + i.sd_fixbackground), l = $.trim("#" + i.sd_fixtextcolor), r = $.trim("" + i.sdsizechartlinkweight), c = $.trim("" + i.sdalignsizemode), p = $.trim("#" + i.sdsizechartbuttonbk), h = $.trim("" + i.sdsizechartdecoration), f = $.trim("" + i.sdfont_style), b = $.trim("" + i.sd_rulericon), _ = $.trim("" + i.selectinject), m = $.trim("" + i.injectevent), y = $.trim("" + i.injectvalue); if ("" == s) s = "Size chart"; if ("" == e || null == e || "#" == e) var u = "color:#000"; else u = "color:" + e; if ("" == a || null == a) var v = "right"; else v = "" + a; if ("" == o || null == o || "px" == o) var z = "14px"; else z = "" + o; if ("" == n || null == n || "px" == n) var g = "140px"; else g = "" + n; if ("" == d || null == d || "#" == d) var x = "#71767a"; else x = "" + d; if ("" == l || null == l || "#" == l) var w = "#FFFFFF"; else w = "" + l; "" == r && (r = "normal"), "" == p && (p = "#000000"), "" == h && (h = "none"), "" == f && (f = "normal"), "" == b && (b = "default"), "id" == m && (m = "#"), "class" == m && (m = "."); var k = ""; (k = $("body").find("div.sd_getsizechart").hasClass("sd_inline") ? "yes" : "no"), "inline" == c || "yes" == k ? $.ajax({ url: "https://ultimatesizechart.com/sizechart/sizechart_ajax_inline.php", type: "POST", data: { product_id: S, shop: C }, success: function (t) { "nosize" == t || "" == t || null == t || ($("body").find("div").hasClass("sd_getsizechart") ? $("body").find(".sd_getsizechart").html(t) : "" != y ? "before" == _ ? $(m + "" + y).length ? $("body") .find(m + "" + y) .before(t) : $("body").find("form[action='/cart/add']:first").after(t) : $(m + "" + y).length ? $("body") .find(m + "" + y) .after(t) : $("body").find("form[action='/cart/add']:first").after(t) : $("body").find("form[action='/cart/add']:first").after(t), setTimeout(function () { $(window).width() < 767 ? jQuery(".sizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, slideWidth: 300, infiniteLoop: !0, minSlides: 1, speed: 800, responsive: !0, adaptiveHeight: !0, adaptiveHeightSpeed: 500, }) : jQuery(".sizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, infiniteLoop: !0, slideWidth: 460, minSlides: 1, maxSlides: 1, speed: 800, responsive: !0, pager: !1, adaptiveHeight: !1, adaptiveHeightSpeed: 500, }); }, 500)); }, }) : $.ajax({ url: "https://ultimatesizechart.com/sizechart/sizechart_ajax.php", type: "POST", data: { product_id: S, shop: C }, success: function (t) { if ("nosize" == t || "" == t || null == t); else { if ("button" == c) var i = "background:" + p + ";box-shadow:0 0 0 1px rgba(63,63,68,.05), 0 1px 3px 0 rgba(63,63,68,.15);padding:10px 20px;", e = "sd_sizebtn"; "gentry-collection.myshopify.com" == C ? $("body") .find("form[action='/cart/add']:first") .after( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";" + i + '">' + s + "</span></div>" ) : "smith-angie.myshopify.com" == C ? $("form[action='/cart/add']").find("div").hasClass("single-option-selector") ? $("body") .find("form[action='/cart/add'] .selector-wrapper") .after( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '" >' + s + "</span></div>" ) : "verucchi.myshopify.com" == C ? $("form[action='/cart/add']").find("div").hasClass("variant-grid") ? $("body") .find("form[action='/cart/add'] .variant-grid") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '" >' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '" >' + s + "</span></div>" ) : "beyond-a-bargain.myshopify.com" == C ? $("form[action='/cart/add']").find("button[type='submit']").hasClass("btn") ? $("body") .find("form[action='/cart/add'] .btn") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : "revoltyou.myshopify.com" == C ? $("body").find("div").hasClass("product-single__description") ? $("body") .find(".product-single__description") .after( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : "other-uk.myshopify.com" == C ? $("body").find("div").hasClass("product-buttons") ? $("body") .find(".product-buttons") .after( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : "sayki.myshopify.com" == C ? $("form[action='/cart/add']").find("div").hasClass("variant-grid") ? $("body") .find("form[action='/cart/add'] .variant-grid") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : "fuckd-up-clothing.myshopify.com" == C ? $("form[action='/cart/add']").find("div").hasClass("bold_options_loaded") ? $("body") .find("form[action='/cart/add'] .bold_options_loaded") .after( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : "shopforge.myshopify.com" == C ? $("body").find("div").hasClass("product-single__quantity") ? $("body") .find(".product-single__quantity") .after( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body").find("div").hasClass("sd_getsizechart") ? $("body") .find(".sd_getsizechart") .append( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : "" != y ? "before" == _ ? $(m + "" + y).length ? $("body") .find(m + "" + y) .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '" >' + s + "</span></div>" ) : $(m + "" + y).length ? $("body") .find(m + "" + y) .after( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '" >' + s + "</span></div>" ) : $("body") .find("form[action='/cart/add']:first") .before( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:' + v + ';"><span class="sd_sizelink ' + e + " " + b + '" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ";font-style:" + f + ";" + i + '">' + s + "</span></div>" ), $(".sd_Sizechart").append(t); } }, }), $.ajax({ url: "https://ultimatesizechart.com/sizechart/sizechart_ajax_fix.php", type: "POST", data: { product_id: S, shop: C }, success: function (t) { "nosize" == t || "" == t || null == t || ($("<div class='sd_fixsizehover' style=''></div>").insertAfter("body"), $(".sd_fixsizehover").append( '<div class="sd_fixsizechart" style="font-family: arial;border-radius: 2px 0 0 2px;box-sizing: border-box;height: auto;right:0px;z-index: 9999999;width: 70px;transition: all 0.3s ease-in 0s;visibility:visible;opacity:1;text-align:left;top:' + g + ';position:fixed;"><div class="sd_fixsizeinner sd_fixsizeicon" style="font-family: arial;border-radius: 3px 0px 0px 3px;cursor:pointer;background:' + x + ";padding:7px;text-align:center;font-size: 12px;color:" + w + ';"><span class="" style="font-family: arial; none repeat scroll 0 0;">' + s + '</span></div></div><div class="sd_size-chart"><div class="sd_size-chart-left" style="position:absolute;left:0;height: 100%;"></div><div class="sd_size-chart-items" style="padding:0px;"></div></div>' ), $(".sd_size-chart-items").html(t)); }, }), $.ajax({ url: "https://ultimatesizechart.com/sizechart/sizechart_ajax_inter.php", type: "POST", data: { product_id: S, shop: C, getintsizechart: "getintsizechart" }, success: function (t) { "nointsize" == t || "" == t || null == t || ($("body") .find("form[action='/cart/add']:first") .after( '<div class="Sd_sizebuttonpanel" style="width:100%;margin-bottom:20px;text-align:left"><span class="sd_interlink" style="cursor: pointer;margin-top: 20px;display: inline-block;color: #526cd0;text-decoration:' + h + ";font-weight:" + r + ";width:auto;display:inline-block;" + u + ";font-size:" + z + ';border-bottom: 1px solid currentColor;font-style: italic;">International Size chart</span></div>' ), $(".sd_intersizechart").append(t)); }, }); }, }), $("body").on("click", ".sd_interlink", function (t) { $("body").css({ overflow: "hidden", height: "100%" }), $(".Sd_intsizechartmodel").fadeIn("slow"); }), $.ajax({ url: "https://ultimatesizechart.com/sizechart/calculator_check.php", type: "POST", data: { product_id: S, shop: C, checkcalculator: "getcalculator" }, success: function (t) { var i = $.parseJSON(t), e = $.trim(i.enable), s = $.trim(i.headingcalculator), a = $.trim(i.calculatorbtntext), o = $.trim("#" + i.calculatorbtnbk), n = $.trim("#" + i.calculatorbtntxtclr), d = i.firstlabel + " ", l = i.secondlabel + " ", r = $.trim("#" + i.calculatorformbk), c = $.trim("#" + i.calculatorheadclr), p = $.trim(i.aligncalbtn); "Yes" == e && ($("body").find("div").hasClass("sd_calculator") ? $("body") .find(".sd_calculator") .append( '<div class="Sd_formcalculator" style="background:' + r + ';"><span class="sd_clabel" style="color:' + c + '">' + s + '</span><div class="sd_innerform"><label class="sd_labelfirst" style="color:' + c + '">' + d + ' <input type="text" name="height" id="sd_cweight" > </label> <label class="sd_labelsecond" style="color:' + c + '">' + l + ' <input type="text" name="height" id="sd_cheight" ></label> <div class="sd_btn_contain" style="text-align:' + p + ';"><button type="button" id="sd_calculatorcheck" style="background:' + o + ";color:" + n + ';">' + a + '</button></div></div><div class="sd_cal_result"></div><div class="sd_cerror"></div></div>' ) : $("body") .find("form[action='/cart/add']:first, form[action='/cart/add.js']:first") .after( '<div class="Sd_formcalculator" style="background:' + r + ';"><span class="sd_clabel" style="color:' + c + '" >' + s + '</span><div class="sd_innerform"><label class="sd_labelfirst" style="color:' + c + '">' + d + ' <input type="text" name="height" id="sd_cweight" > </label> <label class="sd_labelsecond" style="color:' + c + '">' + l + ' <input type="text" name="height" id="sd_cheight" ></label> <div class="sd_btn_contain" style="text-align:' + p + ';" ><button type="button" id="sd_calculatorcheck" style="background:' + o + ";color:" + n + ';">' + a + '</button></div></div><div class="sd_cal_result"></div><div class="sd_cerror"></div></div>' )); }, }), $(document).on("click", "#sd_calculatorcheck", function (t) { var i = $("#sd_cheight").val(), e = $("#sd_cweight").val(); return ( setTimeout(function () { $(".sd_cerror").html(""); }, 3e3), "" == i ? ($(".sd_cerror").html("Please enter values"), !1) : "" == e ? ($(".sd_cerror").html("Please enter values"), !1) : "" == e ? ($(".sd_cerror").html("Please enter values"), !1) : ($(".sd_cal_result").html('<img src="https://ultimatesizechart.com/sizechart/images/sd-loader.gif">'), void $.ajax({ url: "https://ultimatesizechart.com/sizechart/calculator_check.php", type: "POST", data: { product_id: S, shop: C, checksize: "checksize", sd_cheight: i, sd_cweight: e }, success: function (t) { $(".sd_cloader").fadeOut(), $(".sd_cal_result").html(t); }, })) ); }), $(document).on("click", ".Sd_sizechartmodel .sd_maintabs .sd_tab a", function (t) { t.preventDefault(); var i = $(this).attr("href").split("#")[1]; $(this).parent().parent().find("a").removeClass("sd_activetab"), $(this).parent().parent().next(".size-box-info").find(".sd_tabscontainer").removeClass("sd_activetabcontent"), $(this).addClass("sd_activetab"), $(".Sd_sizechartmodel .size-box-info #" + i).addClass("sd_activetabcontent"); }), $(document).on( "click", ".Sd_sizechartmodel .sd_template1 .sd_maintabs .sd_tab a, .Sd_sizechartmodel .sd_template2 .sd_maintabs .sd_tab a, .Sd_sizechartmodel .sd_template3 .sd_maintabs .sd_tab a, .Sd_sizechartmodel .sd_template4 .sd_maintabs .sd_tab a", function (t) { t.preventDefault(); var i = $(this).attr("href").split("#")[1]; $(this).parent().parent().find("a").removeClass("sd_activetab"), $(this).parent().parent().parent().next(".size-box-info").find(".sd_tabscontainer").removeClass("sd_activetabcontent"), $(this).addClass("sd_activetab"), $(".Sd_sizechartmodel .size-box-info #" + i).addClass("sd_activetabcontent"); } ), $(document).on("click", ".Sd_sizechartmodel .sd_template5 .sd_maintabs .sd_tab a, .Sd_sizechartmodel .sd_template6 .sd_maintabs .sd_tab a, .Sd_sizechartmodel .sd_template7 .sd_maintabs .sd_tab a", function (t) { t.preventDefault(); var i = $(this).attr("href").split("#")[1]; $(this).parent().parent().find("a").removeClass("sd_activetab"), $(this).parent().parent().parent().next(".size-box-info").find(".sd_tabscontainer").removeClass("sd_activetabcontent"), $(this).addClass("sd_activetab"), $(".Sd_sizechartmodel .size-box-info #" + i).addClass("sd_activetabcontent"); }), $(document).on("click", ".Sd_sizechartmodel2 .sd_maintabs .sd_tab a", function (t) { t.preventDefault(); var i = $(this).attr("href").split("#")[1]; $(this).parent().parent().find("a").removeClass("sd_activetab"), $(this).parent().parent().next(".size-box-info").find(".sd_tabscontainer").removeClass("sd_activetabcontent"), $(this).addClass("sd_activetab"), $(".Sd_sizechartmodel2 .size-box-info #" + i).addClass("sd_activetabcontent"); }), $(document).on("click", ".Sd_intsizechartmodel .sd_country-tab-list li", function () { var t = $(this).attr("data-tab"); $("ul.sd_country-tab-list li").removeClass("sd_selected"), $(this).addClass("sd_selected"), $(".sd_popup-container .tab--content table").removeClass("sd_tabdata"), $("#" + t).addClass("sd_tabdata"); }), $(document) .on("click", ".Sd_intsizechartmodel, .intpclose", function (t) { $("body").css({ overflow: "auto", position: "relative", height: "auto" }), $(".Sd_intsizechartmodel").fadeOut("slow"); }) .on("click", ".sd_intpinnerpanel", function (t) { t.stopPropagation(); }), $(document).on("touchmove", ".main-chart-table", function () { $(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight ? $(".sd_Sizechart .Sd_popfirst_panel").addClass("noactive") : $(".sd_Sizechart .Sd_popfirst_panel").removeClass("noactive"), $(".sd_fixminihover .Sd_popfirst_panel").addClass("noactive"); }); } if ("page" == t || "product" == t) { $("head").append('<link rel="stylesheet" href="https://ultimatesizechart.com/sizechart/css/sd_custompop.css" type="text/css" />'); C = Shopify.shop; $(".sd_static_sizechart .sd_size_table").each(function (t) { var i = $(this).attr("data-type"), e = $(this).attr("data-id"); "product" == i ? $.ajax({ url: "https://ultimatesizechart.com/sizechart/static_pro_ajax.php", type: "POST", data: { product_id: e, shop: C }, success: function (t) { "nosize" == t || "" == t || null == t || $("body") .find("#" + e) .html(t); }, }) : $.ajax({ url: "https://ultimatesizechart.com/sizechart/static_col_ajax.php", type: "POST", data: { product_id: e, shop: C }, success: function (t) { "nosize" == t || "" == t || null == t || $("body") .find("#" + e) .html(t); }, }); }), $(document).on("click", ".sd_size_table .sd_maintabs .sd_tab a", function (t) { t.preventDefault(); var i = $(this).attr("href").split("#")[1]; $(this).parent().parent().find("a").removeClass("sd_activetab"), $(this).parent().parent().next(".size-box-info").find(".sd_tabscontainer").removeClass("sd_activetabcontent"), $(this).parent().parent().parent().next(".size-box-info").find(".sd_tabscontainer").removeClass("sd_activetabcontent"), $(this).addClass("sd_activetab"), $(this) .parent() .parent() .next(".size-box-info") .find("#" + i) .addClass("sd_activetabcontent"); }); } $(document).on("click", ".sd_tab_pro_link", function (t) { t.preventDefault(); var i = $(this).attr("data-id"); $(".sd_tab_pro_link").removeClass("tab-active"), $(this).addClass("tab-active"), $(this).parent().parent().find(".tabcontent").hide(), $(this) .parent() .parent() .find("#" + i) .show(); }), $(document).on("click", ".Sd_sizechartmodel .sd_template_8 .sd_maintabs .sd_tab a, .Sd_sizechartmodel .sd_template_9 .sd_maintabs .sd_tab a, .Sd_sizechartmodel .sd_template_10 .sd_maintabs .sd_tab a", function (t) { t.preventDefault(); var i = $(this).attr("href").split("#")[1]; $(this).parent().parent().find("a").removeClass("sd_activetab"), $(this).parent().parent().parent().parent().find(".sd_tabscontainer").removeClass("sd_activetabcontent"), $(this).addClass("sd_activetab"), $(".Sd_sizechartmodel .size-chart-table-con #" + i).addClass("sd_activetabcontent"); }); var selectorr = $(".modal--is-active").find(".easyslider-item-static").find(".easyslider-anchor"); $(".custom_quick_view_sizechart").click(function () { setTimeout(function () { console.log("enter !!!!!"); var product_id = $(".modal--is-active").attr("data-product-id"); var shop = Shopify.shop; console.log(product_id); console.log(shop); $.ajax({ url: "https://ultimatesizechart.com/sizechart/sizechart_ajax_inline.php", type: "POST", data: { product_id: product_id, shop: shop, }, success: function (data) { console.log(data); $.ajax({ url: "https://ultimatesizechart.com/sizechart/sizechart_ajax_inline.php", type: "POST", data: { product_id: product_id, shop: shop, }, success: function (data) { $(".modal--is-active").append('<link rel="stylesheet" href="https://ultimatesizechart.com/sizechart/css/sd_custompop.css" type="text/css" />'); $("head").append('<link href="https://ultimatesizechart.com/sizechart/css/jquery.bxslider.css" rel="stylesheet" />'); $(".modal--is-active").find(".sd_getsizechart").html(data); setTimeout(function () { $(".sd_tab a").click(function (e) { e.preventDefault(); //alert("dddd"); var gid = $(this).attr("href"); var getabid = gid.split("#"); var tab_id = getabid[1]; //$('.Sd_sizechartmodel .sd_maintabs .sd_tab a').removeClass('sd_activetab'); $(this).parent().parent().find("a").removeClass("sd_activetab"); $(this).parent().parent().next(".size-box-info").find(".sd_tabscontainer").removeClass("sd_activetabcontent"); //$('.Sd_sizechartmodel .sd_tabscontainer').removeClass('sd_activetabcontent'); $(this).addClass("sd_activetab"); $(".Sd_sizechartmodel .size-box-info #" + tab_id).addClass("sd_activetabcontent"); }); if ($(window).width() < 767) { jQuery(".sizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, slideWidth: 300, infiniteLoop: true, minSlides: 1, speed: 800, responsive: true, adaptiveHeight: true, adaptiveHeightSpeed: 500, }); } else { jQuery(".sizechartslider").bxSlider({ moveSlides: 1, slideMargin: 0, infiniteLoop: true, slideWidth: 460, minSlides: 1, maxSlides: 1, speed: 800, responsive: true, pager: false, adaptiveHeight: false, adaptiveHeightSpeed: 500, }); } }, 500); }, }); }, }); }, 4000); }); })();