PageSourceSearch

https://www.14oranges.com/wp-content/cache/autoptimize/js/autoptim…4c1e23fb50090ca4ffc2aac04a8545.js?ver=7.1.2

js 14oranges.com collected 2026-09-24 12:34:50 UTC 5,711 bytes, 22 lines download raw bytes

1(function(){var container,button,menu,links,i,len;container=document.getElementById('site-navigation');if(!container){return;}
2button=container.getElementsByClassName('menu-toggle')[0];if('undefined'===typeof button){return;}
3menu=container.getElementsByTagName('ul')[0];if('undefined'===typeof menu){button.style.display='none';return;}
4if(-1===menu.className.indexOf('nav-menu')){menu.className+=' nav-menu';}
5button.onclick=function(){if(-1!==container.className.indexOf('main-small-navigation')){container.className=container.className.replace('main-small-navigation','main-navigation');}else{container.className=container.className.replace('main-navigation','main-small-navigation');}};links=menu.getElementsByTagName('a');for(i=0,len=links.length;i<len;i++){links[i].addEventListener('focus',toggleFocus,true);links[i].addEventListener('blur',toggleFocus,true);}
6function toggleFocus(){var self=this;while(-1===self.className.indexOf('nav-menu')){if('li'===self.tagName.toLowerCase()){if(-1!==self.className.indexOf('focus')){self.className=self.className.replace(' focus','');}else{self.className+=' focus';}}
7self=self.parentElement;}}})();(function(){var container;container=document.getElementById('site-navigation');(function(container){var touchStartFn,i,parentLink=container.querySelectorAll('.menu-item-has-children > a, .page_item_has_children > a');if(('ontouchstart'in window)&&(window.matchMedia("( min-width: 768px ) ").matches)){touchStartFn=function(e){var menuItem=this.parentNode,i;if(!menuItem.classList.contains('focus')){e.preventDefault();for(i=0;i<menuItem.parentNode.children.length;++i){if(menuItem===menuItem.parentNode.children[i]){continue;}
8menuItem.parentNode.children[i].classList.remove('focus');}
9menuItem.classList.add('focus');}else{menuItem.classList.remove('focus');}};for(i=0;i<parentLink.length;++i){parentLink[i].addEventListener('touchstart',touchStartFn,false);}}}(container));})();(function(){var subMenu;jQuery('.main-navigation ul li.menu-item-has-children a, .main-navigation ul li.page_item_has_children a').on({'mouseover touchstart':function(){function isElementInViewport(subMenu){if('function'===typeof jQuery&&subMenu instanceof jQuery){subMenu=subMenu[0];}
10if('function'===typeof subMenu.getBoundingClientRect){var rect=subMenu.getBoundingClientRect();if(rect.right+2>(window.innerWidth||document.documentElement.clientWidth)){return'spacious-menu--left';}else if(rect.left<0){return'spacious-menu--right';}else{return false;}}}
11subMenu=jQuery(this).next('.sub-menu, .children');if(subMenu.length>0){var viewportClass=isElementInViewport(subMenu);if(false!==viewportClass){subMenu.addClass(viewportClass);}}}});})();(function(){jQuery(document).ready(function(){var mainWrapper=document.querySelector('#header-text-nav-container .inner-wrap'),branding=document.getElementById('header-left-section'),headerAction=document.querySelector('.header-action'),navigation=document.getElementById('site-navigation'),mainWidth=mainWrapper?mainWrapper.offsetWidth:0,brandWidth=branding?branding.offsetWidth:0,navWidth=navigation?navigation.offsetWidth:0,headerActionWidth=headerAction?headerAction.offsetWidth:0,isExtra=(brandWidth+navWidth+headerActionWidth)>mainWidth,more=navigation?navigation.getElementsByClassName('tg-menu-extras-wrap')[0]:'',headerDisplayTypeFour=document.getElementsByClassName('spacious-header-display-four')[0];if(headerDisplayTypeFour){isExtra=(navWidth+headerActionWidth)>=mainWidth;}
12if(!navigation.classList.contains('tg-extra-menus')){return;}
13function Dimension(el){var elWidth;if(document.all){elWidth=el.currentStyle.width+parseInt(el.currentStyle.marginLeft,10)+parseInt(el.currentStyle.marginRight,10)+parseInt(el.currentStyle.paddingLeft,10)+parseInt(el.currentStyle.paddingRight,10);}else{elWidth=parseInt(document.defaultView.getComputedStyle(el,'').getPropertyValue('width'))+parseInt(document.defaultView.getComputedStyle(el,'').getPropertyValue('margin-left'))+parseInt(document.defaultView.getComputedStyle(el,'').getPropertyValue('margin-right'));}
14return elWidth;}
15if(!isExtra){more.parentNode.removeChild(more);}else{var widthToBe,buttons,buttonWidth,moreWidth;widthToBe=mainWidth-headerActionWidth;
15if(!headerDisplayTypeFour){widthToBe=widthToBe-brandWidth;}
16buttons=navigation.getElementsByClassName('tg-header-button-wrap')[0];buttonWidth=buttons?Dimension(buttons):0;moreWidth=more?Dimension(more):0;newNavWidth=widthToBe-(buttonWidth+moreWidth);navigation.style.visibility='none';navigation.style.width=newNavWidth+'px';function getChildNodes(node){var children=[];for(var child in node.childNodes){if(typeof node!=='undefined'){if(1===node.childNodes[child].nodeType){children.push(node.childNodes[child]);}}}
17return children;}
18var navUl=navigation.getElementsByClassName('nav-menu')[0],navLi=getChildNodes(navUl);function offset(el){var rect=el.getBoundingClientRect(),scrollLeft=window.pageXOffset||document.documentElement.scrollLeft,scrollTop=window.pageYOffset||document.documentElement.scrollTop;return{top:rect.top+scrollTop,left:rect.left+scrollLeft}}
19var extraLi=[];for(var liCount=0;liCount<navLi.length;liCount++){var initialPos,li,posTop;li=navLi[liCount];posTop=offset(li).top;if(0===liCount){initialPos=posTop;}
20if(posTop>initialPos){if(!li.classList.contains('header-action')&&!li.classList.contains('tg-menu-extras-wrap')&&!li.classList.contains('tg-header-button-wrap')){extraLi.push(li);}}}
21var newNavWidth=newNavWidth+(buttonWidth+moreWidth),extraWrap=document.getElementById('tg-menu-extras');if(!headerDisplayTypeFour){newNavWidth=newNavWidth-30;}
22navigation.style.width=newNavWidth+'px';if(null!==extraWrap){extraLi.forEach(function(item,index,arr){extraWrap.appendChild(item);});}}});}());

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.