1;(function (factory) { 2 3 window.yaContextCb = window.yaContextCb || []; 4 5 if (typeof define === 'function' && define.amd) { 6 // AMD. Register as an anonymous module. 7 define(factory); 8 } else { 9 // Browser globals 10 window.SostavBanners = factory(); 11 } 12 13}(function() { 14 15 'use strict'; 16 17 var adapts = ['phone', 'tablet', 'desktop']; 18 19 var adaptSizes = { 20 tabletWidth: 830, 21 phoneWidth: 480, 22 isAutoReloads: true 23 }; 24 25 var banners = { 26 27 'rm1_adaptive': { 28 ownerId: 59752, 29 containerId: '', 30 params: { 31 pp: 'g', 32 ps: 'hdy', 33 p2: 'gbop' 34 } 35 }, 36 37 'rm3_adaptive': { 38 ownerId: 59752, 39 containerId: '', 40 params: { 41 pp: 'g', 42 ps: 'hdy', 43 p2: 'gbwk' 44 } 45 }, 46 47 'rm4_adaptive': { 48 ownerId: 59752, 49 containerId: '', 50 params: { 51 pp: 'i', 52 ps: 'hdy', 53 p2: 'gbop' 54 } 55 }, 56 57 'rm1': {
58 ownerId: 59752, 59 containerId: '', 60 params: { 61 pp: 'g', 62 ps: 'hdy', 63 p2: 'ertt' 64 } 65 }, 66 'rm2': { 67 ownerId: 59752, 68 containerId: '', 69 params: { 70 pp: 'g', 71 ps: 'hdy', 72 p2: 'erub' 73 } 74 }, 75 'rm2_2': { 76 ownerId: 59752, 77 containerId: '', 78 params: { 79 pp: 'h', 80 ps: 'hdy', 81 p2: 'erub' 82 } 83 }, 84 'rm4': { 85 ownerId: 59752, 86 containerId: '', 87 params: { 88 pp: 'i', 89 ps: 'hdy', 90 p2: 'ertt' 91 } 92 }, 93 'rm5_1': { 94 ownerId: 59752, 95 containerId: '', 96 params: { 97 pp: 'cuy', 98 ps: 'hdy', 99 p2: 'ertx' 100 } 101 }, 102 'rm5_2': {
103 ownerId: 59752, 104 containerId: '', 105 params: { 106 pp: 'cuz', 107 ps: 'hdy', 108 p2: 'ertx' 109 } 110 }, 111 112 'rm6':{ 113 ownerId: 59752, 114 containerId: '', 115 params: { 116 pp: 'cva', 117 ps: 'hdy', 118 p2: 'ertw' 119 } 120 }, 121 122 'm_fullscreen':{ 123 ownerId: 59752, 124 containerId: '', 125 params: { 126 pp: 'g', 127 ps: 'bsje', 128 p2: 'fhtl' 129 } 130 }, 131 132 'm_bottomline':{ 133 ownerId: 59752, 134 containerId: '', 135 params: { 136 pp: 'g', 137 ps: 'bsje', 138 p2: 'fhtl' 139 } 140 }, 141 142 'rm3':{ 143 ownerId: 59752, 144 containerId: '', 145 params: { 146 p1: 'blund', 147 p2: 'eusp' 148 } 149 }, 150 151 'fs': {
152 ownerId: 59752, 153 containerId: '', 154 params: { 155 pp: 'g', 156 ps: 'hdy', 157 p2: 'evau' 158 } 159 } 160 }; 161 162 function run(pos, container, type, callback) 163 { 164 if(typeof type != 'string') 165 type = 'default'; 166 167 if(type == 'default') 168 type = 'scroll'; 169 170 if(!banners.hasOwnProperty(pos)) 171 return false; 172 173 if(typeof container != 'object') 174 return false; 175 176 var conf = {}; 177 178 Object.assign(conf, banners[pos]); 179 180 container.id = conf.containerId = 'adfox_gen_' + parseInt(Math.random()*1000000); 181 container.classList.add('banner-container'); 182 183 // ÑÑÐ¸Ð³Ð³ÐµÑ Ð·Ð°Ð³ÑÑзки баннеÑа 184 conf.onRender = function () { 185 186 container.classList.add('rendered'); 187 188 if(typeof callback == 'function') { 189 callback.call(container); 190 } 191 }; 192 try { 193 if(type == 'scroll') { 194 window.Ya.adfoxCode.createScroll(conf); 195 } else { 196 if (pos == 'fs') { 197 var k = 'ad_rmfsm_t'; 198 var st = Date.now(); 199 var bt = window.localStorage.getItem(k) || 0; 200 if (st - bt > 60*60*6*1000) { 201 window.Ya.adfoxCode.create(conf); 202 window.localStorage.setItem(k, st); 203 } 204 } else { 205 //window.Ya.adfoxCode.create(conf); 206 window.yaContextCb.push(()=>{ 207 Ya.adfoxCode.create(conf); 208 }) 209 } 210 } 211 return true; 212 213 } catch(e) { 214 return false; 215 } 216 } 217 218 return {run: run}; 219 220})); 221
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.