PageSourceSearch

https://pprgiveawaysandfreebies.com/container/002617trala_ver-1.1.0.js

js pprgiveawaysandfreebies.com collected 2026-09-26 01:28:37 UTC 7,601 bytes, 170 lines download raw bytes

1//<script>
2// pinterest widget by milotree
3// get your customized version at: http://milotree.com/
4if (document.getElementById('milotree_box') === null) {
5  var milotree_div;
6  var milotree_div_wrap;
7  var milotree_is_mobile = false;
8  (function() {
9    var iframe_url = [];
10    var frameIndex;
11    var storedDate;
12    var days;
13    var is_newsletter = false;
14
15        iframe_url.push('https://cdn001.milotree.com/pinterest/001448_002617trala.html');
16        iframe_url.push('https://cdn001.milotree.com/facebook/001449_002617trala.html');
17
18    if (typeof localStorage === 'object') {
19      try {
20        localStorage.setItem('localStorageTest', 1);
21        frameIndex = localStorage.getItem('frameIndex');
22        storedDate = localStorage.getItem('showDate');
23        days  = (new Date(Date.now() - (new Date(storedDate))))/1000/60/60/24;
24        console.log(frameIndex);
25        console.log(localStorage.getItem('showDate'));
26        console.log(days);
27        console.log('localStorage Available');
28      } catch (e) {
29        console.log('No localStorage Available');
30        frameIndex = (Math.random() * iframe_url.length | 0);
31        if (document.cookie.match('milotreepoly=')) {
32          days  = 0;
33        }
34        else {
35          days = 999;
36        }
37        document.cookie="milotreepoly=1";
38        console.log(days);
39      }
40    }
41
42    if (days > 7
43        
44        
45    ){
46      if (frameIndex === null && storedDate === null) { frameIndex =  (Math.random() * iframe_url.length | 0); }
47      else {
48        if (frameIndex < iframe_url.length-1 ) {frameIndex++}
49        else {frameIndex = 0}
50      }
51      if (/email/.test(iframe_url[frameIndex])) {
52        is_newsletter = true;
53      }
54      if (iframe_url.length > 0) {
55        if (document.readyState === "complete" || document.readyState === "loaded" || document.readyState === "interactive") {
56            console.log(document.readyState);
57            milotree_drawBox(iframe_url[frameIndex],frameIndex,is_newsletter);
58        }
59        else {
60          document.addEventListener("DOMContentLoaded", function(e){
61              console.log('dom ready');
62              milotree_drawBox(iframe_url[frameIndex],frameIndex,is_newsletter);
63          });
64        }
65      }
66    }
67
68  function milotree_drawBox (iframe_url,frameIndex,is_newsletter) {
69    var milotree_popup_height;
70    var milotree_popup_width;
71    var milotree_style;
72    var milotree_div_link;
73    var milotree_div_iframe;
74
75
76    if (screen.width <= 375 && screen.height >= 375) {
77      milotree_popup_width =  screen.width;
78      milotree_popup_height =  '128';
79      milotree_is_mobile = true;
80
81    }
82    else if (screen.height <= 640 || screen.width <= 640) {
83      milotree_popup_width =  '375';
84      milotree_popup_height =  '128';
85      milotree_is_mobile = true;
86    }
87    else {
88      milotree_popup_width =  '320';
89      if (is_newsletter) {
90        milotree_popup_height =  '199';
91      }
92      else {
93        milotree_popup_height =  '311';
94      }
95    }
96
97    milotree_style = document.createElement('style');
98    milotree_style.type = 'text/css';
99    if (milotree_is_mobile) {
100      milotree_style.innerHTML = '.milotree_open {-webkit-transition: -webkit-transform 1s cubic-bezier(.91,1.57,.44,.75);transition: transform 1s cubic-bezier(.91,1.57,.44,.75);' +
101          '-webkit-transform: translateX(-' + milotree_popup_width +'px);transform: translateX(-' + milotree_popup_width + 'px);}' +
102          '.milotree_close {-webkit-transition: -webkit-transform 500ms linear;transition: transform 500ms linear;' +
103          '-webkit-transform: translateX(' + milotree_popup_width +'px);transform: translateX(' + milotree_popup_width +'px);}' +
104          '.milotree_wrap_close{display:none;}';
105    } else {
106      milotree_style.innerHTML = '.milotree_open {-webkit-transition: -webkit-transform 1s cubic-bezier(.91,1.57,.44,.75);transition: transform 1s cubic-bezier(.91,1.57,.44,.75);' +
107          '-webkit-transform: translateX(-' + milotree_popup_width +'px);transform: translateX(-' + milotree_popup_width + 'px);}' +
108          '.milotree_close {-webkit-transition: -webkit-transform 500ms linear;transition: transform 500ms linear;' +
109          '-webkit-transform: translateX(' + milotree_popup_width +'px);transform: translateX(' + milotree_popup_width +'px);}' +
110          '.milotree_wrap_close{display:none;}';
111    }
112    document.getElementsByTagName('head')[0].appendChild(milotree_style);
113
114    milotree_div_wrap = document.createElement('div');
115    milotree_div_wrap.id = 'milotree_box_wrap';
116    if (milotree_is_mobile) {
117      milotree_div_wrap.style.cssText = 'width:'+(parseInt(milotree_popup_width)+4).toString()+'px;height:'+(parseInt(milotree_popup_height)+4).toString()+'px;position:absolute;top:&#39; + (window.innerHeight - 128) + &#39;px;right:0;z-index:16777260;overflow:hidden;pointer-events:none;';
118    } else {
119      milotree_div_wrap.style.cssText = 'width:'+(parseInt(milotree_popup_width)+4).toString()+'px;height:'+(parseInt(milotree_popup_height)+4).toString()+'px;position:fixed;bottom:150px;right:0;z-index:16777260;overflow:hidden;pointer-events:none;';
120    }
121    document.body.appendChild(milotree_div_wrap);
122
123    milotree_div = document.createElement('div');
124    milotree_div.id = 'milotree_box';
125    if (milotree_is_mobile) {
126      milotree_div.style.cssText = 'width:'+milotree_popup_width+'px;height:'+milotree_popup_height+'px;position:relative;bottom:2px;right:-'+ milotree_popup_width +'px;z-index:16777260;box-shadow: 0px 0px 1px 1px rgba(45,45,45,0.4);background-color:#f5f5f5;pointer-events:auto;';
127    } else {
128      milotree_div.style.cssText = 'width:'+milotree_popup_width+'px;height:'+milotree_popup_height+'px;position:relative;bottom:2px;right:-'+ milotree_popup_width +'px;z-index:16777260;box-shadow: 0px 0px 1px 1px rgba(45,45,45,0.4);background-color:#f5f5f5;pointer-events:auto;';
129    }
130
131    milotree_div.innerHTML = '<iframe src="' + iframe_url + '" id="milo-tree-frame" height="' + milotree_popup_height + '" width="' + milotree_popup_width + '" style="height:' + milotree_popup_height + 'px !important;width:' + milotree_popup_width + 'px  !important;min-height:' + milotree_popup_height + 'px;min-width:' + milotree_popup_width + 'px;margin:0;border:0;padding:0;overflow:hidden;position:initial;" seamless scrolling="no"></iframe><a href="#" id="milotree_close_button"></a>';
132    milotree_div_wrap.appendChild(milotree_div);
133
134    milotree_div_link = document.getElementById('milotree_close_button');
135    milotree_div_link.style.cssText = 'position:relative;display:block;top:-40px;left:'+ (+milotree_popup_width-80) +'px;height:35px;width:80px;z-index:100;background:rgba(255,255,255,0.0);';
136
137    milotree_div_link.addEventListener('click', function (event) {
138      milotree_closeBox();
139      event.preventDefault();
140    });
141
142        setTimeout(function(){ bounceBoxSetAndShow(); }, 3000);
143
144      function bounceBoxSetAndShow() {
145        milotree_openBox();
146        localStorage.setItem('showDate', new Date());
147        localStorage.setItem('frameIndex', frameIndex);
148      }
149  }
150
151  })();
152
153  function milotree_openBox() {
154    console.log('open');
155    if (milotree_is_mobile) {
156      var scroll_height = document.documentElement.scrollTop || document.body.scrollTop;
157      milotree_div_wrap.style.top = (scroll_height + window.innerHeight - 128) + "px";
158
159    }
160    milotree_div.className = 'milotree_open';
161  }
162
163  function milotree_closeBox() {
164    milotree_div.className = 'milotree_close';
165    setTimeout(function(){ milotree_div_wrap.className = 'milotree_wrap_close'; }, 1000);
166  }
167
168
169}
170//</script>

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.