PageSourceSearch

https://carivan.nl/wp-content/plugins/wp-catfish/assets/catfish.js?ver=1.0.5

js carivan.nl collected 2026-10-10 01:18:24 UTC 1,190 bytes, 53 lines download raw bytes

1(function () {
2  'use strict';
3
4  var KEY = 'wpcf_catfish_closed';
5
6  function hide(el) {
7    try {
8      sessionStorage.setItem(KEY, '1');
9    } catch (e) {
10      /* ignore */
11    }
12    el.classList.add('is-closed');
13    el.style.display = 'none';
14    if (el.parentNode) {
15      el.parentNode.removeChild(el);
16    }
17  }
18
19  function init() {
20    var el = document.getElementById('wpcf-catfish');
21    if (!el) return;
22
23    try {
24      if (sessionStorage.getItem(KEY) === '1') {
25        hide(el);
26        return;
27      }
28    } catch (e) {
29      /* ignore */
30    }
31
32    var btn = document.getElementById('wpcf-close') || el.querySelector('.wpcf-close');
33    if (!btn) return;
34
35    function onClose(e) {
36      e.preventDefault();
37      e.stopPropagation();
38      if (e.stopImmediatePropagation) e.stopImmediatePropagation();
39      hide(el);
40      return false;
41    }
42
43    btn.addEventListener('click', onClose, true);
44    btn.addEventListener('mousedown', onClose, true);
45    btn.addEventListener('touchstart', onClose, { capture: true, passive: false });
46  }
47
48  if (document.readyState === 'loading') {
49    document.addEventListener('DOMContentLoaded', init);
50  } else {
51    init();
52  }
53})();

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.