PageSourceSearch

https://www.nordfjord.no/themes/custom/citybreakweb/cb_nordfjord/js/visitsearch-overlay.js?tm8atk

js nordfjord.no collected 2026-10-02 10:55:17 UTC 718 bytes, 23 lines download raw bytes

1(function (Drupal, once) {
2  Drupal.behaviors.visitsearchOverlay = {
3    attach(context) {
4      once('visitsearch-open', '[data-visitsearch-open]', context).forEach((openBtn) => {
5        openBtn.addEventListener('click', function (e) {
6          e.preventDefault();
7
8          // Find the real working search button in the header block.
9          const realSearchBtn = document.querySelector(
10            '#block-cb-nordfjord-visitsearch .wrapper-search.searchLink button'
11          );
12
13          if (!realSearchBtn) {
14            console.warn('[VisitSearch] Real header search button not found.');
15            return;
16          }
17
18          realSearchBtn.click();
19        });
20      });
21    }
22  };
23})(Drupal, once);

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.