PageSourceSearch

https://yelmonline.com/js/rvb.js

js yelmonline.com collected 2026-10-02 09:56:44 UTC 2,955 bytes, 152 lines download raw bytes

1var rvb = rvb || {
2
3  ck: '_rvbck_20210720',
4
5  conditionalLoad: function(targetObj, minimumLength, callback)
6  {
7    if( !minimumLength ){
8      minimumLength = 1;
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      var date = new Date();
34      date.setTime(+ date + 86400000);
35      document.cookie = rvb.ck + "=1; expires=" + date.toUTCString() + "; path=/;";
36  },
37
38  pop: {
39
40    close: function(obj)
41    {
42      document.querySelector('.rvb-unit-pop').style.display = 'none';
43    },
44
45    load: function()
46    {
47
48      var targetObj = document.querySelector('.rvb-unit-pop');
49
50      window.setTimeout(function(){
51        var closeBtn = targetObj.querySelector('.rvb-pop-close');
52        if( closeBtn ){
53          closeBtn.style.display = 'block';
54        }
55      }, 0);
56
57      targetObj.style.display = 'block';
58      rvb.setCk();
59
60    }
61
62  },
63
64  push: {
65
66    timeout: null,
67    contractOk: false,
68    delayCollapseSeconds: 7,
69
70    load: function()
71    {
72
73      // Show it
74      var obj = rvb.push.obj();
75      console.log(obj);
76      if( obj.data('load-hidden') ){
77        obj.height("40px");
78        rvb.push.contractOk = true;
79      }
80      obj.show();
81
82      // Init collapse
83      if(
84        rvb.push.delayCollapseSeconds
85        && typeof rvb.push.delayCollapseSeconds == 'number'
86      ){
87        
88        rvb.push.obj().mouseenter(function(){
89          rvb.push.expand();
90        }).mouseleave(function(){
91          rvb.push.contract();
92        });
93
94        rvb.push.timeout = window.setTimeout(rvb.push.initContract, (rvb.push.delayCollapseSeconds * 1000));
95      }
96
97    },
98
99    expand: function()
100    {
101      var obj = rvb.push.obj();
102      if( obj.hasClass('height-440') ){
103        objHeight = "440px";
104      }else{
105        objHeight = "340px";
106      }
107      if(obj[0].clientHeight <= 40){
108      obj.animate({
109        height: objHeight
110      });
111    }
112    },
113
114    contract: function()
115    {
116      var obj = rvb.push.obj();
117      if( rvb.push.contractOk && obj[0].clientHeight >=340 ){
118        rvb.push.obj().animate({
119          height: "40px"
120        });
121      }
122    },
123
124    initContract: function()
125    {
126      window.clearTimeout(rvb.push.timeout);
127      rvb.push.contractOk = true;
128      rvb.push.contract();
129    },
130
131    obj: function()
132    {
133      return $('.rvb-unit-push');
134    }
135
136  },
137
138  peel: {
139
140    load: function()
141    {
142      rvb.peel.obj().show();
143    },
144
145    obj: function()
146    {
147      return $('.rvb-unit-peel');
148    }
149
150  }
151
152};

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.