16+ , « », . 16+
-
var BNRS = ;
BNRS.wdth = document.getElementsByTagName("body")[0].offsetWidth;
BNRS.b240x1 = 0;
BNRS.b240x2 = 0;
BNRS.show = 1;
if (jQuery.browser.mobile && window.location.pathname != "/peredacha/25let/internal/70441/")
var containerElement = document.getElementById('fullscreenBanner');
window.MTBanners.fullscreen(
configAdfox:
bannerContainerId : 'fullscreenBanner',
p1: 'ccokf',
p2: 'gdxc',
ownerId: 277740
,
onBannerEvent: function(e, options)
if (e.type === window.MTBanners.events.CLOSE)
return;
,
onSetStatus: function(status)
if (status == 'PREPARED')
console.log('FULLSCREEN PREPARED');
containerElement.classList.add("shown");
return;
if (status == 'FINISHED')
console.log('FULLSCREEN FINISHED');
containerElement.classList.remove("shown");
return;
if (status == 'FAILED')
console.log('FULLSCREEN FAILED');
containerElement.classList.remove("shown");
return;
,
overlayBG: 'rgba(0, 0, 0, 0.7)'
);
var _tmr = window._tmr || (window._tmr = []);
_tmr.push(id: "916045", type: "pageView", start: (new Date()).getTime());
(function (d, w, id)
if (d.getElementById(id)) return;
var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
ts.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//top-fwz1.mail.ru/js/code.js";
var f = function () var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);;
if (w.opera == "[object Opera]") d.addEventListener("DOMContentLoaded", f, false); else f();
)(document, window, "topmailru-code");
- play/pause
- volume
- size
- -
// <![CDATA[
var b240x1 = 0, b240x2 = 0;
$(function() [];
window.myWidgetAsyncCallbacks.push(function()
yaCounter7414054.reachGoal('recommendationMail');
);
window.myWidgetInit = useDomReady: false;
(function(d, s, id)
var js, t = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://likemore-go.imgsmail.ru/widget.js";
t.parentNode.insertBefore(js, t);
(document, "script", "my-widget-script"));
if(console) console.log("[NTV][GPM_Ntv.ru_D_News][ccokc:gdyl]");
window.Ya.adfoxCode.createAdaptive(
ownerId: 277740,
containerId: 'adfox_155291584866026954',
params:
p1: 'ccokc',
p2: 'gdyl'
, ['desktop', 'tablet'],
tabletWidth: 1300,
phoneWidth: 969,
isAutoReloads: false
);
function callAdblock(zoneid,width,height)
var el = document.getElementById('crt-'+zoneid);
el.style.width=width+"px";el.style.height=height+"px";
Criteo.events.push(function()Criteo.DisplayAcceptableAdIfAdblocked('zoneid': zoneid, 'containerid': 'crt-'+zoneid, 'overrideZoneFloor': false););
window.addEventListener("message", function (e)
if(e.origin == (location.protocol=='https:'?'https://':'http://') + 'cas.criteo.com' && e.data == zoneid) document.getElementById('crt-'+zoneid).style.display = "none";
else return;
, false);
if (!jQuery.browser.mobile)
callAdblock(1107964,970,250);
// = b && a = h)
c.removeClass('fixed');
c.addClass('btmm');
else
if (c.hasClass('btmm')) c.removeClass('btmm');
if (c.hasClass('fixed')) c.removeClass('fixed');
;
$(function()
var w = checkWidth();
$(".ivideo_lazy").lazyload(appear : function()
var el = $(this);
var vw = 650;
var vh = 366;
var st = "";
if (w)
vw = $('.inpagebody').width();
vh = vw*9/16;
st = ' style="width:'+vw+'px;height:'+vh+'px;" ';
el.replaceWith(' 0 ? '?ts='+el.attr("ts") : ''))+'" frameborder="0" allowfullscreen>');
, load : function()
);
var c = $('.itemnews').offset();
var widthWindow = document.getElementsByTagName("body")[0].offsetWidth;
var heightWindow = document.documentElement.clientHeight;
var widthContent = $('.itemnews .content').width();
var widthDotComm = $('.dotcomm').width();
var ww = ((widthWindow + widthContent) / 2) - widthDotComm;
$( '#dragcomm' ).addClass("toshow");
$( '#dragcomm' ).draggable(
start: function()
$( '#dragcomm' ).removeClass('tomove');
);
if (w)
if (!jQuery.browser.mobile) $('#flamur8').hide();
$( '#dragcomm' ).css (
"top": (heightWindow-70)+"px",
"left": (ww-20)+"px"
);
$( '.itemnewstext h2' ).insertAfter( $( '.itemnews h1' ) );
if ($('iframe.yt').length > 0)
vw = $('.inpagebody').width();
vh = vw*9/16;
$('iframe.yt').css( width: vw, height: vh );
if ($('.ifvideo').length > 0)
vw = $('.inpagebody').width();
vh = vw*9/16;
$('.ifvideo').css( width: vw, height: vh );
if ($('#isImageOnTop iframe').length > 0)
vw = $('#isImageOnTop').width();
vh = vw*9/16;
$('#isImageOnTop iframe').css( width: vw, height: vh );
if ($('#isImageOnTop').length > 0)
$( '#isImageOnTop' ).insertBefore( $( '.itemnews .content' ).eq(0) );
else //desktop
$( '#dragcomm' ).css (
"top": c.top+24+"px",
"left": ww+"px"
);
$(window).bind( "scroll", function()
b240Scroller('newszen');
);
);
// ]]>
window.Ya.adfoxCode.create(
ownerId: 277740,
containerId: 'adfox_156335463283623256',
params:
p1: 'cenrk',
p2: 'ghzu',
slide: true,
visibleAfterInit: false,
insertAfter: '#inpagetext p',
insertPosition: '1',
stick: false,
stickTo: 'auto',
stickColorScheme: 'light'
,
onRender: function (params)
$('.yaAdSdkContainer').css('margin','40px 0');
);
//
!function(e)function t(t,n)if(!(n in e))for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t))r=i[o];breakif(!r)r=a.createElement("script"),r.type="text/javascript",r.async=!0,r.defer=!0,r.src=t,r.charset="UTF-8";var d=function()var e=a.getElementsByTagName("script")[0];e.parentNode.insertBefore(r,e);"[object Opera]"==e.opera?a.addEventListener?a.addEventListener("DOMContentLoaded",d,!1):e.attachEvent("onload",d):d()t("//mediator.mail.ru/script/2771189/","_mediator")(window);
- vk
- odnoklassniki
- telegram
- youtube
- tamtam
- AppStore
- Google Play
→
if(console) console.log("[NTV][GPM_Ntv.ru_D_970x250-Bottom][ccoka:gdyl]");
window.Ya.adfoxCode.createAdaptive(
ownerId: 277740,
containerId: 'adfox_155291557891773618',
params:
p1: 'ccoka',
p2: 'gdyl'
, ['desktop', 'tablet'],
tabletWidth: 1300,
phoneWidth: 969,
isAutoReloads: false
);
if(console) console.log("[NTV][GPM_Ntv.ru_M_Bottom-1][ccoke:gdwh]");
window.Ya.adfoxCode.createAdaptive(
ownerId: 277740,
containerId: 'adfox_15529162344898501',
params:
p1: 'ccoke',
p2: 'gdwh'
, ['phone'],
tabletWidth: 1300,
phoneWidth: 969,
isAutoReloads: false
);
function callAdblock(zoneid,width,height)
var el = document.getElementById('crt-'+zoneid);
el.style.width=width+"px";el.style.height=height+"px";
Criteo.events.push(function()Criteo.DisplayAcceptableAdIfAdblocked('zoneid': zoneid, 'containerid': 'crt-'+zoneid, 'overrideZoneFloor': false););
window.addEventListener("message", function (e)
if(e.origin == (location.protocol=='https:'?'https://':'http://') + 'cas.criteo.com' && e.data == zoneid) document.getElementById('crt-'+zoneid).style.display = "none";
else return;
, false);
if (jQuery.browser.mobile)
callAdblock(1107969,300,250);
else
callAdblock(1107970,970,250);
<!--
function show_ntv_ads2(wrapper, bl) bl == 2) bheight = 90;
if(bl == 1
function show_ntv_ads(wrapper, bl)
if (window.nads_page_random === undefined) window.nads_page_random = Math.floor(Math.random() * 1000000); ;
var dl = escape(document.location);
var ads_random = Math.floor(Math.random() * 1000000);
var ban_callback = null;
if(bl == 1)
//ban_callback = menuTopScroll;
else if(bl == 3 && typeof b240_callback !== 'undefined')
ban_callback = b240_callback;
$(wrapper).append('');
var banUrl = 'https://stat2.ntv.ru/ads/getBanner.jsp?bl='+bl+'&pr=' + window.nads_page_random +'&ar='+ads_random+'&dl='+dl+"&ts="+(new Date().getTime());
NtvAds_loadBanner(banUrl,ban_callback);
StatBanner('ntv', bl);
if (bl == 1)
var bh = $('#nads_banner_loc_'+ads_random).height();
var offset = $("#topline").offset().top;
$('#newplayer').css('top',(bh+offset)+'px');
function btw_noads(el)
var ban_location = $(el).attr("ntv-loc");
var wrapperElement = el.parentNode;
try wrapperElement.removeChild(el); catch(e)
var bl = parseInt(ban_location);
if(bl > 0) show_ntv_ads(wrapperElement, bl);
StatBanner('nobtw', bl);
function mailru_noAds(resp)
// no mailru ads
var ban_location = $(resp.el).attr("ntv-loc");
var wrapperElement = resp.el.parentNode;
// remove elements
try wrapperElement.removeChild(resp.el); catch(e)
// show next ads
var bl = parseInt(ban_location);
if(bl > 0)
StatBanner('noAds', bl);
if(bl == 3)
var mailru_ad_param = $(resp.el).attr("data-ad-query");
var puid19=1;
var puid19Idx = mailru_ad_param.indexOf("puid19=");
if(puid19Idx > 0)
puid19 = parseInt(mailru_ad_param.substring(puid19Idx + 7,puid19Idx + 8));
//window.itu = 389584: 'http://r.mail.ru/r/4166?btype=show&gpmddealid=22065003&puid1=64&puid2=1&puid19='+puid19+'&rnd='+Math.floor(Math.random() * 1000000);
window.itu = 389584: 'http://r.mail.ru/r/4166?btype=show&gpmddealid=23479799&puid1=64&puid2=1&puid19='+puid19+'&rnd='+Math.floor(Math.random() * 1000000);
$(wrapperElement).append('
');
StatBanner('btw', bl);
else
show_ntv_ads(wrapperElement, bl);
function mailru_ads(data, el)
if(data && data.length > 0)
var ban_location = $(el).attr("ntv-loc");
var bl = parseInt(ban_location);
if(bl == 3 && typeof b240_callback !== 'undefined')
try window[b240_callback](); catch(e)
StatBanner('all', bl);
(MRGtag = window.MRGtag || []).push(
onNoAds:function(resp) mailru_noAds(resp); ,
onAdsLoaded: function(data, el) mailru_ads(data, el); , iframeMode: false
);
function StatBanner(type, place)
if (type == 'all') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banners_showed" );
if (type == 'noAds')
if (type == 'noAds' && place == '1') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_error_top" );
try
reachGoal('banner_error_top');
catch (e)
if (type == 'noAds' && place == '2')
if (type == 'noAds' && place == '3')
if (type == 'noAds' && place == '4') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_error_type4" );
try
yaCounter7414054.reachGoal('banner_error_type4');
catch (e)
if (type == 'ntv')
var _tmr = window._tmr
if (type == 'btw')
var _tmr = window._tmr
if (type == 'nobtw')
if (type == 'all' && place == '1') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_top" );
try
yaCounter7414054.reachGoal('banner_show_top');
catch (e)
if (type == 'all' && place == '2') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_btm" );
try
yaCounter7414054.reachGoal('banner_show_btm');
catch (e)
if (type == 'all' && place == '3') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_type3" );
try
yaCounter7414054.reachGoal('banner_show_type3');
catch (e)
if (type == 'all' && place == '4') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_type4" );
try
yaCounter7414054.reachGoal('banner_show_type4');
catch (e)
if (type == 'ntv' && place == '1')
if (type == 'ntv' && place == '2') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_btm_ntv" );
if (type == 'ntv' && place == '3') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_type3_ntv" );
if (type == 'ntv' && place == '4')
$(function() !o.canPlayType );
// -->
(function(w,d,s,l,i)w[l]=w[l])(window,document,'script','dataLayer','GTM-MCPFRG');
//

$(function ()
$.getScript('https://an.yandex.ru/system/context.js');
);
StatBanner('btw', bl);
else
show_ntv_ads(wrapperElement, bl);
function mailru_ads(data, el)
if(data && data.length > 0)
var ban_location = $(el).attr("ntv-loc");
var bl = parseInt(ban_location);
if(bl == 3 && typeof b240_callback !== 'undefined')
try window[b240_callback](); catch(e)
StatBanner('all', bl);
(MRGtag = window.MRGtag || []).push(
onNoAds:function(resp) mailru_noAds(resp); ,
onAdsLoaded: function(data, el) mailru_ads(data, el); , iframeMode: false
);
function StatBanner(type, place)
if (type == 'all') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banners_showed" );
if (type == 'noAds')
if (type == 'noAds' && place == '1') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_error_top" );
try
reachGoal('banner_error_top');
catch (e)
if (type == 'noAds' && place == '2')
if (type == 'noAds' && place == '3')
if (type == 'noAds' && place == '4') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_error_type4" );
try
yaCounter7414054.reachGoal('banner_error_type4');
catch (e)
if (type == 'ntv')
var _tmr = window._tmr
if (type == 'btw')
var _tmr = window._tmr
if (type == 'nobtw')
if (type == 'all' && place == '1') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_top" );
try
yaCounter7414054.reachGoal('banner_show_top');
catch (e)
if (type == 'all' && place == '2') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_btm" );
try
yaCounter7414054.reachGoal('banner_show_btm');
catch (e)
if (type == 'all' && place == '3') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_type3" );
try
yaCounter7414054.reachGoal('banner_show_type3');
catch (e)
if (type == 'all' && place == '4') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_type4" );
try
yaCounter7414054.reachGoal('banner_show_type4');
catch (e)
if (type == 'ntv' && place == '1')
if (type == 'ntv' && place == '2') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_btm_ntv" );
if (type == 'ntv' && place == '3') (window._tmr = []);
_tmr.push( id: "916045", type: "reachGoal", goal: "banner_show_type3_ntv" );
if (type == 'ntv' && place == '4')
$(function() !o.canPlayType );
// -->
(function(w,d,s,l,i)w[l]=w[l])(window,document,'script','dataLayer','GTM-MCPFRG');
//
$(function ()
$.getScript('https://an.yandex.ru/system/context.js');
);