1$(window).scroll(function(){$(window).trigger("window:scroll")});$(window).resize(function(){$(window).trigger("window:resize")});$(window).on("orientationchange",function(){$(window).trigger("window:orientationchange")});window.createCookie=function(name,value,days){if(days){var date=new Date;date.setTime(date.getTime()+days*24*60*60*1e3);var expires="; expires="+date.toGMTString()}else{var expires=""}bits=document.domain.split(".");tld=bits.pop();cookieDomain=bits.pop()+"."+tld;document.cookie=name+"="+value+expires+"; path=/; domain=."+cookieDomain};window.readCookie=function(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length)}return null};function jog_whizzywhig_images(){$("main img").each(function(index,element){var small=false;if(!small&&element.hasAttribute("width")){if(parseInt(element.getAttribute("width"))<500){small=true}}if(!small&&element.hasAttribute("alt")){if(element.getAttribute("alt").toLowerCase().indexOf("logo")!==-1){small=true}}if(!small&&element.hasAttribute("src")){if(element.getAttribute("src").toLowerCase().indexOf("logo")!==-1){small=true}}if(small){element.classList.add("not-huge")}})}$(jog_whizzywhig_images);function init_display_mode(){if(window.isTouch){console.log("device is touch");document.body.classList.add("tato")}else if(document.querySelector(".desktop-cushion")){console.log("starting cushion check");const observer=new ResizeObserver(entries=>{const cushion=entries[0];const w=cushion.contentRect.width;if(w<20){add_tato()}else{remove_tato()}});observer.observe(document.querySelector(".desktop-cushion"))}else{console.log("starting window width");$(window).on("window:resize window:orientationchange",jog_tato_by_window_width);jog_tato_by_window_width()}}function jog_tato_by_window_width(e,width){width=width||window.mediumBreakPoint||1200;console.log(`jog_tato_by_window_width(${width})`);if(window.innerWidth<width){add_tato()}else{remove_tato()}}function add_tato(){var dbh=document.querySelector(".desktop-banner-holder");var mhc=document.querySelector(".mobile-header-container");document.body.classList.add("tato");if(dbh){elements=Array.from(dbh.querySelectorAll("a, button, input, [aria-haspopup]"));elements.forEach(element=>{element.tabIndex=-1})}if(mhc){elements=Array.from(mhc.querySelectorAll("a, button, input"));elements.forEach(element=>{element.removeAttribute("tabIndex")});elements=Array.from(mhc.querySelectorAll("[aria-haspopup]"));elements.forEach(element=>{element.tabIndex=0})}}function remove_tato(){var dbh=document.querySelector(".desktop-banner-holder");var mhc=document.querySelector(".mobile-header-container");document.body.classList.remove("tato");if(dbh){elements=Array.from(dbh.querySelectorAll("a, button, input"));elements.forEach(element=>{element.removeAttribute("tabIndex")});elements=Array.from(dbh.querySelectorAll("[aria-haspopup]"));elements.forEach(element=>{element.tabIndex=0})}if(mhc){elements=Array.from(mhc.querySelectorAll("a, button, input, [aria-haspopup]"));elements.forEach(element=>{element.tabIndex=-1})}}$(init_display_mode);var isTouch="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;var smallBreakPoint=750;var mediumBreakPoint=1199;$(window).on("pw:pwopdown_initialize_end",function(){$(".mobile-header-container .non-text-holder.my-mallified-wrapper").remove();$(".mobile-header-container .non-text-holder .search-icon").remove()});console.log("/var/www/legacy/designs/house/com/header.js");console.log("header including /designs/universal/js/on-demand/pwopdown.js");class PWopdown{constructor(domNode){this.rootNode=domNode;this.controlledNodes=[];this.flyouts=[];this.openIndex=null;this.topLevelNodes=Array.from(this.rootNode.querySelectorAll("ul.primary > li > a, ul.primary > li > .icon"));this.topLevelNodes.forEach(node=>{node.addEventListener("keydown",this.onMenuKeyDown.bind(this));const menu=node.parentNode.querySelector("ul, .flyout");
1if(menu){node.setAttribute("aria-expanded","false");this.toggleMenu(menu,false);menu.onkeydown=function(evt){}}});this.rootNode.addEventListener("focusout",this.onBlur.bind(this))}get_current_top_level_index(){const index=this.topLevelNodes.indexOf(document.activeElement);if(index===-1){return this.openIndex}return index}get_flyout_at(index){return this.topLevelNodes[index].parentNode.querySelector("ul, .flyout")}get_current_sub_menu(){return Array.from(this.topLevelNodes[this.get_current_top_level_index()].parentNode.querySelectorAll("a, .icon"))}get_current_sub_menu_index(){return this.get_current_sub_menu().indexOf(document.activeElement)}onMenuKeyDown(event){var currentIndex=this.get_current_top_level_index();switch(event.key){case"Tab":return;break;case"Escape":this.topLevelNodes[this.openIndex].focus();this.toggleExpand(this.openIndex,false);break;case"ArrowUp":case"ArrowLeft":event.preventDefault();if(this.get_current_sub_menu_index()===0){var prevIndex=Math.max(0,currentIndex-1);this.topLevelNodes[prevIndex].focus()}else{var nextIndex=Math.max(1,this.get_current_sub_menu_index()-1);this.get_current_sub_menu()[nextIndex].focus()}break;case"ArrowDown":case"ArrowRight":event.preventDefault();if(this.get_current_sub_menu_index()===0){if(event.key==="ArrowDown"){this.get_current_sub_menu()[1].focus()}else{var nextIndex=Math.min(this.topLevelNodes.length-1,currentIndex+1);this.topLevelNodes[nextIndex].focus()}}else{var nextIndex=Math.min(this.get_current_sub_menu().length-1,this.get_current_sub_menu_index()+1);this.get_current_sub_menu()[nextIndex].focus()}break;case"Home":event.preventDefault();this.topLevelNodes[0].focus();break;case"End":event.preventDefault();this.topLevelNodes[this.topLevelNodes.length-1].focus();break;case" ":case"Enter":if(this.get_current_sub_menu_index()===0&&this.get_flyout_at(currentIndex)){event.preventDefault();var actionedIndex=this.topLevelNodes.indexOf(event.target);var expanded=event.target.getAttribute("aria-expanded")==="true";this.toggleExpand(actionedIndex,!expanded)}else{}break}return;var menuLinks=Array.prototype.slice.call(this.controlledNodes[this.openIndex].querySelectorAll("a"));var currentIndex=menuLinks.indexOf(document.activeElement);this.controlFocusByKey(event,menuLinks,currentIndex)}close(){this.toggleExpand(this.openIndex,false)}onBlur(event){var menuContainsFocus=this.rootNode.contains(event.relatedTarget);if(!menuContainsFocus&&this.openIndex!==null){this.toggleExpand(this.openIndex,false)}}toggleExpand(index,expanded){if(this.openIndex!==index){this.toggleExpand(this.openIndex,false)}if(this.topLevelNodes[index]){this.openIndex=expanded?index:null;this.topLevelNodes[index].setAttribute("aria-expanded",expanded);this.toggleMenu(this.get_flyout_at(index),expanded)}}toggleMenu(domNode,show){if(domNode){if(show){nav_show(domNode)}else{nav_hide(domNode)}}}}window.addEventListener("load",function(){var nav=document.querySelector("nav.primary");if(nav){window.drop_down=new PWopdown(nav)}},false);const flyout_animation_duration_ms=333;function nav_show(element){if(element){var now_visible_tabbable_elements=Array.from(element.querySelectorAll("input, button"));now_visible_tabbable_elements.forEach(node=>{node.setAttribute("tabindex","0")});element=$(element);element.stop().css({opacity:0}).css({display:"block"}).animate({opacity:1},flyout_animation_duration_ms)}}function nav_hide(element){if(element){var now_invisible_tabbable_elements=Array.from(element.querySelectorAll("input, button"));now_invisible_tabbable_elements.forEach(node=>{node.setAttribute("tabindex","-1")});element=$(element);element.stop().animate({opacity:0}
1,flyout_animation_duration_ms,function(){element.css({display:"none"})})}}function jog_search_container(){var it=$(".search-container");if(it.length){var parent=it.parent();it.css("left",parent[0].getBoundingClientRect().left*-1.02)}}$(window).on("window:resize window:orientationchange",jog_search_container);$(jog_search_container);$(function(){$("nav.primary ul > li").mouseleave(function(){var drop=$(this).find("ul, .flyout")[0]||false;if(drop){nav_hide(drop)}}).mouseenter(function(){var drop=$(this).find("ul, .flyout")[0]||false;if(drop){nav_show(drop)}})});function handle_mobile_nav_icon_click(e){console.log("handle_mobile_nav_icon_click()");$(window).trigger("mobile_nav:click_start");if($("html").hasClass("open-nav")){close_mobile_nav()}else{open_mobile_nav()}$(window).trigger("mobile_nav:click_complete")}function open_mobile_nav(){console.log("open_mobile_nav()");clearTimeout(close_mobile_nav_timeout);$(window).trigger("mobile_nav:open_start");$("html").addClass("open-nav");$(".open-panel").addClass("active");jog_mobile_nav_height();$(window).trigger("mobile_nav:open_complete")}function close_mobile_nav(){console.log("close_mobile_nav()");$(window).trigger("mobile_nav:close_start");$("html").removeClass("open-nav");$(".open-panel").removeClass("active");$("ul.primary").children("li").removeClass("js-active");$(window).trigger("mobile_nav:close_complete")}function close_mobile_nav_after_a_moment(){console.log("close_mobile_nav_after_a_moment()");close_mobile_nav_timeout=setTimeout(close_mobile_nav,moment_ms)}function jog_mobile_nav_height(){const max_height=window.innerHeight-105;const count=$(".mobile-header-container nav.primary li:visible").length;var lis=$(".mobile-header-container nav.primary li:visible:not(.non-text-holder)");const h=lis.last().outerHeight();var new_height=h*count+40+20;if(new_height>max_height){new_height=max_height}$(".mobile-header-container nav.primary").css("height",new_height+"px")}function handle_mobile_nav_click(e){var target=$(e.target).closest("li");var ul=target.closest("ul");if(ul.hasClass("drop")){return}target.siblings(".js-active").removeClass("js-active");$("ul.primary *").blur();target.focus();if(!target.hasClass("js-active")){$(target).addClass("js-active");jog_mobile_nav_height();e.preventDefault();e.stopPropagation()}else{}}$(function(){$(window).trigger("pw:pwopdown_initialize_start");$(".hours-weather-holder").clone().prependTo($(".mobile-header-container"));var nav=$("nav.primary").clone();nav.find("div.container div.menu div.container, li.accessibility-icon, li.mobile-header-container, li.divider-x, li.search-icon-wrapper").remove();nav.appendTo($(".mobile-header-container"));$(".pwofile-placard.flyout.my-mall").clone().appendTo(".mobile-header-container").css({right:"10px",width:"calc(100vw - 40px)"});$(".mobile-header-container li.drop-parent").on("click",handle_mobile_nav_click);$(".open-panel").click(handle_mobile_nav_icon_click);document.addEventListener("click",e=>{const _mobile_mymall_flyout=document.querySelector(".mobile-header-container .pwofile-placard.flyout.my-mall");const _mobile_mymall_opener=document.querySelector(".mobile-header-container .open-my-mall");if(_mobile_mymall_flyout&&_mobile_mymall_opener){if(_mobile_mymall_flyout.contains(e.target)){}else{if(_mobile_mymall_opener.contains(e.target)){if($("html").hasClass("open-nav")){if(typeof close_mobile_nav==="function")close_mobile_nav();if(typeof murger_close==="function")murger_close()}nav_show(_mobile_mymall_flyout)}else{nav_hide(_mobile_mymall_flyout)}}}});document.addEventListener("click",e=>{const _mobile_header_container=document.querySelector(".mobile-header-container");if(_mobile_header_container){if(_mobile_header_container.contains(e.target)){var href=$(e.target).attr("href")||false;if(href&&href.indexOf("#")!==-1){if(href[0]==="#"||URL.parse(href,window.location.href).pathname===window.location.pathname){if(typeof close_mobile_nav==="function")close_mobile_nav();if(typeof murger_close==="function")murger_close()}}}}});$(window).on("window:resize window:orientationchange",function(){var flyouts=Array.from(document.querySelectorAll(".flyout, .drop"));
1flyouts.forEach(element=>nav_hide(element))});$("nav .open-my-mall").click(e=>{var target=$(e.target);var parent=target.closest("li");var a=parent.find(".cta:visible a").first()||false;if(a)location.href=a.attr("href")});$("nav .non-text-holder > .search-icon").click(e=>{var target=$(e.target);target.closest("li").find("input").focus()});$(".SEWsearchForm input.search-field").keydown(function(e){if(e.keyCode==13){var field=$(e.target);SEWsearchFormSubmit(field.val());return false}});$(".SEWsearchForm button.search-submit").click(function(e){var field=$(e.target).parent().parent().parent().find("input.search-field");SEWsearchFormSubmit(field.val())});$(window).trigger("pw:pwopdown_initialize_end")});
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.