PageSourceSearch

https://naturalon.com/wp-content/themes/maxmag/js/ouibounce.js

js naturalon.com collected 2026-10-02 10:22:56 UTC 1,685 bytes, 68 lines download raw bytes

1function ouibounce(el, config) {
2    function fire() {
3    }
4
5    function disable() {
6    }
7
8    return {
9        fire: fire,
10        disable: disable
11    };
12/*
13  var config     = config || {},
14    aggressive   = config.aggressive || false,
15    sensitivity  = setDefault(config.sensitivity, 20),
16    timer        = setDefault(config.timer, 1000),
17    callback     = config.callback || function() {},
18    cookieExpire = config.cookieExpire || 10,
19    _html        = document.getElementsByTagName('html')[0];
20
21  function setDefault(_property, _default) {
22    return typeof _property === 'undefined' ? _default : _property;
23  }
24
25  setTimeout(attachOuiBounce, timer);
26  function attachOuiBounce() {
27    _html.addEventListener('mouseout', handleMouseout);
28    _html.addEventListener('keydown', handleKeydown);
29  }
30
31  function handleMouseout(e) {
32    if (e.clientY > sensitivity || (checkCookieValue('viewedOuibounceModal', 'true') && !aggressive)) return;
33    fire();
34    callback();
35  }
36
37 
38  var disableKeydown = false;
39  function handleKeydown(e) {
40    if (disableKeydown || checkCookieValue('viewedOuibounceModal', 'true') && !aggressive) return;
41    else if(!e.metaKey || e.keyCode != 76) return;
42
43    disableKeydown = true;
44    fire();
45    callback();
46  }
47
48  function checkCookieValue(cookieName, value) {
49    return jQuery.cookie(cookieName) === value;
50  }
51
52  function fire() {
53    //el.style.display = 'block';
54    //disable();
55  }
56
57  function disable() {
58    //  jQuery.cookie('viewedOuibounceModal', 'true', { expires: cookieExpire, path: '/' });
59    //
60    //_html.removeEventListener('mouseout', handleMouseout);
61  }
62
63  return {
64    fire: fire,
65    disable: disable
66  };
67  */
68}

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.