PageSourceSearch

https://saasoh.com/cdn/shop/t/3/assets/timber.js?v=15465076120072342381629231289

js saasoh.com collected 2026-10-04 02:27:24 UTC 13,494 bytes, 6 lines download raw bytes

1/*!
2  jQuery ColorBox v1.3.34 - 2013-02-04
3  (c) 2013 Jack Moore - jacklmoore.com/colorbox
4  license: http://www.opensource.org/licenses/mit-license.php
5*/(function(e,t,i){function o(i2,o2,n2){var h2=t.createElement(i2);return o2&&(h2.id=V+o2),n2&&(h2.style.cssText=n2),e(h2)}function n(e2){var t2=T.length,i2=(N+e2)%t2;return 0>i2?t2+i2:i2}function h(e2,t2){return Math.round((/%/.test(e2)?(t2==="x"?C.width():C.height())/100:1)*parseInt(e2,10))}function r(e2){return P.photo||P.photoRegex.test(e2)}function l(e2){return P.retinaUrl&&i.devicePixelRatio>1?e2.replace(P.photoRegex,P.retinaSuffix):e2}function s(){var t2,i2=e.data(B,J);i2==null?(P=e.extend({},X),console&&console.log&&console.log("Error: cboxElement missing settings object")):P=e.extend({},i2);for(t2 in P)e.isFunction(P[t2])&&t2.slice(0,2)!=="on"&&(P[t2]=P[t2].call(B));P.rel=P.rel||B.rel||e(B).data("rel")||"nofollow",P.href=P.href||e(B).attr("href"),P.title=P.title||B.title,typeof P.href=="string"&&(P.href=e.trim(P.href))}function a(i2,o2){e(t).trigger(i2),st.trigger(i2),e.isFunction(o2)&&o2.call(B)}function d(){var e2,t2,i2,o2,n2,h2=V+"Slideshow_",r2="click."+V;P.slideshow&&T[1]?(t2=function(){clearTimeout(e2)},i2=function(){(P.loop||T[N+1])&&(e2=setTimeout($2.next,P.slideshowSpeed))},o2=function(){L.html(P.slideshowStop).unbind(r2).one(r2,n2),st.bind(tt,i2).bind(et,t2).bind(it,n2),m.removeClass(h2+"off").addClass(h2+"on")},n2=function(){t2(),st.unbind(tt,i2).unbind(et,t2).unbind(it,n2),L.html(P.slideshowStart).unbind(r2).one(r2,function(){$2.next(),o2()}),m.removeClass(h2+"on").addClass(h2+"off")},P.slideshowAuto?o2():n2()):m.removeClass(h2+"off "+h2+"on")}function c(t2){q||(B=t2,s(),T=e(B),N=0,P.rel!=="nofollow"&&(T=e("."+Y).filter(function(){var t3,i2=e.data(this,J);return i2&&(t3=e(this).data("rel")||i2.rel||this.rel),t3===P.rel}),N=T.index(B),N===-1&&(T=T.add(B),N=T.length-1)),O||(O=j=!0,m.css({visibility:"hidden",display:"block"}),k=o(at,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(g),_=x.height()+b.height()+g.outerHeight(!0)-g.height(),K=v.width()+y.width()+g.outerWidth(!0)-g.width(),z=k.outerHeight(!0),D=k.outerWidth(!0),P.returnFocus&&(e(B).blur(),st.one(ot,function(){e(B).focus()})),p.css({opacity:parseFloat(P.opacity),cursor:P.overlayClose?"pointer":"auto",visibility:"visible"}).show(),P.w=h(P.initialWidth,"x"),P.h=h(P.initialHeight,"y"),$2.position(),rt&&C.bind("resize."+lt+" scroll."+lt,function(){p.css({width:C.width(),height:C.height(),top:C.scrollTop(),left:C.scrollLeft()})}).trigger("resize."+lt),d(),a(Z,P.onOpen),R.add(H).hide(),F.html(P.close).show()),$2.load(!0))}function u(){!m&&t.body&&(Q=!1,C=e(i),m=o(at).attr({id:J,class:ht?V+(rt?"IE6":"IE"):""}).hide(),p=o(at,"Overlay",rt?"position:absolute":"").hide(),W=o(at,"LoadingOverlay").add(o(at,"LoadingGraphic")),w=o(at,"Wrapper"),g=o(at,"Content").append(H=o(at,"Title"),E=o(at,"Current"),M=o(at,"Next"),S=o(at,"Previous"),L=o(at,"Slideshow"),F=o(at,"Close")),w.append(o(at).append(o(at,"TopLeft"),x=o(at,"TopCenter"),o(at,"TopRight")),o(at,!1,"clear:left").append(v=o(at,"MiddleLeft"),g,y=o(at,"MiddleRight")),o(at,!1,"clear:left").append(o(at,"BottomLeft"),b=o(at,"BottomCenter"),o(at,"BottomRight"))).find("div div").css({float:"left"}),I=o(at,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),R=M.add(S).add(E).add(L),e(t.body).append(p,m.append(w,I)))}function f(){function i2(e2){e2.which>1||e2.shiftKey||e2.altKey||e2.metaKey||(e2.preventDefault(),c(this))}return m?(Q||(Q=!0,M.click(function(){$2.next()}),S.click(function(){$2.prev()}),F.click(function(){$2.close()}),p.click(function(){P.overlayClose&&$2.close()}),e(t).bind("keydown."+V,function(e2){var t2=e2.keyCode;O&&P.escKey&&t2===27&&(e2.preventDefault(),$2.close()),O&&P.arrowKey&&T[1]&&(t2===37?(e2.preventDefault(),S.click()):t2===39&&(e2.preventDefault(),M.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+V,"."+Y,i2):e("."+Y).live("click."+V,i2)),!0):!1}var p,m,w,g,x,v,y,b,T,C,k,I,W,H,E,L,M,S,F,R,P,_,K,z,D,B,N,A,O,j,q,U,$2,G,Q,X={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHe
5ight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},J="colorbox",V="cbox",Y=V+"Element",Z=V+"_open",et=V+"_load",tt=V+"_complete",it=V+"_cleanup",ot=V+"_closed",nt=V+"_purge",ht=!e.support.leadingWhitespace,rt=ht&&!i.XMLHttpRequest,lt=V+"_IE6",st=e({}),at="div";e.colorbox||(e(u),$2=e.fn[J]=e[J]=function(t2,i2){var o2=this;if(t2=t2||{},u(),f()){if(e.isFunction(o2))o2=e("<a/>"),t2.open=!0;else if(!o2[0])return o2;i2&&(t2.onComplete=i2),o2.each(function(){e.data(this,J,e.extend({},e.data(this,J)||X,t2))}).addClass(Y),(e.isFunction(t2.open)&&t2.open.call(o2)||t2.open)&&c(o2[0])}return o2},$2.position=function(e2,t2){function i2(e3){x[0].style.width=b[0].style.width=g[0].style.width=parseInt(e3.style.width,10)-K+"px",g[0].style.height=v[0].style.height=y[0].style.height=parseInt(e3.style.height,10)-_+"px"}var o2,n2,r2,l2=0,s2=0,a2=m.offset();C.unbind("resize."+V),m.css({top:-9e4,left:-9e4}),n2=C.scrollTop(),r2=C.scrollLeft(),P.fixed&&!rt?(a2.top-=n2,a2.left-=r2,m.css({position:"fixed"})):(l2=n2,s2=r2,m.css({position:"absolute"})),s2+=P.right!==!1?Math.max(C.width()-P.w-D-K-h(P.right,"x"),0):P.left!==!1?h(P.left,"x"):Math.round(Math.max(C.width()-P.w-D-K,0)/2),l2+=P.bottom!==!1?Math.max(C.height()-P.h-z-_-h(P.bottom,"y"),0):P.top!==!1?h(P.top,"y"):Math.round(Math.max(C.height()-P.h-z-_,0)/2),m.css({top:a2.top,left:a2.left,visibility:"visible"}),e2=m.width()===P.w+D&&m.height()===P.h+z?0:e2||0,w[0].style.width=w[0].style.height="9999px",o2={width:P.w+D+K,height:P.h+z+_,top:l2,left:s2},e2===0&&m.css(o2),m.dequeue().animate(o2,{duration:e2,complete:function(){i2(this),j=!1,w[0].style.width=P.w+D+K+"px",w[0].style.height=P.h+z+_+"px",P.reposition&&setTimeout(function(){C.bind("resize."+V,$2.position)},1),t2&&t2()},step:function(){i2(this)}})},$2.resize=function(e2){O&&(e2=e2||{},e2.width&&(P.w=h(e2.width,"x")-D-K),e2.innerWidth&&(P.w=h(e2.innerWidth,"x")),k.css({width:P.w}),e2.height&&(P.h=h(e2.height,"y")-z-_),e2.innerHeight&&(P.h=h(e2.innerHeight,"y")),e2.innerHeight||e2.height||(k.css({height:"auto"}),P.h=k.height()),k.css({height:P.h}),$2.position(P.transition==="none"?0:P.speed))},$2.prep=function(t2){function i2(){return P.w=P.w||k.width(),P.w=P.mw&&P.mw<P.w?P.mw:P.w,P.w}function h2(){return P.h=P.h||k.height(),P.h=P.mh&&P.mh<P.h?P.mh:P.h,P.h}if(O){var l2,s2=P.transition==="none"?0:P.speed;k.empty().remove(),k=o(at,"LoadedContent").append(t2),k.hide().appendTo(I.show()).css({width:i2(),overflow:P.scrolling?"auto":"hidden"}).css({height:h2()}).prependTo(g),I.hide(),e(A).css({float:"none"}),l2=function(){function t3(){ht&&m[0].style.removeAttribute("filter")}var i3,h3,l3=T.length,d2="frameBorder",c2="allowTransparency";O&&(h3=function(){clearTimeout(U),W.remove(),a(tt,P.onComplete)},ht&&A&&k.fadeIn(100),H.html(P.title).add(k).show(),l3>1?(typeof P.current=="string"&&E.html(P.current.replace("{current}",N+1).replace("{total}",l3)).show(),M[P.loop||l3-1>N?"show":"hide"]().html(P.next),S[P.loop||N?"show":"hide"]().html(P.previous),P.slideshow&&L.show(),P.preloading&&e.each([n(-1),n(1)],function(){var t4,i4,o2=T[this],n2=e.data(o2,J);n2&&n2.href?(t4=n2.href,e.isFunction(t4)&&(t4=t4.call(o2))):t4=e(o2).attr("href"),t4&&(r(t4)||n2.photo)&&(i4=new Image,i4.src=t4)})):R.hide(),P.iframe?(i3=o("iframe")[0],d2 in i3&&(i3[d2]=0),c2 in i3&&(i3[c2]="true"),P.scrolling||(i3.scrolling="no"),e(i3).attr({src:P.href,name:new Date().getTime(),class:V+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",h3).appendTo(k),st.one(nt,function(){i3.src="//about:blank"}),P.fastIframe&&e(i3).trigger("load")):h3(),P.transition==="fade"?m.fadeTo(s2,1,t3):t3())},P.transition==="fade"?m.fadeTo(s2,0,function(){$2.position(0,l2)}):$2.position(s2,l2)}},$2.load=function(t2){var n2,d2,c2,u2=$2.prep;j=!0,A=!1,B=T[N],t2||s(),G&&m.add(p).removeClass(G),P.className&&m.add(p).addClass(P.className),G=P.className,a(nt),a(et,P.onLoad),P.h=P.height?h(P.height,"y")-z-_:P.innerHe
5ight&&h(P.innerHeight,"y"),P.w=P.width?h(P.width,"x")-D-K:P.innerWidth&&h(P.innerWidth,"x"),P.mw=P.w,P.mh=P.h,P.maxWidth&&(P.mw=h(P.maxWidth,"x")-D-K,P.mw=P.w&&P.w<P.mw?P.w:P.mw),P.maxHeight&&(P.mh=h(P.maxHeight,"y")-z-_,P.mh=P.h&&P.h<P.mh?P.h:P.mh),n2=P.href,U=setTimeout(function(){W.appendTo(g)},100),P.inline?(c2=o(at).hide().insertBefore(e(n2)[0]),st.one(nt,function(){c2.replaceWith(k.children())}),u2(e(n2))):P.iframe?u2(" "):P.html?u2(P.html):r(n2)?(n2=l(n2),e(A=new Image).addClass(V+"Photo").bind("error",function(){P.title=!1,u2(o(at,"Error").html(P.imgError))}).one("load",function(){var e2;P.retinaImage&&i.devicePixelRatio>1&&(A.height=A.height/i.devicePixelRatio,A.width=A.width/i.devicePixelRatio),P.scalePhotos&&(d2=function(){A.height-=A.height*e2,A.width-=A.width*e2},P.mw&&A.width>P.mw&&(e2=(A.width-P.mw)/A.width,d2()),P.mh&&A.height>P.mh&&(e2=(A.height-P.mh)/A.height,d2())),P.h&&(A.style.marginTop=Math.max(P.mh-A.height,0)/2+"px"),T[1]&&(P.loop||T[N+1])&&(A.style.cursor="pointer",A.onclick=function(){$2.next()}),ht&&(A.style.msInterpolationMode="bicubic"),setTimeout(function(){u2(A)},1)}),setTimeout(function(){A.src=n2},1)):n2&&I.load(n2,P.data,function(t3,i2){u2(i2==="error"?o(at,"Error").html(P.xhrError):e(this).contents())})},$2.next=function(){!j&&T[1]&&(P.loop||T[N+1])&&(N=n(1),$2.load())},$2.prev=function(){!j&&T[1]&&(P.loop||N)&&(N=n(-1),$2.load())},$2.close=function(){O&&!q&&(q=!0,O=!1,a(it,P.onCleanup),C.unbind("."+V+" ."+lt),p.fadeTo(200,0),m.stop().fadeTo(300,0,function(){m.add(p).css({opacity:1,cursor:"auto"}).hide(),a(nt),k.empty().remove(),setTimeout(function(){q=!1,a(ot,P.onClosed)},1)}))},$2.remove=function(){e([]).add(m).add(p).remove(),m=null,e("."+Y).removeData(J).removeClass(Y),e(t).unbind("click."+V)},$2.element=function(){return e(B)},$2.settings=X)})(jQuery,document,window);function replaceUrlParam(url,paramName,paramValue){var pattern=new RegExp("("+paramName+"=).*?(&|$)"),newUrl=url.replace(pattern,"$1"+paramValue+"$2");return newUrl==url&&(newUrl=newUrl+(newUrl.indexOf("?")>0?"&":"?")+paramName+"="+paramValue),newUrl}window.timber=window.timber||{},timber.cacheSelectors=function(){timber.cache={$html:$("html"),$body:$("body"),$changeView:$(".change-view"),$navigation:$("#AccessibleNav"),$productImage:$("#product-featured-image")}},timber.init=function(){timber.cacheSelectors(),timber.autoResponsiveElements(),timber.notify()},timber.productPage=function(options){var moneyFormat=options.money_format,variant=options.variant,selector=options.selector,translations=options.translations,$productImage=$("#product-featured-image"),$addToCart=$("#AddToCart"),$productPrice=$("#ProductPrice"),$comparePrice=$("#ComparePrice"),$productsku=$("#product-sku"),$addToCartText=$("#AddToCartText");if(variant?(variant.available?($addToCart.removeClass("disabled").prop("disabled",!1),$addToCartText.html(translations.add_to_cart),$productsku.text(variant.sku)):($addToCart.addClass("disabled").prop("disabled",!0),$addToCartText.html(translations.sold_out)),$productPrice.html(Shopify.formatMoney(variant.price,moneyFormat)),variant.compare_at_price>variant.price?$comparePrice.html(Shopify.formatMoney(variant.compare_at_price,moneyFormat)).show():$comparePrice.hide()):($addToCart.addClass("disabled").prop("disabled",!0),$addToCartText.html(translations.unavailable)),variant&&variant.featured_image){var originalImage=jQuery("#product-featured-image"),newImage=variant.featured_image,element=originalImage[0];Shopify.Image.switchImage(newImage,element,function(newImageSizedSrc,newImage2,element2){jQuery("#ProductThumbs img").each(function(){var grandSize=jQuery(this).attr("src");if(grandSize=grandSize.replace("medium","grande"),grandSize==newImageSizedSrc)return jQuery(this).parent().trigger("click"),!1})})}if(variant)for(var form=jQuery("#"+selector.domIdPrefix).closest("form"),i=0,length=variant.options.length;i<length;i++){var radioButton=form.find('.swatch[data-option-index="'+i+'"] :radio[value="'+variant.options[i]+'"]');radioButton.size()&&(radioButton.get(0).checked=!0)}},timber.autoResponsiveElements=function(){var $iframeVideo=$('iframe[src*="youtube.com/embed"], iframe[src*="player.vimeo"]'),$iframeReset=$iframeVideo.add("iframe#admin_bar_iframe");$("table").wrap('<div class="table-wrapper"></div>'),$iframeVideo.each(function(){$(this).wrap('<div class="video-wrapper"></div>')}),$iframeReset.each(function(){this.src=this.src})},timber.notify=function(){$("#notify-me").on("click",function(){return $("#notify-me-wrapper").fadeIn(),!1})},window.top.location.href.indexOf("?customer_posted=true")>-1&&$(".success").addClass("show"),$(timber.init);
6//# sourceMappingURL=/cdn/shop/t/3/assets/timber.js.map?v=15465076120072342381629231289

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.