{"request":{"hurl":"https:\/\/antiaginglove.com\/wp-content\/themes\/pmgizmo\/js\/navigation.js","inline":"","enable_minification":true,"type":"js","handle":"pmthemes-jquery-navigation","version":false},"log":{"url":"\/wp-content\/themes\/pmgizmo\/js\/navigation.js","success":true},"code":"jQuery(document).ready(function($){var body=$('body'),_window=$(window),nav,button,menu;nav=$('.main-navigation');button=nav.find('.menu-toggle');menu=nav.find('.nav-menu');$(function(){if(body.is('.sidebar')){var sidebar=$('#secondary .widget-area'),secondary=(0===sidebar.length)?-40:sidebar.height(),margin=$('#tertiary .widget-area').height()-$('#content').height()-secondary;if(margin>0&&_window.innerWidth()>999){$('#colophon').css('margin-top',margin+'px')}}});(function(){if(!nav||!button){return}\nif(!menu||!menu.children().length){button.hide();return}\nbutton.on('click.pmthemes',function(){nav.toggleClass('toggled-on');if(nav.hasClass('toggled-on')){$(this).attr('aria-expanded','true');menu.attr('aria-expanded','true')}else{$(this).attr('aria-expanded','false');menu.attr('aria-expanded','false')}});if('ontouchstart' in window){menu.find('.menu-item-has-children > a, .page_item_has_children > a').on('touchstart.pmthemes',function(e){var el=$(this).parent('li');if(!el.hasClass('focus')){e.preventDefault();el.toggleClass('focus');el.siblings('.focus').removeClass('focus')}})}\nmenu.find('a').on('focus.pmthemes blur.pmthemes',function(){$(this).parents('.menu-item, .page_item').toggleClass('focus')})})();function onResizeARIA(){if(643>_window.width()){button.attr('aria-expanded','false');menu.attr('aria-expanded','false');button.attr('aria-controls','primary-menu')}else{button.removeAttr('aria-expanded');menu.removeAttr('aria-expanded');button.removeAttr('aria-controls')}}\n_window.on('load.pmthemes',onResizeARIA).on('resize.pmthemes',function(){onResizeARIA()});$('#topnav-icon').on('click',function(){$('#topnav-menu').slideToggle();$(this).toggleClass('active')});$('#footernav-icon').on('click',function(){$('#footernav-menu').slideToggle();$(this).toggleClass('active')});$('.search-icon').on('click',function(){$('#wrapper .search-form-top').slideToggle();$(this).toggleClass('active')});$('.scrollToTop').hide();$(window).scroll(function(){if($(this).scrollTop()>100){$('.scrollToTop').fadeIn(300)}else{$('.scrollToTop').fadeOut(300)}});$('.scrollToTop').click(function(){$('html, body').animate({scrollTop:0},500);return!1});$(window).scroll(function(){if(screen.width>=1340){var yPos=($(window).scrollTop());if(yPos>165){$(\".stickynav\").fadeIn()}else{$(\".stickynav\").fadeOut()}}})});\n","status":true}