PageSourceSearch

https://rotofugi.com/cdn/shop/t/28/assets/theme.js?v=166607104930971241291711406322

js rotofugi.com collected 2026-10-02 16:41:44 UTC 17,992 bytes, 2 lines download raw bytes

1(function($2){$2(document).ready(function(){pandora.init()}),window.addEventListener("load",function(){pandora.initImageResize()},!1),setTimeout(function(){pandora.initImageResize()},5e3),$2(window).resize(function(){pandora.initImageResize(),pandora.resizeHomepageSlider(),pandora.adjustCollectionItemHeight(),pandora.adjustFooterPadding(),pandora.adjustSliderNavPos()})})(jQuery);var pandora={activeQuickshop:null,quickshopCache:null,currentVariantOptions:null,productImageAlts:null,slideChanged:!1,assoc_product_variant_image:!1,resizableImages:[".image-collection-item",".image-collection-item-small",".product-image-large",".product-image-small",".image-collection-item-extra-small",".product-image-quickshop"],imageSizes:{".image-collection-item":{pc:{width:227,height:227},tablet:{width:227,height:227},mobile:{width:300,height:300}},".image-collection-item-small":{pc:{width:300,height:300},tablet:{width:300,height:300},mobile:{width:300,height:300}},".image-collection-item-extra-small":{pc:{width:99,height:99},tablet:{width:99,height:99},mobile:{width:99,height:99}},".product-image-large":{pc:{width:470,height:470},tablet:{width:312,height:312},mobile:{width:300,height:300}},".product-image-small":{pc:{width:70,height:70},tablet:{width:70,height:70},mobile:{width:70,height:70}},".product-image-quickshop":{pc:{width:311,height:311},tablet:{width:311,height:311},mobile:{width:311,height:311}}},init:function(){this.initScrollTop(),this.initFormElements(),this.adjustFooterPadding(),this.initUserAuthMenu(),this.initHomepageSlider(),this.adjustSliderNavPos(),this.hideResizableImages(),this.adjustCollectionItemHeight(),this.initNavigationSelector(),this.initSingleProductImageSlider(),this.initProductLightbox(),this.initCart(),this.initQuickShop(),this.initAccountLogin(),this.initAddressManage()},initScrollTop:function(){$(".back-to-the-top").click(function(){return $("body,html").animate({scrollTop:0},400),!1})},initFormElements:function(){$("select:not(.no-uniform)").length>0&&$("select:not(.no-uniform)").uniform(),$("._product-purchase-btn").click(function(){if($(this).attr("disabled")!="disabled"){var productId=$(this).parents(".item-info").attr("id");if(productId=productId.match(/\d+/g),window._add_to_cart_ajax==="false")$("#product-actions-"+productId).submit();else{var variant_id=$("#product-actions-"+productId+" select[name=id]").val();variant_id||(variant_id=$("#product-actions-"+productId+" input[name=id]").val());var quantity=$("#product-actions-"+productId+" select[name=quantity]").val();pandora.initAjaxAddToCart(variant_id,quantity)}}return!1}),$(".form-submit-btn").click(function(){$(this).parents("form").submit()})},customFormElements:function(selector){$(selector).uniform()},initNavigationSelector:function(){var selector=$(".navigationSelector");selector.length>0&&selector.change(function(){window.location=$("option:selected",$(this)).attr("value")})},adjustFooterPadding:function(){var mainfooterwrapper=$(".main-footer-wrapper");$(".main-content-wrapper").css({paddingBottom:mainfooterwrapper.height()})},initUserAuthMenu:function(){$(".main-header .menu .account").not("._logged-in").click(function(){return $("._user_auth").is(":visible")?($("._user_auth .password").css("visibility","hidden"),$("._user_auth").slideUp(500,function(){$("._user_auth .password").css("visibility","visible")})):$("._user_auth").slideDown(500),!1})},initImageResize:function(){var type2=pandora.getCurrentResponsiveType();for(var i2 in pandora.resizableImages){var item=pandora.resizableImages[i2];this.resizeImageCollection($(item),pandora.imageSizes[item][type2].width,pandora.imageSizes[item][type2].height)}},resizeImageCollection:function(collection,maxWidth2,maxHeight2){collection.length>0&&collection.each(function(){var params={maxWidth:maxWidth2,maxHeight:maxHeight2};pandora.resizeImage($(this),params)})},resizeImage:function(item,params){maxWidth=params.maxWidth,maxHeight=params.maxHeight,item.attr("style",""),params.currHeight!=null?height=params.currHeight:height=item.height(),params.currWidth!=null?width=params.currWidth:width=item.width();var h_q=maxHeight/height,w_q=maxWidth/width;if(w_q>=h_q&&width>maxWidth?(height=height*w_q,item.css("width",maxWidth+"px"),width=maxWidth):w_q<h_q&&height>maxHeight&&(width=width*h_q,item.css("height",maxHeight+"px"),height=maxHeight),width>0){var diff=parseInt((maxWidth-width)/2);item.css("position","absolute"),item.css("left",diff+"px")}if(height>0){var diff=parseInt((maxHeight-height)/2);item.css("position","absolute"),item.css("top",diff+"px")}item.show()},hideResizableImages:function(){for(i in this.resizableImages)$(this.resizableImages[i]).hide()},initHomepageSlider:function(){if($(".template-index").length>0){var timeout=parseInt(window._slider_timeout);typeof timeout=="undefined"&&(timeout=0),$("#hompage-slider_content").cycle({fx:"fade",speed:"600",timeout:timeout,prev:".previous",next:".next",pager:"#pager",activePagerClass:"active",easing:"swing",slideResize:0,containerResize:1,slideExpr:".item",pause:!0,pagerAnchorBuilder:function(idx,slide){return""}}),$("#hompage-slider_content").children(".item").length<=1&&($("#hompage-slider_content .blank-item").hide(),$(".homepage-slider .navigation").hide()),$("#pager a").click(function(){var index=$("#pager a").index($(this));return $("#hompage-slider_content").cycle(index),!1}),$("#hompage-slider_content").touchwipe({wipeLeft:function(){$("#hompage-slider_content").cycle("next")},wipeRight:function(){$("#hompage-slider_content").cycle("prev")},wipeUp:function(){return!1},wipeDown:function(){return!1},min_move_x:20,min_move_y:20,preventDefaultEvents:!1})}},adjustSliderNavPos:function(){if($(".template-index").length>0){var nav=$(".main-slider nav"),nav_width=nav.outerWidth(),scr_width=$(window).width();nav.css("left",(scr_width-nav_width)/2)}},resizeHomepageSlider:function(){$(".template-index").length>0&&$("#hompage-slider_content .item, #hompage-slider_content").width($("body").width())},getCurrentResponsiveType:function(){var window_w=$(window).width();return window_w>767&&window_w<959?type="tablet":window_w<=767?type="mobile":type="pc",type},adjustCollectionItemHeight:function(){var type2=pandora.getCurrentResponsiveType(),items=$(".items ._collection-item");if(items.length>0){var columns=4;type2=="tablet"&&(columns=3),type2=="mobile"&&(columns=1),pandora.resizeRowItemHeight(items,columns)}},resizeRowItemHeight:function(items,columns){var chunks=chunk(items,columns);for(var row in chunks){var maxHeight2=Math.max.apply(null,chunks[row].map(function(){var height2=$(this).find(".image-wrapper").innerHeight()+$(this).find("h2").innerHeight()+$(this).find(".price").innerHeight();return height2+8}).get());chunks[row].height(maxHeight2)}},initSingleProductImageSlider:function(){if($(".template-product").length>0){$("#_single-product-slider").cycle({fx:"scrollHorz",speed:"600",timeout:0,easing:"swing",slideResize:0,containerResize:1,slideExpr:".image"});var navBtns=$(".thumbnails div a");navBtns.click(function(){var index=navBtns.index($(this));return navBtns.removeClass("active"),$(this).addClass("active"),pandora.slideChanged=!1,pandora.slideChanged||$("#_single-product-slider").cycle(index),!1});var navBtns=jQuery(".main-item .thumbnails ul a");navBtns.click(function(){var index=navBtns.index(jQuery(this));return navBtns.removeClass("active"),jQuery(this).addClass("active"),pandora.slideChanged=!1,jQuery("#_single-product-slider").cycle(index),!1}),jQuery(".main-item .thumbnails ul").jcarousel()}},initCart:function(){$(".template-cart").length>0&&($("#cart_submit").click(function(){return $(".__checkout-btn").trigger("click"),!1}
1),$("#cart_update").click(function(){return $(".__update-btn").trigger("click"),!1}),$(".main-cart .quantity .more").click(function(){var quantity=$(this).siblings("input[type=text]"),newQuantity=parseInt(quantity.val())+1;quantity.val(newQuantity);var row=$(this).parents(".row"),variant_id=row.attr("id");return Shopify.changeItem(variant_id,newQuantity,function(cart){$(".main-cart .total p").html(Shopify.formatMoney(cart.total_price,window._money_format))}),!1}),$(".main-cart .quantity .less").click(function(){var quantity=$(this).siblings("input[type=text]"),oldQuantity=parseInt(quantity.val());if(oldQuantity>1){var newQuantity=oldQuantity-1;quantity.val(newQuantity);var row=$(this).parents(".row"),variant_id=row.attr("id");Shopify.changeItem(variant_id,newQuantity,function(cart){$(".main-cart .total p").html(Shopify.formatMoney(cart.total_price,window._money_format))})}return!1}),$(".main-cart .quantity input[type=text]").keydown(function(event){event.keyCode==46||event.keyCode==8||event.keyCode==9||event.keyCode==27||event.keyCode==65&&event.ctrlKey===!0||event.keyCode>=35&&event.keyCode<=39||(event.keyCode<48||event.keyCode>57)&&(event.keyCode<96||event.keyCode>105)&&event.preventDefault()}),$(".main-cart .delete button").click(function(){var row=$(this).parents(".row"),variant_id=row.attr("id");return Shopify.removeItem(variant_id,function(){row.slideUp(500,function(){row.remove()}),pandora.updateCartAmounts()}),!1}))},initQuickShop:function(){$("._quick-shop-launcher").click(function(){var product_handle=$(this).attr("id"),template=$("#quickshop-template").html();return Shopify.getProduct(product_handle,function(product){var description=product.description.replace(/<(?:.|\n)*?>/gm,""),description=description.substr(0,200);description=description.substr(0,Math.min(description.length,description.lastIndexOf(" "))),description=description+"...",template=template.replace(/\[\[PRODUCT_ID\]\]/g,product.id),template=template.replace(/\[\[PRODUCT_URL\]\]/g,product.url),template=template.replace(/\[\[TITLE\]\]/g,product.title),template=template.replace(/\[\[DESCRIPTION\]\]/g,description),template=template.replace(/\[\[FULLSIZE_IMAGE_LINK\]\]/g,product.featured_image),product.available?(template=template.replace(/\[\[PRICE\]\]/g,Shopify.formatMoney(product.price,window._money_format)),product.price_varies?template=template.replace(/\[\[OLD_PRICE\]\]/g,Shopify.formatMoney(product.price_max,window._money_format)):template=template.replace(/<s>\[\[OLD_PRICE\]\]<\/s>/g,"")):(template=template.replace(/\[\[PRICE\]\]/g,""),template=template.replace(/<s>\[\[OLD_PRICE\]\]<\/s>/g,""));var template_obj=$(template);$(".quick-shop").html(template_obj),pandora.adjustQuickShopPopupPosition(),pandora.createQuickshopVariants(product,template_obj),product.available||(template_obj.find(".sold-out").show(),template_obj.find(".buy").hide()),pandora.loadQuickShopImage(product,template_obj),pandora.loadQuickShopCarousel(product,template_obj),pandora.initQuickshopAddToCart(),$(".lightbox").show(),$(".quick-shop").fadeIn(350)}),!1}),$(".lightbox, .close-window").live("click",function(){return pandora.closeQuickShopPopup(),!1}),$(window).resize(function(){pandora.adjustQuickShopPopupPosition()})},initQuickshopAddToCart:function(){$(".ajax-form-submited-wrap").hide(),$(".quick-shop ._product-purchase-btn").click(function(){var variant_id=$(".quick-shop select[name=id]").val();variant_id||(variant_id=$(".quick-shop input[name=id]").val());var quantity=$(".quick-shop select[name=quantity]").val();pandora.initAjaxAddToCart(variant_id,quantity)})},initAjaxAddToCart:function(variant_id,quantity){$.ajax({type:"post",url:"/cart/add.js",data:"quantity="+quantity+"&id="+variant_id,dataType:"json",beforeSend:function(){$(".ajax-form-submited-wrap .ajax-form-loader").show(),$(".ajax-form-submited-wrap").fadeIn(500)},success:function(msg){$(".ajax-form-submited-wrap .ajax-form-loader").fadeOut(500,function(){$(".ajax-form-submited-wrap .ajax-form-submited-success").fadeIn(500)}),pandora.updateCartAmounts()},error:function(xhr,text){$(".ajax-form-submited-error").text($.parseJSON(xhr.responseText).description),$(".ajax-form-submited-wrap .ajax-form-loader").fadeOut(500,function(){$(".ajax-form-submited-wrap .ajax-form-submited-error").fadeIn(500)})},complete:function(){$(".ajax-form-submited-wrap").delay(3e3).fadeOut(500,function(){$(".ajax-form-submited-wrap .ajax-form-submited-success").fadeOut(500),$(".ajax-form-submited-wrap .ajax-form-submited-error").fadeOut(500)})}})},updateCartAmounts:function(){Shopify.getCart(function(cart){var cart_text=cart.item_count+" items ("+Sh
1opify.formatMoney(cart.total_price,window._money_format)+" in total)";$(".main-header .menu .cart").html(cart_text),$("body").hasClass("template-cart")&&$(".main-cart .total p").html(Shopify.formatMoney(cart.total_price))})},loadQuickShopImage:function(product,template_obj){if(product.featured_image){var image=Shopify.resizeImage(product.featured_image,"large"),quickImage=new Image;quickImage.onload=function(){template_obj.find(".image a").eq(0).append(quickImage);var params2={maxWidth:311,maxHeight:311,currWidth:quickImage.width,currHeight:quickImage.height};pandora.resizeImage($(".product-image-quickshop",".quick-shop"),params2)},quickImage.src=image,quickImage.className+="product-image-quickshop",quickImage.alt=product.title}var params={maxWidth:311,maxHeight:311,currWidth:quickImage.width,currHeight:quickImage.height};pandora.loadQuickShopSlider(product,template_obj),pandora.resizeImage($(".product-image-quickshop",".quick-shop"),params)},loadQuickShopSlider:function(product,template_obj){if(product.images.length>1){for(i in product.images)if(i!=0){var large=Shopify.resizeImage(product.images[i],"1024x1024"),item='<div class="image"><a href="'+product.images[i]+'" class="lightbox-launcher"><img src="'+large+'" alt="" class="product-image-quickshop" /></a></div>';template_obj.find("#_quickshop-slider").append(item)}template_obj.find("#_quickshop-slider").cycle({fx:"scrollHorz",speed:"600",timeout:0,easing:"swing",slideResize:0,containerResize:1,slideExpr:".image"})}},loadQuickShopCarousel:function(product,template_obj){if(product.images.length>1){for(i in product.images){var image=Shopify.resizeImage(product.images[i],"compact"),item='<li><a href="#"><img src="'+image+'" alt="" /></a></li>';template_obj.find(".thumbnails ul").append(item)}template_obj.find(".thumbnails ul").jcarousel();var navBtns=template_obj.find(".thumbnails ul a");navBtns.first().addClass("active"),navBtns.click(function(){var index=navBtns.index(jQuery(this));return navBtns.removeClass("active"),jQuery(this).addClass("active"),pandora.slideChanged=!1,jQuery("#_quickshop-slider").cycle(index),!1})}else template_obj.find(".thumbnails").remove()},createQuickshopVariants:function(product,template_obj){if(product.variants.length>1){for(var i2=0;i2<product.variants.length;i2++){var variant=product.variants[i2],option='<option value="'+variant.id+'">'+variant.title+"</option>";template_obj.find("form.variants > select").append(option)}new Shopify.OptionSelectors("product-select-"+product.id,{product:product,onVariantSelected:selectCallback}),pandora.customFormElements("#product-actions-"+product.id+" select:not(.no-uniform)"),pandora.customFormElements("#quantity-"+product.id),product.options.length==1&&$(".selector-wrapper:eq(0)").prepend('<label for="ProductSelect-option-0">'+product.options[0].name+"</label>"),template_obj.find("form.variants .selector-wrapper label").each(function(i3,v){$(this).html(product.options[i3].name)})}else{template_obj.find("form.variants > select").remove();var variant_field='<input type="hidden" name="id" value="'+product.variants[0].id+'">';template_obj.find("form.variants").append(variant_field),pandora.customFormElements("#quantity-"+product.id)}},adjustQuickShopPopupPosition:function(){$(".quick-shop").css({position:"fixed",left:($(window).width()-$(".quick-shop").outerWidth())/2,top:($(window).height()-$(".quick-shop").outerHeight())/2,"max-height":$(window).height()-40}),$(".quick-shop > img").css({"max-height":$(window).height()-40})},closeQuickShopPopup:function(){if(pandora.quickshopCache!==null)$(".quick-shop").html(pandora.quickshopCache),pandora.quickshopCache=null,pandora.adjustQuickShopPopupPosition();else{$(".quick-shop").fadeOut(350),$(".lightbox").hide();var quickShopItem=$("#"+pandora.activeQuickshop);quickShopItem.html($(".quick-shop").html()),$(".quick-shop").html(""),pandora.activeQuickshop=null}},initProductLightbox:function(){$(".lightbox-launcher").live("click",function(){var elem=$(this),imgSrc=elem.attr("href");$(".lightbox").show(),$(".quick-shop").is(":visible")&&(pandora.quickshopCache=$(".quick-shop").html());var productImage=new Image;return productImage.onload=function(){$(".quick-shop").html(productImage),$(".quick-shop").append('<a href="#" class="close close-image"></a>'),pandora.adjustQuickShopPopupPosition(),$(".quick-shop").fadeIn(350,function(){pandora.adjustQuickShopPopupPosition()})},productImage.src=imgSrc,!1}),$(".lightbox, .close-image, .quick-shop > img").live("click",function(){return pandora.closeQuickShopPopup(),!1}),$(window).resize(function(){pandora.adjustQuickShopPopupPosition()})},initAccountLogin:function(){$(".template-customers-login").length>0&&(window.location.hash=="#recover"&&($("#login_form").hide(),$("#password_recovery").show()),$("#forgot_password").click(function(){return $("#login_form").fadeOut(200,function(){$("#password_recovery").fadeIn(200)}),!1}),$("#login").click(function(){return $("#password_recovery").fadeOut(200,function(){$("#login_form").fadeIn(200)}),!1}),$("#login_submit").click(function(){return $("#customer_login").submit(),!1}),$("#recover_submit").click(function(){return $(this).parents("form").submit(),!1}))},initAddressManage:function(){$(".template-customers-addresses").length>
10&&($(".edit-address-btn").click(function(){var editForm="edit_"+$(this).parents(".row").attr("id");return $("#"+editForm).slideDown(300),!1}),$(".address-edit-form-cancel").click(function(){return $(this).parents(".address-edit-form").slideUp(300),!1}))}};function chunk(arr,len){for(var chunks=[],i2=0,n=arr.length;i2<n;)chunks.push(arr.slice(i2,i2+=len));return chunks}
2//# sourceMappingURL=/cdn/shop/t/28/assets/theme.js.map?v=166607104930971241291711406322

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.