p").length;
var nBRs = document.querySelectorAll(".itemFullText > br").length;
console.log('%c Item:::: paragraphs = ' + nParagraphs + ', br = ' + nBRs, conAdColor);
//resWidth = jQuery(window).width();
resWidth = document.documentElement.clientWidth;
var strEl = '';
if (nBRs > 0 ) { strEl = '.itemFullText > br'; }
if (nParagraphs > 0) { strEl = '.itemFullText > p'; }
if (document.querySelector(".itemFullText--premium")) {
document.querySelector(".itemFullText--premium").insertAdjacentHTML("afterbegin", `
`);
if (document.querySelector(".itemFullText--premium .excerpt")) {
document.querySelector(".itemFullText--premium .excerpt p:nth-of-type(2)").insertAdjacentHTML(`afterbegin`, `
`);
}
}
/*
if (jQuery(".itemFullText--premium").length != 0) {
if (strAdPos == "position_item_center_01") {
adPositionFound = true;
jQuery(".itemFullText--premium").prepend(jQuery(adDiv));
}
*/
/*
if (strAdPos == "position_item_center_06") {
alert("pos 6");
adPositionFound = true;
jQuery(".itemFullText--premium").prepend(jQuery(adDiv));
}
*/
//}
if (strEl != '') {
if (nParagraphs >= 1) {
document.querySelector( strEl + `:nth-of-type(1)` ).insertAdjacentHTML(`afterbegin`, `
`);
}
if (nParagraphs >= 5) {
document.querySelector( strEl + `:nth-of-type(4)` ).insertAdjacentHTML(`afterbegin`, `
`);
}
if (nParagraphs >= 8) {
document.querySelector( strEl + `:nth-of-type(7)` ).insertAdjacentHTML(`afterbegin`, `
`);
}
if (nParagraphs >= 11) {
document.querySelector( strEl + `:nth-of-type(10)` ).insertAdjacentHTML(`afterbegin`, `
`);
}
if (nParagraphs >= 16) {
document.querySelector( strEl + `:nth-of-type(15)` ).insertAdjacentHTML(`afterbegin`, `
`);
}
if (nParagraphs >= 21) {
document.querySelector( strEl + `:nth-of-type(20)` ).insertAdjacentHTML(`afterbegin`, `
`);
}
}
}
}
}
console.log('----------- insertAdsPlaceholder()');
insertAdsPlaceholder();
Za sudjelovanje u komentarima je potrebna prijava, odnosno registracija ako još nemaš korisnički profil....