Home Search: Yamatake Honeywell
×

4 results for Yamatake Honeywell

4 results
// ── Search loading overlay ──────────────────────────────────── (function() { // Create overlay element var overlay = document.createElement('div'); overlay.id = 'gwpSearchOverlay'; overlay.innerHTML = '
' + '' + '' + '' + '

Searching…

' + '
'; document.body.appendChild(overlay); function showOverlay() { overlay.classList.add('visible'); } // Intercept all window.location navigations to /search/ // by patching the search keydown and click handlers function patchNavigation() { // Header search — Enter key var inp = document.getElementById('gwpSearch'); if (inp) { inp.addEventListener('keydown', function(e) { if (e.key === 'Enter') { var items = document.querySelectorAll('.gwp-search-result'); var activeItem = false; items.forEach(function(el) { if (el.classList.contains('active')) activeItem = true; }); if (!activeItem && inp.value.trim().length > 1) showOverlay(); } }, true); // capture phase — fires before the main handler } // Header search — clicking a "see all results" footer link document.addEventListener('click', function(e) { var t = e.target.closest('a'); if (!t) return; var href = t.getAttribute('href') || ''; if (href.indexOf('/search/') === 0 || href.indexOf('/search/?') === 0) { showOverlay(); } }); // Homepage hero search button var hpBtn = document.getElementById('hpSearchBtn'); if (hpBtn) { hpBtn.addEventListener('click', showOverlay); } var hpInp = document.getElementById('hpSearchInput'); if (hpInp) { hpInp.addEventListener('keydown', function(e) { if (e.key === 'Enter' && hpInp.value.trim().length > 0) showOverlay(); }, true); } // 404 page search button var e404Btn = document.getElementById('e404SearchBtn'); if (e404Btn) { e404Btn.addEventListener('click', showOverlay); } // Search page own form filters (brand, condition, instock toggle) document.addEventListener('click', function(e) { var t = e.target.closest('.gwp-sf-toggle, .gwp-sf-brand, .gwp-sf-cond, .gwp-pager-btn, .gwp-pager-num'); if (t) showOverlay(); }); } // Hide overlay when page becomes visible again (back button) document.addEventListener('visibilitychange', function() { if (!document.hidden) overlay.classList.remove('visible'); }); if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', patchNavigation); } else { patchNavigation(); } })();