Blog

TEST BLOK 1
(function waitForArticles(){ // spusť až po načtení článků const articles = document.querySelectorAll(\'article\'); if(articles.length === 0){ return setTimeout(waitForArticles, 500); } // funguje jen na mobilech if(window.innerWidth > 768) return; // Reklama po 1. článku if(articles.length > 1){ const ad1 = document.createElement(\'div\'); ad1.innerHTML = `
`; articles[0].insertAdjacentElement(\'afterend\', ad1); } // Reklama po každém 4. článku articles.forEach((article, index)=>{ if((index + 1) % 4 === 0){ const ad2 = document.createElement(\'div\'); ad2.innerHTML = `
`; article.insertAdjacentElement(\'afterend\', ad2); } }); // znovunačtení Seznam Ads SDK (pokud je potřeba) if(window.szn && window.szn.ssp && typeof window.szn.ssp.register === \"function\"){ window.szn.ssp.register(); } })();
(function waitForArticles(){ // spusť až po načtení článků const articles = document.querySelectorAll(\'article\'); if(articles.length === 0){ return setTimeout(waitForArticles, 500); } // funguje jen na mobilech if(window.innerWidth > 768) return; // Reklama po 1. článku if(articles.length > 1){ const ad1 = document.createElement(\'div\'); ad1.innerHTML = `
`; articles[0].insertAdjacentElement(\'afterend\', ad1); } // Reklama po každém 4. článku articles.forEach((article, index)=>{ if((index + 1) % 4 === 0){ const ad2 = document.createElement(\'div\'); ad2.innerHTML = `
`; article.insertAdjacentElement(\'afterend\', ad2); } }); // znovunačtení Seznam Ads SDK (pokud je potřeba) if(window.szn && window.szn.ssp && typeof window.szn.ssp.register === \"function\"){ window.szn.ssp.register(); } })();
(function waitForArticles(){ // spusť až po načtení článků const articles = document.querySelectorAll(\'article\'); if(articles.length === 0){ return setTimeout(waitForArticles, 500); } // funguje jen na mobilech if(window.innerWidth > 768) return; // Reklama po 1. článku if(articles.length > 1){ const ad1 = document.createElement(\'div\'); ad1.innerHTML = `
`; articles[0].insertAdjacentElement(\'afterend\', ad1); } // Reklama po každém 4. článku articles.forEach((article, index)=>{ if((index + 1) % 4 === 0){ const ad2 = document.createElement(\'div\'); ad2.innerHTML = `
`; article.insertAdjacentElement(\'afterend\', ad2); } }); // znovunačtení Seznam Ads SDK (pokud je potřeba) if(window.szn && window.szn.ssp && typeof window.szn.ssp.register === \"function\"){ window.szn.ssp.register(); } })();