Назначен новый начальник умвд по вологодской области
Новости партнеров
«);
div.attr(«id», newId);
elToInsert.after(div);
window.Ya.adfoxCode.create({
ownerId: 216729,
containerId: newId,
params: {
pp: ‘g’,
ps: ‘bmgo’,
p2: ‘gzso’
}
});
/*
window.Ya.adfoxCode.create({
ownerId: 216729,
containerId: newId,
params: {
pp: ‘g’,
ps: ‘bmgo’,
p2: ‘fhjm’,
slide: true,
visibleAfterInit: false,
insertAfter: ‘undefined’,
insertPosition: ‘0’,
stick: false,
stickTo: ‘auto’,
stickColorScheme: ‘light’
}
});
if (typeof(pr) == ‘undefined’) { var pr = Math.floor(Math.random() * 4294967295) + 1; }
(function(w, d, n, s, t) {
w = w || [];
w.push(function() {
Ya.Context.AdvManager.render({
blockId: «VI-154084-0»,
renderTo: newId,
inpage: {
slide: true,
visibleAfterInit: false,
adFoxUrl: «//ads.adfox.ru/216729/getCode?pp=g&ps=bmgo&p2=fhjm&pfc=a&pfb=a&plp=a&pli=a&pop=a&fmt=1&pr=»+pr
},
}, function callback (params) {
// callback
});
});
t = d.getElementsByTagName(«script»);
s = d.createElement(«script»);
s.type = «text/javascript»;
s.src = «//an.yandex.ru/system/context.js»;
s.async = true;
t.parentNode.insertBefore(s, t);
})(window, window.document, «yandexContextAsyncCallbacks»);
*/
}
};
var addVideonowScript = function (newsContainerId) {
var newsContainer, obj;
if (newsContainerId) {
newsContainer = $(«#»+newsContainerId).find(‘.news-content’);
obj = $(«#»+newsContainerId).find(«.text__annotation»);
}
else {
newsContainer = $(«.newsContent»).last().find(‘.news-content’);
obj = $(«.text__annotation»).last();
}
var findElToInsert = function() {
var newsHeight = newsContainer.outerHeight();
var wndHeight = $(window).height();
if (newsHeight = minHeight && currentTag == ‘p’) {
//if (currentHeight >= minHeight && currentTag == ‘p’ && lastTag == ‘p’) {
objToInsert = $(this);
}
lastTag = currentTag;
});
if (objToInsert)
return objToInsert;
return obj;
};
var elToInsert = findElToInsert();
if (elToInsert.length) {
var newId = ‘videonow_’ + Math.floor(Math.random() * 1000000);
var div = $(«»);
div.attr(«id», newId);
elToInsert.after(div);
var s = $(»;
var html = ‘
‘+rec+»+adHtml+»;
objRec.html(html);
obj.append(objRec);
}
underNewsEl.append(obj);
$(«#»+objId).find(«a»).click(function(){
var rec_id = $(this).attr(«rec_id»);
var s = document.createElement( ‘img’ );
s.setAttribute( ‘src’, ‘https://relap.io/api/v2/pixel.gif?rid=’+rec_id );
document.body.appendChild( s );
});
}
};
var getYaCounter = function() {
if (typeof yaCounter23684320 == ‘undefined’)
return false;
return yaCounter23684320;
};
var makeYandexAction = function(el) {
var cntr = getYaCounter();
if (!cntr) {
console.log(‘wait yaCounter’);
setTimeout(function(){ makeYandexAction(el); }, 500);
return false;
}
var attrs = {};
attrs = $(el).attr(«data-section»);
attrs = $(el).attr(«data-author»);
attrs = $(el).attr(«data-title»);
attrs = $(el).attr(«data-url»);
mark = ‘newsView’;
var content = attrs;
var params = {};
params = {};
params] = {};
params]] = {};
params]]] = attrs;
cntr.reachGoal(mark, params);
console.log(params);
};
var makeYandexPageHit = function() {
var cntr = getYaCounter();
if (!cntr) {
console.log(‘wait yaCounter’);
setTimeout(function(){ makeYandexPageHit(); }, 500);
return false;
}
cntr.hit(url, {‘title’: document.title});
};
Новости партнеров
«);
div.attr(«id», newId);
elToInsert.after(div);
window.Ya.adfoxCode.create({
ownerId: 216729,
containerId: newId,
params: {
pp: ‘g’,
ps: ‘bmgo’,
p2: ‘gzso’
}
});
/*
window.Ya.adfoxCode.create({
ownerId: 216729,
containerId: newId,
params: {
pp: ‘g’,
ps: ‘bmgo’,
p2: ‘fhjm’,
slide: true,
visibleAfterInit: false,
insertAfter: ‘undefined’,
insertPosition: ‘0’,
stick: false,
stickTo: ‘auto’,
stickColorScheme: ‘light’
}
});
if (typeof(pr) == ‘undefined’) { var pr = Math.floor(Math.random() * 4294967295) + 1; }
(function(w, d, n, s, t) {
w = w || [];
w.push(function() {
Ya.Context.AdvManager.render({
blockId: «VI-154084-0»,
renderTo: newId,
inpage: {
slide: true,
visibleAfterInit: false,
adFoxUrl: «//ads.adfox.ru/216729/getCode?pp=g&ps=bmgo&p2=fhjm&pfc=a&pfb=a&plp=a&pli=a&pop=a&fmt=1&pr=»+pr
},
}, function callback (params) {
// callback
});
});
t = d.getElementsByTagName(«script»);
s = d.createElement(«script»);
s.type = «text/javascript»;
s.src = «//an.yandex.ru/system/context.js»;
s.async = true;
t.parentNode.insertBefore(s, t);
})(window, window.document, «yandexContextAsyncCallbacks»);
*/
}
};
var addVideonowScript = function (newsContainerId) {
var newsContainer, obj;
if (newsContainerId) {
newsContainer = $(«#»+newsContainerId).find(‘.news-content’);
obj = $(«#»+newsContainerId).find(«.text__annotation»);
}
else {
newsContainer = $(«.newsContent»).last().find(‘.news-content’);
obj = $(«.text__annotation»).last();
}
var findElToInsert = function() {
var newsHeight = newsContainer.outerHeight();
var wndHeight = $(window).height();
if (newsHeight = minHeight && currentTag == ‘p’) {
//if (currentHeight >= minHeight && currentTag == ‘p’ && lastTag == ‘p’) {
objToInsert = $(this);
}
lastTag = currentTag;
});
if (objToInsert)
return objToInsert;
return obj;
};
var elToInsert = findElToInsert();
if (elToInsert.length) {
var newId = ‘videonow_’ + Math.floor(Math.random() * 1000000);
var div = $(«»);
div.attr(«id», newId);
elToInsert.after(div);
var s = $(»;
var html = ‘
‘+rec+»+adHtml+»;
objRec.html(html);
obj.append(objRec);
}
underNewsEl.append(obj);
$(«#»+objId).find(«a»).click(function(){
var rec_id = $(this).attr(«rec_id»);
var s = document.createElement( ‘img’ );
s.setAttribute( ‘src’, ‘https://relap.io/api/v2/pixel.gif?rid=’+rec_id );
document.body.appendChild( s );
});
}
};
var getYaCounter = function() {
if (typeof yaCounter23684320 == ‘undefined’)
return false;
return yaCounter23684320;
};
var makeYandexAction = function(el) {
var cntr = getYaCounter();
if (!cntr) {
console.log(‘wait yaCounter’);
setTimeout(function(){ makeYandexAction(el); }, 500);
return false;
}
var attrs = {};
attrs = $(el).attr(«data-section»);
attrs = $(el).attr(«data-author»);
attrs = $(el).attr(«data-title»);
attrs = $(el).attr(«data-url»);
mark = ‘newsView’;
var content = attrs;
var params = {};
params = {};
params] = {};
params]] = {};
params]]] = attrs;
cntr.reachGoal(mark, params);
console.log(params);
};
var makeYandexPageHit = function() {
var cntr = getYaCounter();
if (!cntr) {
console.log(‘wait yaCounter’);
setTimeout(function(){ makeYandexPageHit(); }, 500);
return false;
}
cntr.hit(url, {‘title’: document.title});
};