1 !function(){var a,b,c;if(a=document.getElementById("site-navigation"),a&&(b=a.getElementsByTagName("button")[0],"undefined"!=typeof b)){if(c=a.getElementsByTagName("ul")[0],"undefined"==typeof c)return void(b.style.display="none");c.setAttribute("aria-expanded","false"),-1===c.className.indexOf("nav-menu")&&(c.className+=" nav-menu"),b.onclick=function(){-1!==a.className.indexOf("toggled")?(a.className=a.className.replace(" toggled",""),b.setAttribute("aria-expanded","false"),c.setAttribute("aria-expanded","false")):(a.className+=" toggled",b.setAttribute("aria-expanded","true"),c.setAttribute("aria-expanded","true"))},jQuery(".main-navigation, .secondary-navigation").find("a").on("focus.storefront blur.storefront",function(){jQuery(this).parents().toggleClass("focus")}),jQuery(window).load(function(){jQuery(".site-header-cart").find("a").on("focus.storefront blur.storefront",function(){jQuery(this).parents().toggleClass("focus")})})}}(); 2 3jQuery(window).on('load', function(){ 4 5 // product list 6 jQuery('ul.products li.product .button').wrap('<div class="product-button-wrap"></div>'); 7 jQuery('.post-type-archive-product .products li').each(function(){ 8 jQuery( this ).find( 'img' ).wrap( '<div class="prod-img-wrap"></div>' ); 9 jQuery(this).find( '.prod-img-wrap' ).append( jQuery(this).find( '.product-button-wrap' ) ); 10 }); 11 12}); 13 14jQuery(document).ready(function(){ 15 var wooInfo = jQuery('.woocommerce-info'); 16 if( wooInfo.length>0 && wooInfo.closest('.container').length==0 ) { 17 wooInfo.addClass('container').css({ 18 'margin-left': 'auto', 19 'margin-right': 'auto', 20 }); 21 } 22}); 23 24 25/* footer fixed */ 26jQuery(document).ready( fixFooterBottom ); 27jQuery(window).resize( fixFooterBottom ); 28function fixFooterBottom(){ 29 var pageWidth = parseInt( jQuery( window ).outerWidth(), 10); 30 /* if page is less than 768px */ 31 if (pageWidth > 768){ 32 var bodyH = jQuery( 'body' ).outerHeight(); 33 var windowH = jQuery( window ).outerHeight(); 34 var footerSidebarHeight = jQuery('.shop_isle_footer_sidebar').outerHeight(); 35 if ( bodyH < windowH +footerSidebarHeight){ 36 jQuery( 'footer.footer' ).css({ 37 'position' : 'absolute', 38 'bottom' : '0', 39 'width' : '100%', 40 'z-index' : '9' 41 }); 42 jQuery( 'div.main' ).height( windowH-footerSidebarHeight ); 43 } 44 }else{ 45 jQuery( 'footer.footer' ).css({ 46 'position' : 'relative' 47 }); 48 jQuery( 'div.main' ).height( 'auto' ); 49 } 50} 51 52 53/*** DROPDOWN FOR MOBILE MENU */ 54var callback_mobile_dropdown = function () { 55 56 var navLi = jQuery('.navbar-nav li'); 57 58 navLi.each(function(){ 59 if ( jQuery(this).find('ul').length > 0 && !jQuery(this).hasClass('has_children') ){ 60 jQuery(this).addClass('has_children'); 61 jQuery(this).find('a').first().after('<p class="dropdownmenu"></p>'); 62 } 63 }); 64 jQuery('.dropdownmenu').click(function(){ 65 if( jQuery(this).parent('li').hasClass('this-open') ){ 66 jQuery(this).parent('li').removeClass('this-open'); 67 }else{ 68 jQuery(this).parent('li').addClass('this-open'); 69 } 70 }); 71 72}; 73jQuery(document).ready(callback_mobile_dropdown); 74 75 76/*** CENTERED MENU */ 77var callback_menu_align = function () { 78 79 var headerWrap = jQuery('.navbar-fixed-top'); 80 var navWrap = jQuery('.navbar-nav'); 81 var logoWrap = jQuery('.shop_isle_header_title'); 82 var containerWrap = jQuery('.container'); 83 var classToAdd = 'menu-align-center'; 84 85 if ( headerWrap.hasClass(classToAdd) ) 86 { 87 headerWrap.removeClass(classToAdd); 88 } 89 var logoWidth = logoWrap.outerWidth(); 90 var menuWidth = navWrap.outerWidth(); 91 var containerWidth = containerWrap.width(); 92 if ( menuWidth + logoWidth > containerWidth ) { 93 headerWrap.addClass(classToAdd); 94 } 95 else 96 { 97 if ( headerWrap.hasClass(classToAdd) ) 98 { 99 headerWrap.removeClass(classToAdd); 100 } 101 } 102 103 var module_header = jQuery('.page-module-header'); 104 var module_content = jQuery('.page-module-content'); 105 if( module_header.length>0 && jQuery('.module-cart-bottom').length<1 ) { 106 module_header.css( 'padding-top', padding_top ); 107 var padding_top = headerWrap.outerHeight()+50; 108 module_header.css( 'padding-top', padding_top ); 109 } else if( module_content.length>0 && jQuery('.module-cart-bottom').length<1 ) { 110 module_content.css( 'padding-top', padding_top ); 111 var padding_top = headerWrap.outerHeight()+75; 112 module_content.css( 'padding-top', padding_top ); 113 } 114 115} 116jQuery(window).on('load', callback_menu_align() ); 117jQuery(window).on('resize', callback_menu_align() );
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.