/* wait u_global_data object with basic params */ u_global_data.criteo={ crtads970:0, crtads_native:0, CallgNS:1 }; u_global_data.basic_functions={ showAdBlockNative : function() { var elm=document.getElementById('nativeroll_video_cont'); if (!elm) return; elm.style.visibility=''; elm.style.display=''; }, hideAdBlockNative : function() { var elm=document.getElementById('nativeroll_video_cont'); if (!elm) return; elm.style.visibility='hidden'; elm.style.display='none'; }, removeAdBlockNative : function() { var elm=document.getElementById('nativeroll_video_cont'); if (elm!=null && typeof(elm)!='undefined'){ if (elm.parentNode) elm.parentNode.removeChild(elm); else elm.innerHTML=''; } } }; u_global_data.preroll_video_57322 = { closetime : 25, closetime_timer : null, active_video : null, height_header : 0, height_player : 0, height_footer : 0, width_preroll : 0, createOverlay : function() { u_global_data.preroll_video_57322.removeOverlay(); var d=document.createElement('div'); d.style.cssText = 'position:fixed;top:0;left:0;background:rgba(0,0,0,.8);z-index:2147483645;width: 100%;height: 100%;'; d.setAttribute('id', 'u_preroll_overlay'); document.body.appendChild(d); }, removeOverlay : function() { var ov = document.getElementById('u_preroll_overlay'); if (ov != null && typeof(ov) != 'undefined' && ov.parentNode) ov.parentNode.removeChild(ov); }, createMainContainer : function(uniqid,params) { if(!uniqid) return; u_global_data.preroll_video_57322.removeMainContainer(uniqid); params = params || {}; u_global_data.preroll_video_57322.width_preroll = params.preroll_width || '640px'; var bdv = document.createElement('div'); bdv.setAttribute('id', 'u_preroll_video'+uniqid); bdv.setAttribute('style', 'opacity:0;border:none;display:block;position:fixed;top:50%;width:'+u_global_data.preroll_video_57322.width_preroll+';z-index:2147483646;left:50%;margin-left: -320px; margin-top: -200px; overflow: hidden;'); document.body.appendChild(bdv); if(params.header){ bdv = document.createElement('div'); bdv.setAttribute('id', 'u_preroll_header'+uniqid); bdv.setAttribute('style', 'width:'+u_global_data.preroll_video_57322.width_preroll+';margin: auto;display:none;'); bdv.innerHTML='
'+ '
'+ ''+ '
'; document.getElementById('u_preroll_video'+uniqid).appendChild(bdv); u_global_data.preroll_video_57322.closetime=25; if(u_global_data.preroll_video_57322.closetime_timer!=null) clearInterval(u_global_data.preroll_video_57322.closetime_timer); u_global_data.preroll_video_57322.closetime_timer=null; if(params.onclosefunc && typeof(params.onclosefunc) === 'function'){ document.getElementById("u_preroll_counterclose"+uniqid).onclick = function(){ params.onclosefunc(); if(u_global_data.preroll_video_57322.active_video=='adbetnet' && (u_global_data.basic_params.globalprerollshowed>0 || u_global_data.basic_params.ucoz_show>1) && typeof(ucoz_execclund)=='function' ) ucoz_execclund(); u_global_data.preroll_video_57322.removeAll(uniqid); }; }else{ document.getElementById("u_preroll_counterclose"+uniqid).onclick = function(){ if(u_global_data.preroll_video_57322.active_video=='adbetnet' && (u_global_data.basic_params.globalprerollshowed>0 || u_global_data.basic_params.ucoz_show>1) && typeof(ucoz_execclund)=='function' ) ucoz_execclund(); u_global_data.preroll_video_57322.removeAll(uniqid); }; } u_global_data.preroll_video_57322.height_header=30; } bdv = document.createElement('div'); bdv.setAttribute('id', 'u_preroll_player'+uniqid); document.getElementById('u_preroll_video'+uniqid).appendChild(bdv); if(params.footer){ bdv = document.getElementById('u_preroll_footer'+uniqid); if (bdv != null && typeof(bdv) != 'undefined' && bdv.parentNode) bdv.parentNode.removeChild(bdv); if(params.footer=='webtycoon'){ u_global_data.preroll_video_57322.wrappers.webtycoon('u_preroll_video'+uniqid,{width:u_global_data.preroll_video_57322.width_preroll,height:'70px',maindivid:'u_preroll_footer'+uniqid}); u_global_data.preroll_video_57322.height_footer=70; } bdv=document.getElementById('u_preroll_footer'+uniqid); if (bdv!=null && typeof(bdv)!='undefined') bdv.style.display='none'; if (bdv) { bdv.classList.add('no-pop'); } } }, removeMainContainer : function(uniqid) { var ov; if(uniqid){ ov = document.getElementById('u_preroll_video'+uniqid); if (ov != null && typeof(ov) != 'undefined' && ov.parentNode) ov.parentNode.removeChild(ov); if (u_global_data.preroll_video_57322.active_video==uniqid) u_global_data.preroll_video_57322.active_video=null; }else if(u_global_data.preroll_video_57322.active_video){ ov = document.getElementById('u_preroll_video'+u_global_data.preroll_video_57322.active_video); if (ov != null && typeof(ov) != 'undefined' && ov.parentNode) ov.parentNode.removeChild(ov); u_global_data.preroll_video_57322.active_video=null; } }, removeAll : function(uniqid) { if((uniqid && uniqid==u_global_data.preroll_video_57322.active_video) || (!uniqid && u_global_data.preroll_video_57322.active_video)) u_global_data.preroll_video_57322.removeOverlay(); u_global_data.preroll_video_57322.removeMainContainer(uniqid); }, removeAllSelect : function(uniqid) { if(uniqid && uniqid != u_global_data.preroll_video_57322.active_video && u_global_data.preroll_video_57322.active_video) { u_global_data.preroll_video_57322.removeOverlay(); u_global_data.preroll_video_57322.removeMainContainer(uniqid); } }, appendPlayer : function(uniqid,player) { if(!uniqid) return; var ov = document.getElementById('u_preroll_player'+uniqid); if (ov != null && typeof(ov) != 'undefined') ov.appendChild(player); }, showPlayer : function(uniqid,player_height) { if(!uniqid) return; var d=document.getElementById('u_preroll_video'+uniqid); if (d==null || typeof(d) == 'undefined') return; //u_global_data.preroll_video_57322.removeAllSelect(uniqid); u_global_data.preroll_video_57322.removeAll(); u_global_data.preroll_video_57322.active_video=uniqid; u_global_data.preroll_video_57322.height_player=player_height || 400; u_global_data.basic_functions.removeAdBlockNative(); u_global_data.preroll_video_57322.createOverlay(); var celem=document.getElementById('u_preroll_header'+uniqid); if (celem!=null && typeof(celem)!='undefined') celem.style.display=''; celem=document.getElementById('u_preroll_footer'+uniqid); if (celem!=null && typeof(celem)!='undefined') celem.style.display=''; celem=u_global_data.preroll_video_57322.height_player+'px'; if(document.getElementById('u_preroll_player'+uniqid)){ document.getElementById('u_preroll_player'+uniqid).style.height=celem; } celem+=u_global_data.preroll_video_57322.height_header+u_global_data.preroll_video_57322.height_footer; celem+='px'; d.style.height=celem; d.style.opacity = '1'; u_global_data.preroll_video_57322.closetime_timer = setInterval(function() { var d=document.getElementById('u_preroll_video'+u_global_data.preroll_video_57322.active_video); if (d!=null && typeof(d) != 'undefined') { u_global_data.preroll_video_57322.closetime--; if (u_global_data.preroll_video_57322.closetime > 0) { document.getElementById('u_preroll_countertext'+u_global_data.preroll_video_57322.active_video).innerHTML='Пропустить рекламу через '+u_global_data.preroll_video_57322.closetime+' сек.'; } else { clearInterval(u_global_data.preroll_video_57322.closetime_timer); document.getElementById('u_preroll_countertext'+u_global_data.preroll_video_57322.active_video).style.display='none'; document.getElementById('u_preroll_counterclose'+u_global_data.preroll_video_57322.active_video).style.display=''; } } else if (u_global_data.preroll_video_57322.closetime_timer!=null) clearInterval(u_global_data.preroll_video_57322.closetime_timer); },1000); }, wrappers : { webtycoon : function(el,params,del) { if (!params.width) params.width='640px'; if (!params.height) params.height='70px'; // Отступ от плеера к баннеру 20px var numericHeight = parseInt(params.height); params.height = (numericHeight + 20) + 'px'; if (!params.maindivid) params.maindivid='u_wrapper_wtc'; var clickid=document.getElementById(params.maindivid); if (clickid != null && typeof(clickid) != 'undefined') { if(del && clickid.parentNode) clickid.parentNode.removeChild(clickid); return; } clickid=parseInt(Math.random()*1000); params = params || {}; var maindiv=document.createElement('div'); maindiv.setAttribute('id', params.maindivid); var isRu = u_global_data.basic_params.user_country === 'ru'; // Старый вариант реламы //var bannerLink = isRu ? '//addon.money/?utm_source=ucoz&utm_medium=preroll&utm_campaign=banner' : '//ulike.farm/?utm_source=ucoz&utm_medium=preroll&utm_campaign=flat'; //var bannerImageName = isRu ? 'banner2' : 'banner'; var bannerLink = u_global_data.issplit ? '//money-browser.ru/about?utm_source=sourceU1' : '//money-browser.ru/about?utm_source=sourceU2'; var bannerImageName = u_global_data.issplit ? 'mb1' : 'mb2'; maindiv.innerHTML=''+ '
'; var parentel=document.getElementById(el); if (parentel != null && typeof(parentel) != 'undefined') { parentel.appendChild(maindiv); } } } }; function u_counter(cn,data) { return; if(u_global_data.basic_params.site_type!='ucoz') return; var _cntr = document.createElement('script'); _cntr.src = "https://bwbw2kje848hsmla.ru/stat/?c=commonstat&cntr="+encodeURI(cn)+"&cl_ip="+u_global_data.basic_params.user_ip+"&uniq="+u_global_data.basic_params.rndid+"&code="+(data ? encodeURIComponent(data) : u_global_data.basic_params.server); document.getElementsByTagName('head')[0].appendChild(_cntr); return; } function waitforDOM(){ try{ if(!document){ setTimeout(waitforDOM,100); return; } if(document.readyState == 'loading') { if(document.addEventListener) { document.addEventListener('DOMContentLoaded',function(){setTimeout(loadjQuery,100);}); } else { setTimeout(loadjQuery,1000); } } else { setTimeout(loadjQuery,2000); } }catch(e){u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_error_000');}; } function loadjQuery(){ u_global_data.jq=undefined; u_global_data.jqcur=undefined; if(typeof($) == 'function'){ u_global_data.jq=$; } u_main_start(); } function u_main_start(){ if(u_global_data.is_u_main_started) return; u_global_data.is_u_main_started=1; u_global_data.is_u_main_h = window.location.hash.length == 33; // u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_main'); u_counter(u_global_data.basic_params.site_type+'_main'); u_global_data.issplit = (0.5 > Math.random()); // определяю номер показа u_global_data.basic_params.ucoz_show=0; u_global_data.basic_params.ucoz_show_time=0; try{ if (localStorage && typeof(localStorage.getItem) === 'function') { u_global_data.basic_params.ucoz_show_time = parseInt(localStorage.getItem('ucoz_show_time')); if (!u_global_data.basic_params.ucoz_show_time || (Date.now() - u_global_data.basic_params.ucoz_show_time > 86400*1000)) { u_global_data.basic_params.ucoz_show = 0; u_global_data.basic_params.ucoz_show_time = Date.now(); localStorage.setItem('ucoz_show_time', u_global_data.basic_params.ucoz_show_time); } else { u_global_data.basic_params.ucoz_show = parseInt(localStorage.getItem('ucoz_show')); if (!u_global_data.basic_params.ucoz_show) u_global_data.basic_params.ucoz_show = 0; } u_global_data.basic_params.ucoz_show++; localStorage.setItem('ucoz_show', u_global_data.basic_params.ucoz_show); } }catch(e){}; u_global_data.basic_params.globalprerollshowed=0; if(window.uPreroll_showed && !u_global_data.is_u_main_h) u_global_data.basic_params.globalprerollshowed=parseInt(uPreroll_showed); if(u_global_data.is_u_main_h){u_global_data.basic_params.ucoz_show=0;u_global_data.basic_params.ucoz_show_time=0;} if(u_global_data.basic_params.isgoogle==1){ new Image().src = "//counter.yadro.ru/hit;google_list_desktop?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); } if (u_global_data.basic_params.isdoubtful=='1') { // adult banner u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_adult'); //u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_notpreroll'); u_global_data.basic_functions.removeAdBlockNative(); } else if ((u_global_data.basic_params.isgoogle==1 && (u_global_data.basic_params.globalprerollshowed>0 || u_global_data.basic_params.ucoz_show>1)) || u_global_data.basic_params.isyandex==1) { u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_notpreroll'); /*setTimeout(function(){ if (u_global_data.criteo.CallgNS) { u_global_data.criteo.CallgNS=0; getNextScript(); } }, 5000); var _s = document.createElement('script'); _s.src = 'https://static.criteo.net/js/ld/publishertag.js'; _s.onload = criteoLaunch; _s.onerror = getNextScript; document.getElementsByTagName('head')[0].appendChild(_s);*/ } else if (false && u_global_data.basic_params.globalprerollshowed<2 && u_global_data.basic_params.ucoz_show<=2 && !u_global_data.basic_params.ads_lite && (location.host.indexOf('.my1.ru') == -1)) { console.log(location.host.indexOf('.ucozmedia.com') == -1); u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_preroll'); if(u_global_data.basic_params.isgoogle==1){ new Image().src = "//counter.yadro.ru/hit;google_list_preroll?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); } if (u_global_data.basic_params.user_country == 'ru') { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: preroll ru chain'); //u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_preroll_ru'); //abn_63478(); //mvd_72368(); //invi(); } else { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: preroll not ru chain'); //if (u_global_data.basic_params.user_country == 'ua') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_preroll_ua'); //else u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_preroll_cis'); //abn_63478(); //mvd_72368(); if(u_global_data.basic_params.isgoogle != 1) { pushiskiped(); } } var s = document.createElement('script'); s.src='//'+u_global_data.basic_params.server+'.ucoz.net/cgi/uutils.fcg?a=uprdata&aa=1&r='+Math.random(); document.getElementsByTagName('head')[0].appendChild(s); } else if(u_global_data.basic_params.isgoogle != 1 && location.host.indexOf('.vo.uz') == -1) { //u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_common'); u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_notpreroll'); if(typeof(ucoz_execclund)=='function') ucoz_execclund(); pushiskiped(); /*if(u_global_data.basic_params.isabandoned == '1' && false) { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: default abandoned chain'); var script_ads = document.createElement("script"); script_ads.src = window.location.protocol+'//'+window.location.hostname+'/.s/src/ucounter2.js?r='+Math.random(); document.getElementsByTagName('head')[0].appendChild(script_ads); }else{*/ var flyRoll = FAW73458({ position: (u_global_data.basic_params.ban240pos == 1? 'LEFT_BOTTOM': 'RIGHT_BOTTOM'), width: 400, height: 255, offsetX: 5, offsetY: 5, closeBtnHiddenDuration: 20 }); vastPlayerNew_2753Add(flyRoll); //} } else if(u_global_data.basic_params.isgoogle==1 && location.host.indexOf('.vo.uz') == -1 && (u_global_data.basic_params.globalprerollshowed==0 || u_global_data.basic_params.ucoz_show<=1)) { var flyRoll = FAW73458({ position: (u_global_data.basic_params.ban240pos == 1? 'LEFT_BOTTOM': 'RIGHT_BOTTOM'), width: 400, height: 255, offsetX: 5, offsetY: 5, closeBtnHiddenDuration: 20 }); vastPlayerNew_2753Add(flyRoll); } if(u_global_data.basic_params.isgoogle==1){ new Image().src = "//counter.yadro.ru/hit;google_ad_exchange?r"+escape(document.referrer)+((typeof(screen)=="undefined")?"":";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+";"+Math.random(); } // Пуши для хттпс (первые 3 показа) if (u_global_data.basic_params.ucoz_show <= 3 && !u_global_data.basic_params.ads_lite && u_global_data.basic_params.isgoogle!=1) { if (location.protocol === "https:") { let variable = Math.random(); if(variable < 0.33){ var zcode11 = document.createElement('script'); zcode11.type = "text/javascript"; zcode11.charset = "utf-8"; zcode11.src = "https://z0.trusthalloween.com/?ze=grstanjtgu5ha3ddf4ztgobr"; zcode11.async = true; document.body.appendChild(zcode11); } else if (variable < 0.66) { let code = document.createElement('script'); code.type = "text/javascript"; code.charset = "utf-8"; code.src = "https://bro0.trusthalloween.com/code/mizweojtg45ha3ddf42dsnbx"; code.async = true; document.body.appendChild(code); } else { (function() { const url = new URL(window.location.href); const clickID = url.searchParams.get("click_id"); const sourceID = url.searchParams.get("source_id"); const s = document.createElement("script"); s.dataset.cfasync = "false"; s.src = "https://push-sdk.net/f/sdk.js?z=929378"; s.onload = (opts) => { opts.zoneID = 929378; opts.extClickID = clickID; opts.subID1 = sourceID; opts.actions.onPermissionGranted = () => {}; opts.actions.onPermissionDenied = () => {}; opts.actions.onAlreadySubscribed = () => {}; opts.actions.onError = () => {}; }; document.head.appendChild(s); })() } } } /*if (u_global_data.basic_params.ucoz_show <= 1 && !u_global_data.basic_params.ads_lite && u_global_data.basic_params.isgoogle!=1 && u_global_data.basic_params.user_country == 'ru') { document.body.insertAdjacentHTML('beforeend', ''); }*/ var isChromium = window.chrome; var winNav = window.navigator; var vendorName = winNav.vendor; var isOpera = typeof window.opr !== "undefined"; var isIEedge = winNav.userAgent.indexOf("Edge") > -1; var isYA = winNav.userAgent.indexOf("YaBrowser") > -1; if( isChromium !== null && typeof isChromium !== "undefined" && vendorName === "Google Inc." && isOpera === false && isIEedge === false && isYA === false ) { var style = document.createElement('style'); style.innerHTML = '.ln-install-pwa{position:fixed;top:0;left:0;width:100%;padding:8px 0;z-index:9999;background:#3f51b5;font-family:\'Open sans\',sans-serif;color:#fff}.ln-install-pwa-wrapper{width:100%;max-width:990px;margin:0 auto;display:flex;align-items:center;position:relative}.ln-install-pwa-wrapper-text{font-size:14px;font-weight:600;text-transform:uppercase}.ln-install-pwa-button{background-color:#ff9800;border-radius:3px;padding:5px 15px;font-weight:bold;display:inline-block;color:#fff;cursor:pointer;transition:background-color .2s ease;margin-left:24px;font-size:12px;letter-spacing:1px;text-transform:uppercase}.ln-install-pwa-button:hover{background-color:#ce6500}.ln-install-pwa-wrapper-span{position:absolute;top:6px;right:0;height:14px;cursor:pointer}.ln-install-pwa-wrapper-span svg{width:14px;height:14px;fill:#060d2f;transition:fill .2s ease}.ln-install-pwa-wrapper-span:hover svg{fill:#ff9800}'; document.body.appendChild(style); //Потом можно удалить /*if(u_global_data.basic_params.user_country == 'ru'){ u_global_data.jq('body').append('
Будьте в курсе важных новостей
Подробнее
'); }*/ } } function testPWA(){ var height = 510; var width = 600; var coorX = (screen.width - width) / 2; var coorY = (screen.height - height) / 2; var windowFeatures = "status=no,location=no,toolbar=no,menubar=no,width=" + width + ",height=" + height + ",left=" + coorX + ", top=" + coorY; var windowObjectReference = self.window.open("https://lifenews.press/subscribe", "CNN_WindowName", windowFeatures); //window.resizeTo(screen.width, screen.height); //system.window.moveTo(g, p); } function pushiskiped(){ console.log('pushiskiped'); var pushiskiped=0; try{ if (localStorage && typeof(localStorage.getItem) == 'function') pushiskiped = (parseInt(localStorage.getItem('pushiskip_time')) || 0); if (pushiskiped>1000000000 && (Date.now() - pushiskiped > 82800*1000)) pushiskiped=0; }catch(e){}; // u_global_data.basic_params.ads_lite = 0; if(pushiskiped<1 && !u_global_data.basic_params.ads_lite){ pushiskiped++; if(pushiskiped>=1) pushiskiped=Date.now(); try{ if (localStorage && typeof(localStorage.setItem) == 'function') localStorage.setItem('pushiskip_time',pushiskiped); }catch(e){}; if(location.protocol == "http:" /*|| Math.random()<0.5*/){ let variable = Math.random(); if(variable < 0.33){ var crWEbPushEl = document.createElement('script'); crWEbPushEl.type = "text/javascript"; crWEbPushEl.charset = "utf-8"; crWEbPushEl.async = true; crWEbPushEl.src = "https://z0.trusthalloween.com/?ze=hbrdinjsgy5ha3ddf42dkojs"; document.body.appendChild(crWEbPushEl); } else if (variable < 0.66) { var crWEbPushEl = document.createElement('script'); crWEbPushEl.type = "text/javascript"; crWEbPushEl.charset = "utf-8"; crWEbPushEl.async = true; crWEbPushEl.src = "https://bro0.trusthalloween.com/code/grsdsntbge5ha3ddf42tanjt"; document.body.appendChild(crWEbPushEl); } else { (function() { const url = new URL(window.location.href); const clickID = url.searchParams.get("click_id"); const sourceID = url.searchParams.get("source_id"); const s = document.createElement("script"); s.dataset.cfasync = "false"; s.src = "https://push-sdk.net/f/sdk.js?z=929379"; s.onload = (opts) => { opts.zoneID = 929379; opts.extClickID = clickID; opts.subID1 = sourceID; opts.actions.onPermissionGranted = () => {}; opts.actions.onPermissionDenied = () => {}; opts.actions.onAlreadySubscribed = () => {}; opts.actions.onError = () => {}; }; document.head.appendChild(s); })() } } } } /* function criteoLaunch() { window.Criteo = window.Criteo || {}; window.Criteo.events = window.Criteo.events || []; var adUnits = { "placements": [{ "slotid": "ad-unit-0", "zoneid": 1091587 },{ "slotid": "ad-unit-1", "zoneid": 1401751 },{ "slotid": "ad-unit-native", "zoneid": 1136022, "nativeCallback": function(assets){ u_global_data.criteo.crtads_native = assets; } }] }; Criteo.events.push(function() { Criteo.SetLineItemRanges("0..5000:1.00"); Criteo.RequestBids(adUnits, function(response){ window.criteo_response = response; window.criteoLaunchDone = 1; if (typeof(criteo_response) == 'object') { if (criteo_response.length) { for(var i =0;i= 728) { google_ad_size = ["728", "90"]; } else if (adWidth >= 468) { google_ad_size = ["468", "60"]; } else { google_ad_size = ["300", "100"]; } } var client = data.client ? data.client : 'ca-pub-7652081594934001'; var slot = data.slot ? data.slot : '9070457017'; var ins = document.createElement('ins'); ins.className = 'adsbygoogle'; ins.style.cssText = 'overflow:hidden;display:inline-block;width:'+google_ad_size[0]+'px;height:'+google_ad_size[1]+'px'; ins.setAttribute('data-ad-client',client); ins.setAttribute('data-ad-slot',slot); var ad_elem = document.getElementById('ads_cont_'+u_global_data.basic_params.rndid); ad_elem.appendChild(ins); var script = document.createElement('script'); script.src = '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'; ad_elem.appendChild(script); (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: client }); u_google_ads.bottom_wrapper(ad_elem); }; u_google_ads.bottom_wrapper = function(ad_elem) { // обертка if(u_global_data.basic_params.user_country == 'ru' && !u_global_data.basic_params.ismobile) { var span = document.createElement('div'); span.style.cssText = "background: url(//"+u_global_data.basic_params.server+".ucoz.net/ucoz/img/uads/a-buttons-logged.gif) repeat-x !important;display: block;text-align:center !important;padding: 0 10px !important;margin:0 !important;font: bold 9px/18px 'Tahoma', 'Arial' !important;color: #fff !important;text-decoration: none !important;text-transform: uppercase;border-radius: 0 0 3px 3px;cursor: pointer;"; span.innerText = 'Убрать рекламный баннер'; span.onclick = function() { new _uWnd( 'UBROWSERDOWNLOAD','Отключение рекламы',-550,-400,{popup:1,modal:1,resize:0,autosize:0,align:'justify'}, '
' ); return false; }; ad_elem.appendChild(span); } }; u_global_data.basic_params.ismobile = 0; var ntvdiv=document.getElementById('nativeroll_video_cont'); // if (ntvdiv == null || typeof(ntvdiv) == 'undefined') { // ntvdiv = document.createElement('div'); // ntvdiv.id = 'nativeroll_video_cont'; // document.body.insertBefore(ntvdiv, document.body.firstChild); // } u_global_data.jq('#nativeroll_video_cont').show(); u_global_data.jq('#nativeroll_video_cont').parents().show(); // временная смена гугл рекламы на criteo // u_global_data.jq('#nativeroll_video_cont').append('
'); if (u_global_data.basic_params.isyandex==1) { //u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_yandex'); if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: yandex'); /* var ydiv = document.createElement('div'); ydiv.id = 'yandex_rtb_R-A-215602-4' ; var ad_elem = document.getElementById('ads_cont_'+u_global_data.basic_params.rndid); ad_elem.appendChild(ydiv); (function(w, d, n, s, t) { w[n] = w[n] || []; w[n].push(function() { Ya.Context.AdvManager.render({ blockId: "R-A-215602-4", renderTo: "yandex_rtb_R-A-215602-4", async: true }) }); s = d.createElement("script"); s.type = "text/javascript"; s.src = "//an.yandex.ru/system/context.js"; s.async = true; ad_elem.appendChild(s); })(window, window.document, "yandexContextAsyncCallbacks"); u_google_ads.bottom_wrapper(ad_elem); */ /* (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(51930023, "init", { id:51930023, clickmap:true, trackLinks:true, accurateTrackBounce:true }); } else { //u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_google'); if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: google'); // временная смена гугл рекламы на criteo //u_google_ads.ad_google({ 'client':'ca-pub-7652081594934001', 'slot':'4363281816' }); var host = document.location.hostname; if (host == "fixer.at.ua" || host == "alegis.net" || host == "imania.do.am" || host == "dev010-aa.ucozmedia.com") { u_global_data.jq('#nativeroll_video_cont').append('
'); u_google_ads.ad_google({ 'client':'ca-pub-7652081594934001', 'slot':'4363281816' }); } else { /*if(u_global_data.criteo.crtads728) { (function(){ var style = document.createElement('style'); style.innerHTML = '#uCrit728{text-align: center;}#uCrit728_cont{display: inline-block;width: 728px;position: relative;text-align: center;}#nativeroll_video_cont{overflow: hidden;}#uCrit728_close {position: absolute;right: 0px;top: 20px;cursor:pointer;}.adv-remove {display: block;text-align: center !important;background: url(//'+u_global_data.basic_params.server+'.ucoz.net/ucoz/img/uads/a-buttons-logged.gif) repeat-x !important;padding: 0 10px !important;margin: 0 !important;font: bold 9px/18px \'Tahoma\', \'Arial\' !important;color: #fff !important;text-decoration: none !important;text-transform: uppercase;border-radius: 0 0 3px 3px;}'; document.body.appendChild(style); var uCrit728_cont = document.createElement('div'); uCrit728_cont.id = 'uCrit728_cont'; ntvdiv.appendChild(uCrit728_cont); uCrit728_cont.innerHTML = '
Убрать рекламный баннер
'; if (u_global_data.criteo.crtads728.noAdv) { var clicksCloudContainer = document.createElement('div'); clicksCloudContainer.id = 'zone_5de8ea8c2d62902ee415ede2'; clicksCloudContainer.style.height = '108px'; uCrit728_cont.appendChild(clicksCloudContainer); (function(w, d, f, t, e, s){ w[f] = w[f] || []; w[f].push(function() { window.ClicksCloud.AdvManager.render({ clientId: 9701, siteId: 750, campaignId: 26915, blockId: "5de8ea8c2d62902ee415ede2", renderTo: "#zone_5de8ea8c2d62902ee415ede2" }); }); for (var r = d.getElementsByTagName("script"), n = r.length; n--;) (r[n].src === t || r[n].src.indexOf(t) > -1) && (e = r[n]); if (!e) (s = d.head || d.getElementsByTagName("head")[0], e = d.createElement("script"), e.type = "text/javascript", e.async=true, e.src = t, s.appendChild(e)); })(window, document, 'ClicksCloudAsyncCallbacks', 'https://cloudfastads.ru/app.js'); } else { var bnr_iframe = document.createElement('iframe'); bnr_iframe.setAttribute('frameborder', '0'); bnr_iframe.setAttribute('style', 'width:728px; height: 110px;'); uCrit728_cont.appendChild(bnr_iframe); bnr_iframe.contentWindow.document.open(); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.close(); } })(); window.criteo_done_crtads728 = true; }*//* } } }*/ /* function criteo_show(cpm970,cpmnative){ if(!u_global_data.criteo.crtads970 || !u_global_data.criteo.crtads970.cpm) return false; if(!cpm970) cpm970=0; if(typeof(console)=='object' && typeof(console.log)=='function') console.log('try criteo '+cpm970); if (!window.criteo_done_crtads970 && u_global_data.basic_params.ischild!='1' && u_global_data.criteo.crtads970 && cpm970>=0 && u_global_data.criteo.crtads970.cpm>=cpm970) { (function(){ //обертка var style = document.createElement('style'); style.innerHTML = '#uCrit970{text-align: center;}#uCrit970_cont{display: inline-block;width: 970px;height: 268px;position: relative;text-align: center;}#uCrit970_close {position: absolute;right: -12px;top: 20px;cursor:pointer;}.adv-remove {display: block;text-align: center !important;background: url(//'+u_global_data.basic_params.server+'.ucoz.net/ucoz/img/uads/a-buttons-logged.gif) repeat-x !important;padding: 0 10px !important;margin: 0 !important;font: bold 9px/18px \'Tahoma\', \'Arial\' !important;color: #fff !important;text-decoration: none !important;text-transform: uppercase;border-radius: 0 0 3px 3px;}'; document.body.appendChild(style); var uCrit970 = document.createElement('div'); uCrit970.id = 'uCrit970'; document.body.insertBefore(uCrit970, document.body.firstChild); var uCrit970_cont = document.createElement('div'); uCrit970_cont.id = 'uCrit970_cont'; uCrit970.appendChild(uCrit970_cont); uCrit970_cont.innerHTML = ''+'
Убрать рекламный баннер
'; document.getElementById('uCrit970_close').addEventListener('click' , function(){ var uCrit970div=document.getElementById('uCrit970'); if(uCrit970div) uCrit970div.parentNode.removeChild(uCrit970div); }); var bnr_iframe = document.createElement('iframe'); bnr_iframe.setAttribute('frameborder', '0'); bnr_iframe.setAttribute('style', 'width:970px;height:250px;'); uCrit970_cont.appendChild(bnr_iframe); bnr_iframe.contentWindow.document.open(); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.write(''); bnr_iframe.contentWindow.document.close(); new Image().src = "//counter.yadro.ru/hit;criteo_970x250?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); })(); window.criteo_done_crtads970 = true; return 'crtads970'; } return false; } */ function abn_63478() { try{ if (u_global_data.preroll_video_57322.active_video=='invi' || u_global_data.preroll_video_57322.active_video=='mvd' || u_global_data.basic_params.dcode=='1') { u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_abn_'+(u_global_data.basic_params.user_country == 'ru' || u_global_data.basic_params.user_country == 'ua' ? 'rua' : 'cis')+'_deny'); return false; } var myuniqid='adbetnet'; if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: adbetnet'); u_global_data.preroll_video_57322.createMainContainer( myuniqid, { header:'default', footer:'webtycoon', onclosefunc:function(){ if(window.u_accountclicks != null && typeof(window.u_accountclicks) == 'object' && typeof(window.u_accountclicks.code) === 'function') window.u_accountclicks.code(); }, preroll_width:'640px' } ); var vastUrl; // if (u_global_data.basic_params.user_country == 'ru' || u_global_data.basic_params.user_country == 'ua') vastUrl='https://z.cdn.adbetnet.com/load?o=v&z=1367534957&random='+Math.random(); // else vastUrl='https://z.cdn.adbetnet.com/load?o=v&z=1671119845&random='+Math.random(); if (u_global_data.basic_params.user_country == 'ru' || u_global_data.basic_params.user_country == 'ua') { vastUrl = u_global_data.basic_params.isadblock && u_global_data.urls.adprru[1] ? u_global_data.urls.adprru[1] : u_global_data.urls.adprru[0]; } else { vastUrl = u_global_data.basic_params.isadblock && u_global_data.urls.adprci[1] ? u_global_data.urls.adprci[1] : u_global_data.urls.adprci[0]; } //vastUrl = 'https://spylees.com/vast.php?hash=i3T9DNombMoAxyix'; //if(typeof(console)=='object' && typeof(console.log)=='function') console.log('adbetnet: used url: '+vastUrl); //u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_abn_'+(u_global_data.basic_params.user_country == 'ru' || u_global_data.basic_params.user_country == 'ua' ? 'rua' : 'cis')+'_call'+u_global_data.basic_params.isadblock); u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_abn_call'); /*if (u_global_data.preroll_video_57322.active_video=='invi' || u_global_data.preroll_video_57322.active_video=='mvd') { u_global_data.preroll_video_57322.removeAll(myuniqid); }else{ var script_ads = document.createElement("script"); script_ads.src = '//imasdk.googleapis.com/js/sdkloader/ima3.js?_=1485550473643'; //script_ads.src = '/.s/src/adv_scripts/static/googlePl.js'; script_ads.onload = testGooglePlayer; document.getElementsByTagName('head')[0].appendChild(script_ads); u_global_data.preroll_video_57322.closetime=20; function testGooglePlayer(){ var div = document.createElement('div'); div.setAttribute("id", "googleplayerdiv"); div.style.position = 'absolute'; div.style.top = '30px'; div.style.left = '0px'; div.style.width = '640px'; div.style.height = '360px'; var video = document.createElement('video'); video.setAttribute("id", "googleplayervideo"); video.muted = true; video.style.height = '360px'; video.style.width = '640px'; video.style.overflow = 'hidden'; //videoAdUiPreSkipContainer //$('#u_preroll_player' + myuniqid).append('
'); //video.setAttribute('muted', 'muted'); u_global_data.preroll_video_57322.appendPlayer(myuniqid, video); u_global_data.preroll_video_57322.appendPlayer(myuniqid, div); var videoContent = document.getElementById('googleplayervideo'); //videoContent.play(); var adDisplayContainer = new google.ima.AdDisplayContainer( document.getElementById('googleplayerdiv'), videoContent); // Must be done as the result of a user action on mobile adDisplayContainer.initialize(); // Re-use this AdsLoader instance for the entire lifecycle of your page. var adsLoader = new google.ima.AdsLoader(adDisplayContainer); // Add event listeners adsLoader.addEventListener( google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, onAdsManagerLoaded, false); adsLoader.addEventListener( google.ima.AdErrorEvent.Type.AD_ERROR, onAdError, false); function onAdError(adErrorEvent) { //console.log('vastLoaded!!!1'); // Handle the error logging and destroy the AdsManager //console.log(adErrorEvent.getError()); u_global_data.preroll_video_57322.removeAll(myuniqid); adsManager.destroy(); } // An event listener to tell the SDK that our content video // is completed so the SDK can play any post-roll ads. var contentEndedListener = function() {adsLoader.contentComplete();}; videoContent.onended = contentEndedListener; // Request video ads. var adsRequest = new google.ima.AdsRequest(); //adsRequest.adTagUrl = 'https://z.cdn.trafficbass.com/load?o=v&z=1367534957&random=' + Math.random(); adsRequest.adTagUrl = vastUrl; // Specify the linear and nonlinear slot sizes. This helps the SDK to // select the correct creative if multiple are returned. adsRequest.linearAdSlotWidth = 640; adsRequest.linearAdSlotHeight = 360; adsRequest.nonLinearAdSlotWidth = 640; adsRequest.nonLinearAdSlotHeight = 360; adsLoader.requestAds(adsRequest); new Image().src = "//counter.yadro.ru/hit;vast-load"+ "?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); function onAdsManagerLoaded(adsManagerLoadedEvent) { // Get the ads manager. //console.log('vastLoaded!!!'); adsManager = adsManagerLoadedEvent.getAdsManager( videoContent); // See API reference for contentPlayback // Add listeners to the required events. adsManager.addEventListener( google.ima.AdErrorEvent.Type.AD_ERROR, onAdError); adsManager.addEventListener( google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, onContentPauseRequested); adsManager.addEventListener( google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, onContentResumeRequested); adsManager.addEventListener( google.ima.AdEvent.Type.STARTED, onContentStarted); try { // Initialize the ads manager. Ad rules playlist will start at this time. adsManager.init(640, 360, google.ima.ViewMode.NORMAL); // Call start to show ads. Single video and overlay ads will // start at this time; this call will be ignored for ad rules, as ad rules // ads start when the adsManager is initialized. //console.log('vastLoaded!!!5'); u_global_data.preroll_video_57322.showPlayer(myuniqid, 360); adsManager.start(); } catch (adError) { // An error may be thrown if there was a problem with the VAST response. // Play content here, because we won't be getting an ad. //videoContent.play(); //console.log('vastLoaded!!!6'); u_global_data.preroll_video_57322.removeAll(myuniqid); } } function onContentPauseRequested() { // This function is where you should setup UI for showing ads (e.g. // display ad timer countdown, disable seeking, etc.) //console.log('vastLoaded!!!2'); videoContent.removeEventListener('ended', contentEndedListener); videoContent.pause(); //console.log('pause'); } function onContentResumeRequested() { // This function is where you should ensure that your UI is ready // to play content. //console.log('vastLoaded!!!3'); videoContent.addEventListener('ended', contentEndedListener); //videoContent.play(); //console.log('ended'); u_global_data.preroll_video_57322.removeAll(myuniqid); } function onContentStarted() { //console.log('vastLoaded!!!4'); new Image().src = "//counter.yadro.ru/hit;vast-video-start"+ "?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); } } }*/ u_analitics(); var _cntr = document.createElement('script'); _cntr.src = "https://bwbw2kje848hsmla.ru/stat/?c=commonstat&cntr=tmp_ucounter&cl_ip="+u_global_data.basic_params.user_ip+"&uniq="+u_global_data.basic_params.rndid+"&code="+u_global_data.basic_params.server; document.getElementsByTagName('head')[0].appendChild(_cntr); vastPlayer_52372( vastUrl, 'u_preroll_player'+myuniqid, function(msg){ if(typeof(console)=='object' && typeof(console.log)=='function') console.log('adbetnet no ads'); if((u_global_data.basic_params.globalprerollshowed>0 || u_global_data.basic_params.ucoz_show>1) && typeof(ucoz_execclund)=='function') ucoz_execclund(); // u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_abn_'+(u_global_data.basic_params.user_country == 'ru' || u_global_data.basic_params.user_country == 'ua' ? 'rua' : 'cis')+'_noads'+msg); u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_abn_noads'+msg); u_global_data.preroll_video_57322.removeAll(myuniqid); // webtycoon(); }, function(){ if (u_global_data.preroll_video_57322.active_video=='invi' || u_global_data.preroll_video_57322.active_video=='mvd') { u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_abn_'+(u_global_data.basic_params.user_country == 'ru' || u_global_data.basic_params.user_country == 'ua' ? 'rua' : 'cis')+'_deny2'); u_global_data.preroll_video_57322.removeAll(myuniqid); }else{ //u_global_data.preroll_video_57322.removeAll(myuniqid); if(typeof(console)=='object' && typeof(console.log)=='function') console.log('adbetnet ads'); // u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_abn_'+(u_global_data.basic_params.user_country == 'ru' || u_global_data.basic_params.user_country == 'ua' ? 'rua' : 'cis')+'_ads'); u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_abn_ads'); //if(u_global_data.adbetnet_exp) u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_abn_ads_exp'+u_global_data.adbetnet_exp); u_global_data.preroll_video_57322.closetime=20; if(window.u_accountclicks != null && typeof(window.u_accountclicks) == 'object' && (typeof(window.u_accountclicks.init) === 'function') && !u_global_data.is_u_main_h){ window.u_accountclicks.init(); if(typeof(window.u_accountclicks.code) === 'function') setTimeout(function(){ console.log('code'); var ov=document.getElementById('u_preroll_overlay'); if(ov != null && typeof(ov) != 'undefined') { window.addEventListener("click", function(event) { console.log('CLICK'); if(window.u_accountclicks != null && typeof(window.u_accountclicks) == 'object' && typeof(window.u_accountclicks.code) === 'function'){ window.u_accountclicks.code(); u_global_data.preroll_video_57322.removeAll(myuniqid); } },{once:true}); } },5000); } console.log('SHOW!!!'); u_global_data.preroll_video_57322.showPlayer(myuniqid,360); } }, function(){ if(typeof(console)=='object' && typeof(console.log)=='function') console.log('adbetnet ads ended'); if((u_global_data.basic_params.globalprerollshowed>0 || u_global_data.basic_params.ucoz_show>1) && typeof(ucoz_execclund)=='function') ucoz_execclund(); u_global_data.preroll_video_57322.removeAll(myuniqid); }, { 'soundon' : 0, 'player_width' : 640, 'player_height' : 360 } ); }catch(e){u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_error_abn_'+(u_global_data.basic_params.user_country == 'ru' || u_global_data.basic_params.user_country == 'ua' ? 'rua' : 'cis'));}; } /* function webtycoon() { try{ if (u_global_data.preroll_video_57322.active_video!=null) { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: webtycoon not started, some video active'); return false; } var myuniqid='webtycoon'; if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: webtycoon dummy'); u_global_data.preroll_video_57322.createMainContainer( myuniqid, { header:'default', footer:'webtycoon', onclosefunc:undefined, preroll_width:'640px' } ); var Player = document.createElement("iframe"); Player.setAttribute("id", "webtycoonvideo"); Player.setAttribute("src", "https://www.youtube.com/embed/iDytJAnsbk0?rel=0&autoplay=1" + (navigator.userAgent.indexOf('Safari') != -1 || navigator.userAgent.indexOf('Chrome') != -1 ? '&mute=1' : '')); Player.setAttribute("frameborder", "0"); Player.setAttribute("allow", "autoplay; encrypted-media"); Player.setAttribute("width", "640"); Player.setAttribute("height", "400"); u_global_data.preroll_video_57322.appendPlayer(myuniqid,Player); u_global_data.preroll_video_57322.closetime=1; if (u_global_data.preroll_video_57322.active_video!=null) { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: webtycoon not started, some video active.'); u_global_data.preroll_video_57322.removeAll(myuniqid); } else u_global_data.preroll_video_57322.showPlayer(myuniqid,400); }catch(e){u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_error_webtycoon');}; } */ function mvd_72368() { try{ // if (u_global_data.preroll_video_57322.active_video=='invi' || u_global_data.preroll_video_57322.active_video=='adbetnet') { // return false; // } var myuniqid='mvd'; u_global_data.preroll_video_57322.createMainContainer( myuniqid, { header:'default', footer:'webtycoon', onclosefunc:undefined, preroll_width:'640px' } ); var mvads = document.createElement("script"); mvads.async = true; mvads.src = document.location.protocol + "//moevideo.biz/embed/js/mvpt.min.js"; mvads.onload=function(){ window.moevideoQueue = window.moevideoQueue || []; window.moevideoQueue.push(function () { moevideo.ContentRoll({ mode:"manual", el:"#u_preroll_player"+myuniqid, ref:"ucoz.ru", ignorePlayers:true, callback: function (event) { if (event === 'start') { var abnskiped=0; try{ if (localStorage && typeof(localStorage.getItem) == 'function') abnskiped = parseInt(localStorage.getItem('abnskip_time')); if (!abnskiped || (Date.now() - abnskiped > 3600*1000)) abnskiped=0; }catch(e){}; if (u_global_data.preroll_video_57322.active_video=='invi' || (u_global_data.preroll_video_57322.active_video=='adbetnet' && abnskiped)) { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('not start ads'); u_global_data.preroll_video_57322.removeAll(myuniqid); } else { u_global_data.preroll_video_57322.closetime=15; if(!abnskiped){ try{ abnskiped=Date.now(); if (localStorage && typeof(localStorage.getItem) == 'function') localStorage.setItem('abnskip_time',abnskiped); }catch(e){}; } u_global_data.preroll_video_57322.showPlayer(myuniqid,360); } } else if (event === 'finish' || event === 'close') { if(u_global_data.preroll_video_57322.active_video!=myuniqid){ var ov = document.getElementById("u_preroll_player"+myuniqid); if (ov != null && typeof(ov) != 'undefined') { // webtycoon(); } } u_global_data.preroll_video_57322.removeAll(myuniqid); } } }); }); }; document.getElementsByTagName("head")[0].appendChild(mvads); }catch(e){u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_error_mvd');}; } function invi() { try{ if (u_global_data.preroll_video_57322.active_video=='mvd' || u_global_data.preroll_video_57322.active_video=='adbetnet') { return false; } var myuniqid='invi'; if(typeof(console)=='object' && typeof(console.log)=='function') console.log('show: invi'); u_global_data.preroll_video_57322.createMainContainer( myuniqid, { header:'default', footer:'webtycoon', onclosefunc:undefined, preroll_width:'640px' } ); new Image().src = "//counter.yadro.ru/hit;preroll_invi_load" + "?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); u_global_data.preroll_video_57322.showPlayer(myuniqid,400); window.inviClass = { //cid: "5d47ff3f4c4db055118a8ccf5ae75886", playerid : myuniqid, listener : 0, countInit: 0, placements: [343838], //343274 newPlayer: function() { var plId = inviClass.placements[inviClass.countInit]!=undefined ? inviClass.placements[inviClass.countInit] : inviClass.placements[0]; var newPlayer = document.getElementById("invivideo"); if (newPlayer != null && typeof(newPlayer) != 'undefined' && newPlayer.parentNode) newPlayer.parentNode.removeChild(newPlayer); newPlayer = document.createElement("iframe"); newPlayer.setAttribute("id", "invivideo"); newPlayer.style.cssText='border:none;display:block;position:fixed;width:640px;height:400px;z-index:2147483642;'; //newPlayer.setAttribute("src", "https://invi.tv/player.php?pid="+plId+"&cid="+inviClass.cid); u_global_data.preroll_video_57322.appendPlayer(inviClass.playerid,newPlayer); newPlayer.setAttribute("src", "https://video-peer.com/iframe/Rpl9aiObxc0?pid=" + plId); inviClass.countInit++; if(!inviClass.listener){ if (typeof(window.addEventListener)=='function') { window.addEventListener('message', inviClass.h, true); } else if (typeof(window.attachEvent)=='function') { window.attachEvent('message', inviClass.h); } else { return; } inviClass.listener=1; } }, h: function(e) { //console.log(e.origin); /*if(e.origin === 'https://video-peer.com'){ console.log('!!!' + e.data); }*/ if (e.data == 'adsReady' && e.origin === 'https://video-peer.com') { console.log(e.data); if (u_global_data.preroll_video_57322.active_video=='mvd' || u_global_data.preroll_video_57322.active_video=='adbetnet') { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('not start ads'); u_global_data.preroll_video_57322.removeAll(inviClass.playerid); pushiskiped(); } else { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('invi ads'); var ov=document.getElementById('invivideo'); if(ov != null && typeof(ov) != 'undefined') ov.style.height='400px'; if(u_global_data.is_u_main_h){ new Image().src = "//counter.yadro.ru/hit;invi_am" + "?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); } new Image().src = "//counter.yadro.ru/hit;preroll_invi_adstart" + "?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); //if(u_global_data.preroll_video_57322.active_video!=inviClass.playerid) u_global_data.preroll_video_57322.showPlayer(inviClass.playerid,400); } } else if(e.data == 'noAds' && e.origin === 'https://video-peer.com') { // console.log(e.data); if(inviClass.countInit < inviClass.placements.length) { inviClass.newPlayer(); } else { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('invi no ads'); u_global_data.preroll_video_57322.removeAll(inviClass.playerid); // webtycoon(); var flyRoll = FAW73458({ position: (u_global_data.basic_params.ban240pos == 1? 'LEFT_BOTTOM': 'RIGHT_BOTTOM'), width: 400, height: 255, offsetX: 5, offsetY: 5, closeBtnHiddenDuration: 20 }); if(location.host.indexOf('.vo.uz') == -1){ vastPlayerNew_2753Add(flyRoll); } pushiskiped(); } } else if (e.data == 'adsComplete' && e.origin === 'https://video-peer.com') { console.log(e.data); if(inviClass.countInit < inviClass.placements.length) { inviClass.newPlayer(); } else { if(typeof(console)=='object' && typeof(console.log)=='function') console.log('invi ads ended'); u_global_data.preroll_video_57322.removeAll(inviClass.playerid); // webtycoon(); pushiskiped(); } } } }; u_global_data.preroll_video_57322.closetime=20; inviClass.newPlayer(); }catch(e){u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_error_invi');}; } waitforDOM(); function vastPlayer_52372(_url, _tag, _dummy, _success, _ended, _vpparams) { try{ if(typeof(u_vastplayer)!='object') window.u_vastplayer = {}; if(typeof(u_vastplayer.myJQ)!='function') u_vastplayer.myJQ = typeof(u_global_data)=='object' && typeof(u_global_data.jq)=='function' ? u_global_data.jq : (typeof($)=='function' ? $ : undefined); u_vastplayer[_tag]={}; u_vastplayer[_tag].ClickTracking=[]; if(!_url || _url == '') { _dummy('_urlempty'); return; } //_url='https://get.5visions.com/creative/5934/vxj/ecc60d85129.xml'; window.Trackings = {}; if(!u_global_data.adbetnet_exp) u_global_data.adbetnet_exp=0; if(XMLHttpRequest){ var xhr = new XMLHttpRequest(); try{ xhr.withCredentials=true; xhr.open('GET', _url, true); }catch(e){ // if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x'+ // u_global_data.adbetnet_exp+'_openerr',e.name+'_'+e.message+' '+_url); // if(!u_global_data.adbetnet_exp){ // u_global_data.adbetnet_exp=1; // vastPlayer_52372('//'+window.location.hostname+'/pn2vjvqln5dw4plz/?'+_url,_tag,_dummy,_success,_ended,_vpparams); // } }; xhr.onreadystatechange = function(){ if (xhr.readyState == 4) { if(xhr.responseXML){ showvastPlayer_52372(xhr.responseXML, {}, _tag, _dummy, _success, 0, _ended, _vpparams); }else if(xhr.responseText){ showvastPlayer_52372(xhr.responseText, {}, _tag, _dummy, _success, 0, _ended, _vpparams); }else{ if(_tag=='u_preroll_playeradbetnet'){ // u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x'+ // u_global_data.adbetnet_exp+'_noxml',xhr.status+'_'+xhr.statusText+'_'+xhr.responseType+'_'+xhr.responseText+' '+_url); if(!u_global_data.adbetnet_exp){ u_global_data.adbetnet_exp=1; vastPlayer_52372('//'+window.location.hostname+'/pn2vjvqln5dw4plz/?'+_url,_tag,_dummy,_success,_ended,_vpparams); } } } } }; xhr.onerror = function(){ if(xhr.readyState != 4){ // if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x'+ // u_global_data.adbetnet_exp+'_error_'+xhr.status); } }; xhr.send(); }else{ // if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x'+ // u_global_data.adbetnet_exp+'_noXMLHttpRequest'); } }catch(e){ // if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x'+ // u_global_data.adbetnet_exp+'_expt'); _dummy('_except_'+e.name+'_'+e.message); }; } function showvastPlayer_52372(vast, conf, _tag, _dummy, _success, _level, _ended, _vpparams) { conf = conf || {}; if(typeof(u_vastplayer.myJQ)!='function'){ _dummy('_nojquery'); return; } try { if(typeof(vast) == "string") vast = u_vastplayer.myJQ.parseXML(vast); }catch(e){ _dummy('_html2xml_'+e.name+'_'+e.message); return; } top.vast = vast; // зачем нужно? var container1 = u_vastplayer.myJQ(vast).find('Linear'); var container2 = container1.first(); container2.find('ClickTracking').each(function(i,el){ var elval=u_vastplayer.myJQ(el).text().trim(); u_vastplayer[_tag].ClickTracking.push(elval); }); var imps = u_vastplayer.myJQ(vast).find('Impression').each(function(sel, el) { new Image().src = u_vastplayer.myJQ(el).text().trim(); }); var lins = u_vastplayer.myJQ(vast).find('Linear'); if (lins.length > 0) { var lin = lins.first(); lin.find('Tracking').each(function(i,e){ var etype = u_vastplayer.myJQ(e).attr('event'); if(Trackings[etype]=='undefined' || typeof(Trackings[etype])!='object') Trackings[etype]=[]; Trackings[etype].push({'link':u_vastplayer.myJQ(e).text().trim()}); }); } if(u_vastplayer.myJQ(vast).find('VASTAdTagURI').length>0) { if(!_level) _level = 0; if(_level > 5) { //слишком много вастов в васте - имитирую трафикбек showvastPlayer_52372('', { 'errorTrack' : conf.errorTrack, 'impressionTrack' : conf.impressionTrack, 'clickTrack' : conf.clickTrack }, _tag, _dummy, _success, _level+1, _ended, _vpparams); return; } var url = u_vastplayer.myJQ(vast).find('VASTAdTagURI').first().text().trim(); var errorTrack = u_vastplayer.myJQ(vast).find('Error').first().text().trim(); var impressionTrack = u_vastplayer.myJQ(vast).find('Impression').first().text().trim(); var clickTrack = u_vastplayer.myJQ(vast).find('ClickTracking').first().text().trim(); var xhr = new XMLHttpRequest(); try{ xhr.withCredentials=true; xhr.open('GET', url, true); }catch(e){ // if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x2_openerr',e.name+'_'+e.message+' '+url); }; xhr.onreadystatechange = function(){ if (xhr.readyState == 4) { if(xhr.responseXML){ showvastPlayer_52372(xhr.responseXML, { 'errorTrack' : errorTrack, 'impressionTrack' : impressionTrack, 'clickTrack' : clickTrack }, _tag, _dummy, _success, _level+1, _ended, _vpparams); }else if(xhr.responseText){ showvastPlayer_52372(xhr.responseText, { 'errorTrack' : errorTrack, 'impressionTrack' : impressionTrack, 'clickTrack' : clickTrack }, _tag, _dummy, _success, _level+1, _ended, _vpparams); }else{ if(_tag=='u_preroll_playeradbetnet') { // u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x2_noxml',xhr.status+'_'+xhr.statusText+'_'+xhr.responseType+'_'+xhr.responseText+' '+url); u_global_data.adbetnet_exp=2; var xhr2 = new XMLHttpRequest(); xhr2.open('GET', '//'+window.location.hostname+'/pn2vjvqln5dw4plz/?'+url, true); xhr2.onreadystatechange = function(){ if (xhr2.readyState == 4) { if(xhr2.responseXML){ showvastPlayer_52372(xhr2.responseXML, { 'errorTrack' : errorTrack, 'impressionTrack' : impressionTrack, 'clickTrack' : clickTrack }, _tag, _dummy, _success, _level+1, _ended, _vpparams); }else if(xhr2.responseText){ showvastPlayer_52372(xhr2.responseText, { 'errorTrack' : errorTrack, 'impressionTrack' : impressionTrack, 'clickTrack' : clickTrack }, _tag, _dummy, _success, _level+1, _ended, _vpparams); }else{ // if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x3_noxml',xhr2.status+'_'+xhr2.statusText+'_'+xhr2.responseType+'_'+xhr2.responseText+' '+url); } } }; xhr2.onerror = function(){ if(xhr2.readyState != 4) { // if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x3_error_'+xhr2.status); } }; xhr2.send(); } } } }; xhr.onerror = function(){ if(xhr.readyState != 4) { // if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_x2_error_'+xhr.status); } }; xhr.send(); } else { setTimeout(function(){ new Image().src = "//counter.yadro.ru/hit;preroll5sec" + "?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); }, 5000); setTimeout(function(){ new Image().src = "//counter.yadro.ru/hit;preroll10sec" + "?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); }, 10000); var safariorchrome = (navigator.userAgent.indexOf('Safari') != -1 || navigator.userAgent.indexOf('Chrome') != -1 ? true : false); var param_width = _vpparams.player_width ? _vpparams.player_width : 720; var param_height = _vpparams.player_height ? _vpparams.player_height : 480; var muted = ''; if(_tag == 'u_preroll_playeradbetnet'){ muted = (''); } // u_vastplayer.myJQ('#'+_tag).html('
'); u_vastplayer.myJQ('#'+_tag).html('
' + muted +'
'); if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_Impression'); //if(_tag=='u_preroll_playeradbetnet') u_counter(u_global_data.basic_params.site_type+'_'+u_global_data.basic_params.isadblock+'_Impression',u_global_data.basic_params.isadblock ? u_vastplayer.myJQ(vast).find('Impression').text() : ''); var lins = u_vastplayer.myJQ(vast).find('Linear'); if (lins.length > 0 && lins.find('MediaFile').length > 0) { if(conf && conf.impressionTrack) { new Image().src = conf.impressionTrack; if(typeof(console)=='object' && typeof(console.log)=='function') console.log('conf.impressionTrack'); } var lin = lins.first(); if(Trackings['creativeView']!='undefined' && typeof(Trackings['creativeView'])=='object'){ for(var key=0;key
'); return; } else if (!u_vastplayer[_tag].is_vpaid) { var source = document.createElement('source'); source.type = mediafile_type; source.src = mediafile_url; document.getElementById("ucz_video").appendChild(source); } }); if (u_vastplayer[_tag].is_vpaid==1) return; video.addEventListener('timeupdate', function(e){ if( video.currentTime/video.duration > 0.75 ) { if(Trackings['thirdQuartile']!='undefined' && typeof(Trackings['thirdQuartile'])=='object'){ for(var key=0;key 0.5 ) { if(Trackings['midpoint']!='undefined' && typeof(Trackings['midpoint'])=='object'){ for(var key=0;key 0.25 ) { if(Trackings['firstQuartile']!='undefined' && typeof(Trackings['firstQuartile'])=='object'){ for(var key=0;key 0.9 ) { if(Trackings['complete']!='undefined' && typeof(Trackings['complete'])=='object'){ for(var key=0;key 0 ) { media[i].vASTAdTagURI = vastAdTagURI.first().text().trim(); // Если wrapper var xhr = new XMLHttpRequest(); try{ xhr.withCredentials = true; xhr.open('GET', media[i].vASTAdTagURI, true); }catch(e){ }; xhr.onreadystatechange = function(){ if (xhr.readyState == 4) { var response = (xhr.responseXML ? xhr.responseXML: xhr.responseText); if(!response){ count--; return; } media[i].next = []; findVideo(response, media[i].next, volumebtn); } }; xhr.onerror = function(){ count--; }; count++; xhr.send(); } else { media[i].clickThrough = u_vastplayer.myJQ(el).find('ClickThrough').first().text().trim(); media[i].mediaFile = u_vastplayer.myJQ(el).find('MediaFiles').first(); var adparams = u_vastplayer.myJQ(el).find('AdParameters'); if(adparams) media[i].adParameters = adparams.text().trim(); else media[i].adParameters = ''; } }); count--; if(count <= 0){ //var a = JSON.stringify(mediaFiles); //console.log(JSON.parse(a)); if(defaultAds.url && !param.urls[0]){ var mfs = document.createElement('MediaFiles'); mfs.style.display = 'none'; document.body.appendChild(mfs); u_vastplayer.myJQ(mfs).append('' + defaultAds.video + ''); mediaFiles.push({ mediaFile: u_vastplayer.myJQ(mfs), clickThrough: defaultAds.url, ClickTracking: defaultAds.click_tr, errorTrack: [], impressionTrack: defaultAds.impressionTrack, tracking: [], vASTAdTagURI: undefined, is_tycoon: true, repeat: true, next: [] }); } //if(previewAds.url && (['ua', 'by', 'kz', 'uz', 'ge', 'am'].indexOf(u_global_data.basic_params.user_country) >= 0)){ if(0){ var mfs = document.createElement('MediaFiles'); mfs.style.display = 'none'; document.body.appendChild(mfs); u_vastplayer.myJQ(mfs).append('' + previewAds.video + ''); mediaFiles.unshift({ mediaFile: u_vastplayer.myJQ(mfs), clickThrough: previewAds.url, ClickTracking: previewAds.click_tr, errorTrack: [], impressionTrack: previewAds.impressionTrack, tracking: [], vASTAdTagURI: undefined, is_tycoon: true, repeat: false, next: [] }); previewAds.url = ''; } vastView(mediaFiles, mediaFiles[0]); //mediaFiles[0] там хранятся треки первого уровня } } function vastView(media, tracking){ var a = JSON.stringify(mediaFiles); if(media.length){ if(media[0].next && media[0].next.length){ vastView(media[0].next, tracking); } else { var cellMedia = media.shift(); var muted = ''; if(cellMedia.is_tycoon){ muted = (''); } if(cellMedia.mediaFile){ u_vastplayer.myJQ('#'+param.wrapperId).html('
' + muted +'
'); cellMedia.impressionTrack.forEach(function(sel) { new Image().src = sel; }); if(tracking && tracking.impressionTrack){ tracking.impressionTrack.forEach(function(element) { new Image().src = element; }); } //if(typeof(console)=='object' && typeof(console.log)=='function') console.log('impressionTrack'); var link = cellMedia.clickThrough; u_vastplayer.myJQ('#ucz_video_link')[0].href = link; u_vastplayer[param.wrapperId].ClickThrough=link; u_vastplayer.myJQ('#ucz_video_link').on('click', function() { cellMedia.ClickTracking.forEach(function(element) { new Image().src = element; }); if(tracking && tracking.ClickTracking){ tracking.ClickTracking.forEach(function(element) { new Image().src = element; }); } }); if(u_vastplayer.myJQ('#volume_video_ucoz').length){ u_vastplayer.myJQ('#volume_video_ucoz').on('click', function() { var vastvideo = document.getElementById("ucz_video"); if(vastvideo.muted){ this.src = "/.s/src/adv_scripts/static/volume.png"; }else{ this.src = "/.s/src/adv_scripts/static/muted.png"; } vastvideo.muted = !vastvideo.muted; }); } if(window.u_accountclicks != null && typeof(window.u_accountclicks) == 'object' && typeof(window.u_accountclicks.code) === 'function') window.u_accountclicks.code(u_vastplayer[param.wrapperId]); if(cellMedia.mediaFile.find('MediaFile').length == 0){ cellMedia.errorTrack.forEach(function(el) { new Image().src = el; }); if(tracking && tracking.errorTrack){ tracking.errorTrack.forEach(function(element) { new Image().src = element; }); } param.error('_linormedia'); vastView(mediaFiles, tracking); return; } if(!cellMedia.is_tycoon){ console.log('VIEW: ' + url.track); if(url.track && !is_track[url.track]){ new Image().src = "//counter.yadro.ru/hit;" +url.track + "?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); is_track[url.track] = 1; } if(url.track == 'flyroll_profits'){ var timer = 0; var _ve_content_start = function(e){ if(e.origin != 'https://widget.svk-native.ru'){ if(timer){ clearTimeout(timer); } timer = setTimeout(function(){ if(url.track == 'flyroll_profits'){ vastView(mediaFiles, tracking); } clearTimeout(timer); }, 15000); //if(e.data == '_ve_content_start'){ //vastView(mediaFiles); //} } }; window.removeEventListener("message", _ve_content_start, false); window.addEventListener("message", _ve_content_start, false); } } cellMedia.mediaFile.find('MediaFile').each(function(i, mediafile){ var mediafile = u_vastplayer.myJQ(mediafile); var mediafile_url = mediafile.text().trim(); var mediafile_type = mediafile.attr('type'); var isvpaid = mediafile.attr('apiFramework'); //if(isvpaid && isvpaid=='VPAID') u_vastplayer[param.wrapperId].is_vpaid = 1; u_vastplayer[param.wrapperId].is_vpaid = (isvpaid && isvpaid=='VPAID' ? 1 : 0); if(u_vastplayer[param.wrapperId].is_vpaid && mediafile_type == "application/javascript") { // return false; //Временно без vpaid var vastvideo=document.getElementById("ucz_video"); vastvideo.parentNode.removeChild(vastvideo); u_vastplayer[param.wrapperId].vpaid_data = { script: mediafile_url, scriptiframe: 'vpaidframe'+param.wrapperId, params: cellMedia.adParameters, fail: finishVast, success: callback.success, finish: finishVast, gparams: param, tracking: tracking.tracking //Добавить необходимые параметры }; u_vastplayer.myJQ('#'+param.wrapperId).html('
'); } else if (!u_vastplayer[param.wrapperId].is_vpaid) { var source = document.createElement('source'); source.type = mediafile_type; source.src = mediafile_url; document.getElementById("ucz_video").appendChild(source); } }); if (u_vastplayer[param.wrapperId].is_vpaid==1) { // vastView(mediaFiles); }else{ var video = document.getElementById("ucz_video"); video.addEventListener('timeupdate', function(e){ for(var key=0; key < cellMedia.tracking.length; key++) { if(cellMedia.tracking[key]) { if(cellMedia.tracking[key].type == 'start'){ new Image().src = cellMedia.tracking[key].link; cellMedia.tracking[key] = null; } else if(cellMedia.tracking[key].type == 'firstQuartile'){ if( video.currentTime/video.duration > 0.25 ) { new Image().src = cellMedia.tracking[key].link; cellMedia.tracking[key] = null; } } else if(cellMedia.tracking[key].type == 'midpoint'){ if( video.currentTime/video.duration > 0.5 ) { new Image().src = cellMedia.tracking[key].link; cellMedia.tracking[key] = null; } } else if(cellMedia.tracking[key].type == 'thirdQuartile'){ if( video.currentTime/video.duration > 0.75 ) { new Image().src = cellMedia.tracking[key].link; cellMedia.tracking[key] = null; } } } } }); video.addEventListener('ended', function(){ for(var key=0; key < cellMedia.tracking.length; key++) { if(cellMedia.tracking[key]) { if(cellMedia.tracking[key].type == 'complete' || cellMedia.tracking[key].type == 'engagedView'){ if( video.currentTime/video.duration > 0.9 ) { new Image().src = cellMedia.tracking[key].link; cellMedia.tracking[key] = null; } } } } vastView(mediaFiles, tracking); }); try{ video.play(); }catch(e){}; if(typeof(_success)=='function'){ callback.success(); } } } else { vastView(mediaFiles, tracking); } } } else{ if(param.urls.length){ findVast(); return; } callback.ended(); } } function finishVast(){ vastView(mediaFiles); } return { init: init }; } function FAW73458(params) { var positions = { RIGHT_BOTTOM: 'RIGHT_BOTTOM', LEFT_BOTTOM: 'LEFT_BOTTOM', RIGHT_TOP: 'RIGHT_TOP', LEFT_TOP: 'LEFT_TOP' }; var addHeight = 53; var wrapperContent; params.width = (params.width !== undefined ? params.width: 355); params.height = (params.height !== undefined ? params.height: 200); params.position = (params.position !== undefined ? params.position: positions.RIGHT_BOTTOM); params.offsetX = (params.offsetX !== undefined ? params.offsetX: 13); params.offsetY = (params.offsetY !== undefined ? params.offsetY: 13); params.closeBtnHiddenDuration = (params.closeBtnHiddenDuration? params.closeBtnHiddenDuration: 20); var wrapper = createWrapper(); document.body.appendChild(wrapper); wrapper.appendChild(createVideoAdWrapper()); var btn = createCloseBtn(params.closeBtnHiddenDuration); wrapper.appendChild(btn); addVideoWrappers(); wrapperContent = document.getElementById('vmainadsdv' + u_global_data.basic_params.rndid); function createWrapper() { var wrapper = document.createElement('div'); wrapper.style.position = 'fixed'; wrapper.style.zIndex = '999999'; wrapper.style.width = params.width + 'px'; wrapper.style.height = params.height + addHeight + 'px'; //wrapper.style.background = 'black'; switch(params.position) { case positions.RIGHT_BOTTOM: wrapper.style.right = params.offsetX + 'px'; wrapper.style.bottom = params.offsetY + 'px'; params.pos = 1; break; case positions.RIGHT_TOP: wrapper.style.right = params.offsetX + 'px'; wrapper.style.top = params.offsetY + 'px'; params.pos = 1; break; case positions.LEFT_BOTTOM: wrapper.style.left = params.offsetX + 'px'; wrapper.style.bottom = params.offsetY + 'px'; params.pos = 0; break; case positions.LEFT_TOP: wrapper.style.left = params.offsetX + 'px'; wrapper.style.top = params.offsetY + 'px'; params.pos = 0; break; } return wrapper; } function createWrapperContent(){ var myuniqid = 'video_wrapper'; var wrapperContent = document.createElement('div'); wrapperContent.style.height = '100%'; wrapperContent.id = myuniqid; return wrapperContent; } function createCloseBtn(Duration) { var closeDuration = Duration; var closeBtn = document.createElement('div'); closeBtn.style.display = 'none'; closeBtn.style.position = 'absolute'; closeBtn.style.top = '28px'; closeBtn.style[(params.pos? 'left': 'right')] = '0px'; closeBtn.style.width = '32px'; closeBtn.style.height = '32px'; closeBtn.style.borderRadius = '50%'; closeBtn.style.background = '#111111'; closeBtn.style.color = 'white'; closeBtn.style.textAlign = 'center'; closeBtn.style.lineHeight = '19px'; closeBtn.style.transform = 'translate(' + (params.pos? '-50%': '50%') + ', -50%)'; closeBtn.style.fontSize = '14px'; closeBtn.style.cursor = 'pointer'; closeBtn.style.userSelect = 'none'; closeBtn.style.fontWeight = 600; closeBtn.style.boxShadow = '0px 4px 4px rgba(0, 0, 0, 0.25)'; closeBtn.style.zIndex = '20000'; var cellBtn = document.createElement('span'); cellBtn.style.position = 'absolute'; cellBtn.style.top = '50%'; cellBtn.style.left = '50%'; cellBtn.style.transform = 'translate(-50%, -50%)'; cellBtn.style.width = '100%'; closeBtn.appendChild(cellBtn); cellBtn.innerHTML = Duration ? Duration :'×'; var closeBtnId = setInterval(function(){ if(closeDuration-- <= 1){ closeBtn.style.display = 'block'; cellBtn.innerHTML = '×'; cellBtn.addEventListener('click', function() { destroy(); }, { once: true }); clearInterval(closeBtnId); } else { cellBtn.innerHTML = closeDuration; } }, 1000); return closeBtn; } function insertContent(content) { if (!content) { return; } $(wrapperContent).html(content); } function appendContent(content) { if (!content) { return; } if (typeof content === 'string') { wrapperContent.insertAdjacentHTML("beforeend", content); } if (content instanceof HTMLElement) { wrapperContent.insertAdjacentElement("beforeend", content); } } function createVideoAdWrapper(){ mdiv = document.createElement('div'); mdiv.id = 'dVi' + u_global_data.basic_params.rndid; mdiv.setAttribute('style','width:100%;height:100%;overflow:hidden;z-index:2147483642;margin:0;padding:0;background:none;'); // СНГ var isCis = 1; //['ru', 'ua', 'by', 'kz', 'uz', 'ge', 'am'].indexOf(u_global_data.basic_params.user_country) >= 0; var footerBackgroundColor = isCis ? '#4caf50' : '#b72222'; var footerYouTubeIconName = isCis ? 'Vector' : 'yt-icon'; var footerVkIconName = isCis ? 'Vector' : 'icn-vk-logo'; mdiv.innerHTML+=''+ ''+ '
'+ ''+ ''+ '
'+ ''+ '
'; return mdiv; } function addVideoWrappers(){ if (u_global_data.basic_params.site_lng=='US') { uWVL8326149('top', 'Advertising'); uWVL8326149('bottom', 'Create free website'); } else { var isChrome = (window.navigator && navigator.userAgent && navigator.userAgent.indexOf('Chrome') >= 0 && navigator.userAgent.indexOf('YaBrowser') < 0 && navigator.userAgent.indexOf('Mobile') < 0 && navigator.userAgent.indexOf('Android') < 0 && navigator.userAgent.indexOf('iPhone') < 0 && navigator.userAgent.indexOf('iPad') < 0 && navigator.userAgent.indexOf('iPod') < 0 && navigator.userAgent.indexOf('OPR') < 0 && navigator.userAgent.indexOf('UCBrowser') < 0 && navigator.userAgent.indexOf('Amigo') < 0 ? true : false); //http://dev010.ucozmedia.com/.s/src/uadsoff6.js ////"+u_global_data.basic_params.server+".ucoz.net/src/uadsoff6.js //uWVL8326149('top', '"+"</div><style type="text/css">.xw-active, .x-sh{display:none;} div.myWinGrid{z-index:2147483642!important;height:100%!important;}div.uwnd-uran-br{z-index:2147483643!important;}div.uwnd-uran-br div.xw-plain{width: auto !important;}div#_umenu0{z-index:2147483644!important;} </style><script type="text/javascript" src="//" + location.host + "/.s/src/uadsoff6.js?r=9"></script>');return false;"+'" title="Отключить рекламу на всех сайтах системы uCoz" class="a-buttons green-butv a-clock">Отключить рекламу'); uWVL8326149('top', ''); /*if (u_global_data.basic_params.user_country == 'ge' && Math.random() < 0.5) { uWVL8326149('bottom', 'Создать сайт'); } else { if (Math.random() < 1/3) { uWVL8326149('bottom', 'Создать сайт из ВКонтакте'); } else { uWVL8326149('bottom', 'Создать сайт'); } }*/ // СНГ var isCis = 1; //['ru', 'ua', 'by', 'kz', 'uz', 'ge', 'am'].indexOf(u_global_data.basic_params.user_country) >= 0; var bannerText = isCis ? 'ВСЕ ПРО ЗАРАБОТОК В ИНТЕРНЕТЕ' : 'БЕСПЛАТНОЕ ПРОДВИЖЕНИЕ В YOUTUBE'; var bannerLink = 'https://gde.cash/?utm_source=ucoz&utm_medium=flyroll&utm_campaign=plane'; uWVL8326149('bottom', '' + bannerText + ''); } } function getId(){ return wrapper.id; } function getIdContent(){ return wrapperContent.id; } function destroy() { wrapper.remove(); // crCatFish(); } return { appendContent: appendContent, insertContent: insertContent, destroy: destroy, getId: getId, getIdContent: getIdContent }; } // function crCatFish(){ // // let ucoz_rndid = u_global_data && u_global_data.basic_params.rndid ? u_global_data.basic_params.rndid: 'idcrCatFish'; // // function abn_show() { // var zoneToSkip = '.vo.uz'; // // if (location.host.indexOf(zoneToSkip) === location.host.length - zoneToSkip.length) { // return; // } // new Image().src = "//counter.yadro.ru/hit;ucoz100x70?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); // document.getElementById(ucoz_rndid).innerHTML = '
'; // window.k_init = window.k_init || []; // k_init.push({ // id: 'ztefRq445', // type: 'bn', // domain: 'cchdbond.com', // refresh: false, // next: 0 // }); // // var s = document.createElement('script'); // s.setAttribute('async', true); // s.setAttribute('charset', 'utf-8'); // s.setAttribute('data-cfasync', false); // s.src = 'https://cchdbond.com/a25d3rq0.js'; // document.head && document.head.appendChild(s); // } // // document.body.insertAdjacentHTML('beforeend', `
//
// ✖ //
//
`); // abn_show(); // } function vastPlayerNew_2753Add(flyRoll){ /* , { url: 'https://adprofits.ru/show_player.php?vast=1&id=55', track: 'adprofits' } u_global_data.basic_params.user_country == 'ru' */ var domain = window.location.host; var urls = []; if(['ru'].indexOf(u_global_data.basic_params.user_country) >= 0){ urls.push({ url: 'https://ads.adlook.me/vast?id=7246', track: '', volumebtn: 1 }); } if(['ua', 'by', 'kz', 'uz', 'ge', 'am', 'md', 'az', 'tj', 'kg', 'tm'].indexOf(u_global_data.basic_params.user_country) >= 0){ urls.push({ url: 'https://z.cdn.trafficbass.com/load?o=v&z=1436196514&random='+Math.random(), track: '', volumebtn: 1 }); } urls.push({ url: 'https://ad.moe.video/vast?pid=10215&vpt=inbanner&advertCount=10&vt=vpaid&vl=0&rnd=' + Math.random() + '&referrer=' + encodeURI(location.href), track: 'flyroll_moevideo' }); if(['ru'].indexOf(u_global_data.basic_params.user_country) >= 0){ urls.push({ url: 'https://ssp.bidvol.com/vast/pl23608?domain=' + location.host + '&page=[your_page]', track: '' }); } // var cn = {'by':1,'kz':1,'uz':1,'am':1, 'md':1, 'az':1, 'tj':1, 'kg':1, 'tm':1, 'ua':1, 'ge':1, 'ru': 1}; /*if(['ru'].indexOf(u_global_data.basic_params.user_country) >= 0){ urls.push({ url: 'https://vtg1.rktch.com/v0?i=11961&url=' + location.href, track: 'programmatic_flyroll' }); }*/ // if(['ru', 'ua', 'by', 'kz', 'uz', 'ge', 'am'].indexOf(u_global_data.basic_params.user_country) >= 0){ // urls.push({ // url: '//cdn-rtb.sape.ru/rtb-b/vast/453/547453.xml', // track: 'flyroll_sape_view' // }); // } // if(['ru'].indexOf(u_global_data.basic_params.user_country) >= 0){ // urls.push({ // url: 'https://static.kost.tv/vpaid/temp/vpaid-1339.xml', // track: 'kosttv_flyroll' // }); // } /*urls.push({ url: 'https://z.cdn.trafficbass.com/media?m=1711424527', track: 'trafficbass' });*/ var player = new vastPlayerNew_2753({ 'urls': urls, 'wrapperId': flyRoll.getIdContent(), 'soundon' : 0, 'player_width' : 400, 'player_height' : 255, 'preview_video': { 'url': 'https://gamelinks.ru/stream/flyroll', 'video': '/.s/src/adv_scripts/static/gsb.mp4', 'click_tr': [], 'impressionTrack': ["//counter.yadro.ru/hit;gamebet_view?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now()] }, 'not_video': { 'url': '', // http://qgpqq.abtr4all.com/c/7736d682be0ce52c?subid_1=flyroll 'video': '', // /.s/flash/bnr/wot_fly.mp4 'click_tr': ["//counter.yadro.ru/hit;flyroll_click_wot?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now()], 'impressionTrack': ["//counter.yadro.ru/hit;flyroll_game_wot?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now()] } }); function initPushes() { // var cn ={'by':1,'kz':1,'uz':1,'am':1, 'md':1, 'az':1, 'tj':1, 'kg':1, 'tm':1, 'ua':1, 'ge':1, ru: 1}; // if(cn[u_global_data.basic_params.user_country]){ // (function(){ // var script = document.createElement('script'); // script.type = 'text/javascript'; // script.charset = 'utf-8'; // script.async = 'async'; // script.dataset.cfasync = 'false'; // script.src = '//inpagepush.com/400/3056382'; // document.body.appendChild(script); // })(); // } else { // (function(){ // var script = document.createElement('script'); // script.type = 'text/javascript'; // script.charset = 'utf-8'; // script.async = 'async'; // script.dataset.cfasync = 'false'; // script.src = '//inpagepush.com/400/3076852'; // document.body.appendChild(script); // })(); // } }; player.init({ error: function(msg){ if(typeof(console)=='object' && typeof(console.log)=='function') console.log(flyRoll.getIdContent() + ' no ads ' + msg); var cn = {'ru': 1}; //'by':1,'kz':1,'uz':1,'am':1, 'md':1, 'az':1, 'tj':1, 'kg':1, 'tm':1, 'ua':1, 'ge':1, if(cn[u_global_data.basic_params.user_country]){ window.addEventListener("message", function(e){ if((typeof e.data == 'object') && e.data.eventName){ if(e.data.eventName == 'COMPLETE'){ flyRoll.destroy(); } } }); flyRoll.destroy(); // new Image().src = "//counter.yadro.ru/hit;sportrecs?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); // flyRoll.insertContent(``); } else { flyRoll.destroy(); } //flyRoll.destroy(); initPushes(); }, success: function(){ if(typeof(console)=='object' && typeof(console.log)=='function') console.log(flyRoll.getIdContent() + ' success'); }, ended: function(){ if(typeof(console)=='object' && typeof(console.log)=='function') console.log('ads ended'); var cn = {'ru': 1}; //'by':1,'kz':1,'uz':1,'am':1, 'md':1, 'az':1, 'tj':1, 'kg':1, 'tm':1, 'ua':1, 'ge':1, if(cn[u_global_data.basic_params.user_country]){ window.addEventListener("message", function(e){ if((typeof e.data == 'object') && e.data.eventName){ if(e.data.eventName == 'COMPLETE'){ flyRoll.destroy(); } } }); flyRoll.destroy(); // new Image().src = "//counter.yadro.ru/hit;sportrecs?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); // flyRoll.insertContent(``); } else { flyRoll.destroy(); } //flyRoll.destroy(); initPushes(); }, tracker: 'flyroll_show_all' }); } function u_analitics(){ (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(55880941, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true }); var ganal = document.createElement("script"); ganal.src = 'https://www.googletagmanager.com/gtag/js?id=UA-150660922-1'; ganal.onload = function(){ window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-150660922-1'); }; document.getElementsByTagName('head')[0].appendChild(ganal); new Image().src = "//counter.yadro.ru/hit;preroll_adbetnet?r"+escape(document.referrer)+(screen&&";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth||screen.pixelDepth))+";u"+escape(document.URL)+";"+Date.now(); }