1/*jQuery(document).ready(function($) { 2 // Add + icons for items with submenu 3 $('.custom-nav-menu li.menu-item-has-children').each(function() { 4 if (!$(this).find('> .nav-toggle-icon').length) { 5 $(this).children('a').after('<span class="nav-toggle-icon">+</span>'); 6 } 7 }); 8 9 // Toggle submenu on icon click 10 $(document).on('click', '.nav-toggle-icon', function(e) { 11 e.preventDefault(); 12 var $submenu = $(this).siblings('.sub-menu'); 13 if ($submenu.is(':visible')) { 14 $submenu.slideUp(200); 15 $(this).text('+'); 16 } else { 17 $submenu.slideDown(200); 18 $(this).text('â'); 19 } 20 }); 21 22 // Flip submenu if overflowing viewport 23 $('.custom-nav-menu li').hover(function() { 24 var $submenu = $(this).children('.sub-menu'); 25 if ($submenu.length) { 26 $submenu.removeClass('open-left'); 27 var off = $submenu.offset(); 28 var w = $submenu.outerWidth(); 29 var vw = $(window).width(); 30 if (off && off.left + w > vw) { 31 $submenu.addClass('open-left'); 32 } 33 } 34 }); 35 36 37 38 (function () { 39 40 const customSVG = ` 41 <svg width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"> 42 <line x1="4" y1="4" x2="20" y2="20" stroke="currentColor" stroke-width="2" /> 43 <line x1="20" y1="4" x2="4" y2="20" stroke="currentColor" stroke-width="2" /> 44 </svg> 45 `; 46 47 const timer = setInterval(function () { 48 49 const closeBtn = document.querySelector( 50 '.dialog-lightbox-close-button' 51 ); 52 53 if (!closeBtn) return; 54 55 //remove href instead of javascript:void(0) 56 closeBtn.removeAttribute('href'); 57 58 // replace icon HTML with custom SVG 59 closeBtn.innerHTML = customSVG; 60 61 // run only once 62 clearInterval(timer); 63 64 }, 300); 65 66 })(); 67}); 68 */ 69 70 71 72 73 jQuery(document).ready(function ($) { 74 75 function isMobile() { 76 return window.innerWidth <= 1025; 77 } 78 79 $(document).on('elementor/popup/show', function () { 80 if (isMobile()) { 81 $('body').addClass('dialog-container').css('overflow', 'hidden'); 82 } 83 }); 84 85 $(document).on('elementor/popup/hide', function () { 86 $('body') 87 .removeClass('dialog-container') 88 .css('overflow', 'auto'); 89 }); 90 91}); 92 93 94jQuery(document).on('submit', '.search-popup form.hfe-search-button-wrapper', function (e) { 95 const val = jQuery(this).find('input[name="s"]').val(); 96 97 if (!val || val.trim() === '') { 98 e.preventDefault(); 99 jQuery(this).find('input[name="s"]').focus(); 100 } 101}); 102 103 104jQuery(document).on('elementor/popup/show', function () { 105 // Allow zoom even when popup is open 106 document.body.style.touchAction = 'auto'; 107 document.documentElement.style.touchAction = 'auto'; 108}); 109 110jQuery(document).on('elementor/popup/hide', function () { 111 document.body.style.touchAction = ''; 112 document.documentElement.style.touchAction = ''; 113});
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.