PageSourceSearch

https://www.homemenorca.com/scripts/menuSkin.js?v=134338478049308637

js homemenorca.com collected 2026-09-25 07:07:16 UTC 6,763 bytes, 1 lines download raw bytes

1top.MobileMenuSkin||(top.MobileMenuSkin=function(){var r=function(t,i){var r=t.dataExpansion,u=new SimplePromise,f;return r.type=="categories"&&DataApi.DataLink.ListCategoriesWithProducts&&(f=new DataApi.RequestParams,f.set("urlescaped",!0),DataApi.with(DataApi.DataLink.ListCategoriesWithProducts,f.serialize()).do(function(f,e,o,s){var p,w,v,y,h,l,s,c,a;if(e){if(r.params&&(p=new DataApi.RequestParams(r.params),(w=(p.get("pcids")+"").split(",").shift())&&(v=function(n){for(var i,t=0;t<n.length;t++)if(n[t].ID==w&&(i=n[t].Childs),!i&&n[t].Childs&&(i=v(n[t].Childs)),i)break;return i},e=v(e),!e))){u.resolve(i);return}for(i.level0||(i.level0=[]),y=function(i,r,u){var f,o,e,s;if(u+=(r>2?"-":"")+i.UrlSafeName,f=n(t,i,u),!f)return null;if(o="level"+r,f[o]=[],i.Childs)for(e=0;e<i.Childs.length;e++)s=y(i.Childs[e],r+1,u),s&&(f[o].push(s),i.Childs[e]=s);return f.childCount=f[o].length,f},l=0;l<e.length;l++){if(h=e[l],s="/"+h.UrlSafeName,c=n(t,h,s),oMainItemChild=n(t,h,s),h.Childs){for(c.level1=[],a=0;a<h.Childs.length;a++)s="/",c.level1.push(y(h.Childs[a],2,s)),oMainItemChild.childs=c.level1;c.childCount=c.level1.length}t.childs.push(oMainItemChild);i.level0.push(c)}}u.resolve(i)})),u},n=function(n,t,i){var r={type:"iMenuRender",menuName:t.Name??t.menuName,menuSchema:t.menuSchema??n.menuSchema+t.ID,pageSchema:n.pageSchema,linkUrl:"javascript:void(0)",hasSubMenu:t.Childs&&t.Childs.length>0?!0:!1,childs:t.Childs??t.childs??[],linkTarget:n.linkTarget};return WebApp.isLive()&&(r.linkUrl=n.linkUrl+i),r},u=function(t,i,u){var c=new SimplePromise,h=[],s,l,a,e,o,f;if(i){for(l=function(n){if(n.menuSchema==i)return s=n,!0;if(n.childs)for(var t=0;t<n.childs.length;t++)if(l(n.childs[t]))return!0},a=WebApp.siteMapRender,f=0;f<a.length;f++)if(l(a[f]))break;s&&(h=s.childs)}else h=WebApp.siteMapRender;if(h||u){for(e={},e.level0=[],s&&(e.hasParent=!0,e.parentName=s.menuName,e.parentLinkUrl=s.linkUrl,e.parentPageSchema=s.pageSchema),f=0;f<h.length;f++)s?h[f].menuName?(o=h[f],o.hasSubMenu=o.dataExpansion||o.childCount>0?!0:!1,e.level0.push(o)):(o=n(s,h[f],""),o.hasSubMenu=o.childs.length>0?!0:!1,e.level0.push(o)):(o=h[f],o.hasSubMenu=o.dataExpansion||o.childCount>0?!0:!1,e.level0.push(o));if(s&&s.dataExpansion)r(s,e).then(function(n){c.resolve(n)});else{if(u&&e.childCount<3)for(f=e.childCount;f<3;f++)e.level0.push(Engine.SiteMapItem.getEmptyIMenuRender());c.resolve(e)}}else c.resolve(null);return c},f=function(n,i,r){var f=$("#"+n).attr("data-skin"),u,e;return!WebApp.isLive()&&f!="MobileMenuSkin"&&$("#"+n+"_MobileMenu").hasClass("MobileMenuSkin")&&(f="MobileMenuSkin"),u=i?i.data("schema"):"",e=new SimplePromise,this.getStructure(n,u,r).then(function(r){var o,h,s;!WebApp.isLive()&&r&&(r.backText=$("#"+n+"_MobileMenu .PanelBackText").first().text());o=$(WebApp.SiteMenu.renderSkin(f,r));o.find(".Expandable").off("click").on("click",{plugin:n},t);if(!WebApp.isLive()&&$("#"+n+":not(.Locked)").length)o.find(".WebLink:not(.Expandable)").on("click",function(n){var t=$(this).closest(".SitePage, .PanelHeader").attr("data-page-schema");t&&Editor.preview(t);n.stopImmediatePropagation()});WebApp.isLive()?i&&i.length?(s=i.closest(".MenuPanel"),o.find(".MenuPanel").attr("data-track",u).find(".PanelBackHandle").attr("data-backtrack",s.data("track")),s.length?s.after(o.find(".MenuPanel")):$("#"+n+"_MobileMenu").append(o)):(o.find(".MenuPanel").attr("data-track","root"),$("#"+n+"_MobileMenu").append(o)):i&&i.length?(s=i.closest(".MenuPanel"),h=o.find(".MenuPanel"),h.first().attr("data-track",u).find(".PanelBackHandle").attr("data-backtrack",s.data("track")),s.length?s.after(h):$("#"+n+"_MobileMenu").append(o)):$("#"+n+"_MobileMenu").append(o);e.resolve(o)}),e},e=function(){$(".MobileMenu.EditorPreview").remove();$(".MobileMenu_Modal.EditorPreview").remove();$("body").removeClass("MobileOpen")},o=function(){if(!WebApp.isLive()){var t=top.$||$,n=t("#appDesignMenu");n.find(".applyButton").add(n.children("a.headerButton:not(.applyButton)")).off("click.menuPreviewCleanup").one("click.menuPreviewCleanup",e)}},s=function(n,r,u){var f,h,s,e,c;console.log("_showSubMenu");o();f=$("#"+n+"_MobileMenu");
1WebApp.isLive()?f.closest(".Section").before(f):$("body").append(f.addClass("EditorPreview"));f.find(".Expandable").off("click").on("click",{plugin:n},t);(h=$(".MobileMenu_Modal")).length==0?WebApp.isLive()?f.before('<div class="MobileMenu_Modal" style="display:block"><\/div>'):$("#siteWorkArea").append('<div class="MobileMenu_Modal EditorPreview" style="display:block"><\/div>'):(h.css("display","block"),WebApp.isLive()||$("#siteWorkArea").append(h.addClass("EditorPreview")));$("body").addClass("MobileOpen");r&&r.length?(s=r.closest(".MenuPanel"),e=f.find('.MenuPanel[data-track="'+r.data("schema")+'"]:last'),!s.next(".MenuPanel")[0]!=e[0]&&s.after(e)):e=f.children(".dropMenu");c=function(t){var r,u,e,o,h;if(s&&s.length!=0)t.show(),o=f.find(".MenuPanelStrip"),h=parseInt(o.css("left")),f.find(".MenuPanelStrip").animate({left:h+f.width()*-1});else{if(r={top:"0px",left:f.width()*-1+"px",display:"block",opacity:.7},WebApp.isLive()||(u=$("#appHeader").outerHeight()||0,r.top=u+"px",r.height="calc(100% - "+u+"px)"),f.css(r).animate({left:"0px",opacity:1}),t.stop().fadeIn(),e={plugin:n},$("#"+n+":not(.Locked)").length){$(".MobileMenu_Modal").off("click").on("click",e,i);f.find(".MenuClose").off("click").on("click",e,i)}WebApp.CurrPageID&&$("#"+WebApp.CurrPageID+".SitePage").addClass("selected")}};e.length?c(e):this.renderLevels(n,r,u).then(c)},t=function(n){n.preventDefault();n.stopPropagation();MobileMenuSkin.showSubMenu(n.data.plugin,$(this).closest(".SitePage"))},h=function(n){var t=$(n).closest(".MobileMenuSkin"),i=$(n).closest(".MenuPanel"),f=i.prevAll('.MenuPanel[data-track="'+$(n).data("backtrack")+'"]').show(),r=t.find(".MenuPanelStrip"),u=parseInt(r.css("left"));r.animate({left:u-t.width()*-1},function(){i.hide()})},i=function(n){$(".MobileMenu_Modal").off("click").hide();$("body").removeClass("MobileOpen");var t=$("#"+n.data.plugin+"_MobileMenu");t.stop().animate({left:t.width()*-1+"px",opacity:1},function(){$(this).hide()})},c=function(n){var t=this;$("#"+n+":not(.Locked)").off("click").on("click",function(){t.showSubMenu(n)})};return{showSubMenu:s,getStructure:u,renderLevels:f,bind:c,back:h}}(),WebApp.SiteMenu.extend(MobileMenuSkin));top.BasicMenuSkin||(top.BasicMenuSkin=function(){var n=function(n,t,i){console.log("_showSubMenu");var r=t.children(".dropMenu");r.length!=0&&t.data("preloaded")?r.stop().fadeIn():(t.data("preloaded",!0),this.renderLevels(n,t,i).then(function(n){n.length&&n[0].children&&n[0].children.length&&t[0].getBoundingClientRect().x/$(window).width()>.6&&t.addClass("OpenRight");n.stop().fadeIn()}))};return{showSubMenu:n,maxDepth:1}}(),WebApp.SiteMenu.extend(BasicMenuSkin))

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.