PageSourceSearch

https://harrisondaily.com/js/rvb.js

js harrisondaily.com collected 2026-10-02 10:48:42 UTC 3,179 bytes, 170 lines download raw bytes

1var rvb = rvb || {
2
3  ck: '_rvbck',
4
5  conditionalLoad: function(targetObj, minimumLength, callback)
6  {
7    if( !minimumLength ){
8      minimumLength = 2;
9    }
10    window.setTimeout(function(){
11      var img = targetObj.querySelectorAll('img');
12      if( img.length >= minimumLength ){
13        
14        for(i=0; i<=(img.length-1); i++){
15          img[i].removeAttribute('width');
16          img[i].removeAttribute('height');
17        }
18
19        if( typeof(callback) == 'function' ){
20          callback();
21        }
22
23      }
24    }, 1000);
25  },
26
27  getCk: function() {
28      var v = document.cookie.match('(^|;) ?' + rvb.ck + '=([^;]*)(;|$)');
29      return v ? v[2] : null;
30  },
31
32  setCk: function() {
33      document.cookie = rvb.ck + "=1;path=/;";
34  },
35
36  pop: {
37
38    close: function(obj)
39    {
40      document.querySelector('.rvb-unit-pop').style.display = 'none';
41    },
42
43    load: function()
44    {
45
46      var targetObj = document.querySelector('.rvb-unit-pop');
47
48      window.setTimeout(function(){
49        var closeBtn = targetObj.querySelector('.rvb-pop-close');
50        if( closeBtn ){
51          closeBtn.style.display = 'block';
52        }
53      }, 5000);
54
55      targetObj.style.display = 'block';
56      rvb.setCk();
57
58    }
59
60  },
61
62  sticky: {
63
64    close: function(obj)
65    {
66      document.querySelector('.rvb-unit-sticky').style.display = 'none';
67    },
68
69    load: function()
70    {
71
72      var targetObj = document.querySelector('.rvb-unit-sticky');
73
74      window.setTimeout(function(){
75        var closeBtn = targetObj.querySelector('.rvb-sticky-close');
76        if( closeBtn ){
77          closeBtn.style.display = 'block';
78        }
79      }, 0);
80
81      targetObj.style.display = 'block';
82
83    }
84
85  },
86
87
88  push: {
89
90    timeout: null,
91    contractOk: false,
92    delayCollapseSeconds: 7,
93
94    load: function()
95    {
96
97      // Show it
98      var obj = rvb.push.obj();
99      if( obj.data('load-hidden') ){
100        obj.height("40px");
101        rvb.push.contractOk = true;
102      }
103      obj.show();
104
105      // Init collapse
106      if(
107        rvb.push.delayCollapseSeconds
108        && typeof rvb.push.delayCollapseSeconds == 'number'
109      ){
110        rvb.push.obj().mouseenter(function(){
111          rvb.push.expand();
112        }).mouseleave(function(){
113          rvb.push.contract();
114        });
115        rvb.push.timeout = window.setTimeout(rvb.push.initContract, (rvb.push.delayCollapseSeconds * 1000));
116      }
117
118    },
119
120    expand: function()
121    {
122      var obj = rvb.push.obj();
123      if( obj.hasClass('height-440') ){
124        objHeight = "440px";
125      }else{
126        objHeight = "340px";
127      }
128      obj.animate({
129        height: objHeight
130      });
131    },
132
133    contract: function()
134    {
135      if( rvb.push.contractOk ){
136        rvb.push.obj().animate({
137          height: "40px"
138        });
139      }
140    },
141
142    initContract: function()
143    {
144      window.clearTimeout(rvb.push.timeout);
145      rvb.push.contractOk = true;
146      rvb.push.contract();
147    },
148
149    obj: function()
150    {
151      return $('.rvb-unit-push');
152    }
153
154  },
155
156  peel: {
157
158    load: function()
159    {
160      rvb.peel.obj().show();
161    },
162
163    obj: function()
164    {
165      return $('.rvb-unit-peel');
166    }
167
168  }
169
170};

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.