PageSourceSearch

https://highdeserthearing.com/wp-content/themes/Audire/dist/assets/js/search.js?ver=1784038313

js highdeserthearing.com collected 2026-10-08 19:24:15 UTC 764 bytes, 29 lines download raw bytes

1(function () {
2  const MOBILE_BREAKPOINT = 1024;
3
4  function applyMobileState() {
5    const isMobile = window.innerWidth < MOBILE_BREAKPOINT;
6    $(".search__icon").each(function () {
7      $(this).next().toggleClass("active", isMobile);
8      $(this).toggleClass("active", isMobile);
9    });
10  }
11
12  // Apply on page load
13  applyMobileState();
14
15  // Re-apply on resize (debounced)
16  let resizeTimer;
17  $(window).on("resize", function () {
18    clearTimeout(resizeTimer);
19    resizeTimer = setTimeout(applyMobileState, 100);
20  });
21
22  // Click only applies on non-mobile
23  $(".search__icon").on("click", function () {
24    if (window.innerWidth >= MOBILE_BREAKPOINT) {
25      $(this).next().toggleClass("active");
26      $(this).toggleClass("active");
27    }
28  });
29})();

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.