ΠΟΛΙΤΙΚΗ

ΚΟΙΝΩΝΙΑ

ΕΥΡΩΠΗ - ΚΟΣΜΟΣ

ΟΙΚΟΝΟΜΙΑ

ΚΟΙΝΩΝΙΑ

ΥΠΟΥΡΓΕΙΟ ΕΞΩ(ΦΡΕΝ)ΙΚΩΝ

ΔΗΜΟΤΙΚΑ

ΕΚΚΛΗΣΙΑΣΤΙΚΑ

ΠΟΛΙΤΙΣΜΟΣ

MEDIA - ΤΥΠΟΛΟΓΙΕΣ

BIBΛIO

MUSIC-CINE NEWS

ΑΘΛΗΤΙΚΑ

ΥΓΕΙΑ

'); } // [Ads] Homepage Responsive 2 if (targetForHomeResp2) { targetForHomeResp2.insertAdjacentHTML('afterend', '
'); } // [Ads] Homepage Responsive 3 if (targetForHomeResp3) { targetForHomeResp3.insertAdjacentHTML('afterend', '
'); } // [Ads] Listing 1 if (targetForListing1) { targetForListing1.insertAdjacentHTML('afterend', '
'); } // [Ads] Listing 2 if (targetForListing2) { targetForListing2.insertAdjacentHTML('afterend', '
'); } /* --- PerfOps by Nuevvo (nuevvo.com) --- */ // View Detection window.isFrontpage = document.querySelector('body.home'); window.isArchive = document.querySelector('body.archive'); window.isPost = document.querySelector('body.single-post'); // Mobile Detection window.isMobile = (function () { var ua = navigator.userAgent || navigator.vendor || window.opera; return ((/Android/i).test(ua) && (/Mobile/i).test(ua)) || (/BlackBerry|iPhone|iPod|Opera Mini|IEMobile/i).test(ua); })(); // Script Loading window.hashString = function (str) { let hash = 0n; for (let i = 0; i { asyncLoadScript(url); }, 0); hasScrolled = true; if (autoTrigger) { clearTimeout(autoTrigger); } }; document.addEventListener("scroll", window[eventWrapperID]); //if (!window.isMobile) { autoTrigger = setTimeout(() => { if (!hasScrolled) { document.removeEventListener("scroll", window[eventWrapperID]); asyncLoadScript(url); } }, 1000); //} }; window.loadJsOnDemand = function (callback) { var eventWrapperID = 'ew_' + window.hashString(callback.name); window[eventWrapperID] = function () { document.removeEventListener("scroll", window[eventWrapperID]); console.info('[PRN - Notice] Event Wrapper triggered with ID ' + eventWrapperID + ' for ' + callback.name + '()'); setTimeout(() => { callback(); }, 0); }; document.addEventListener("scroll", window[eventWrapperID]); }; // Page refresh every 5 mins if (window.isFrontpage) { const PRN_PageRefresh = setTimeout(() => { window.location.href = window.location.href; }, 300 * 1000); } // Open external links to a new tab/window function openExternalLinksInNewTab(domain) { document.querySelectorAll("a[href]").forEach((link) => { const href = link.getAttribute("href"); if (!href || href.indexOf("#") === 0) return; if (href.indexOf("http") === 0 && href.indexOf(domain) === -1) { link.setAttribute("target", "_blank"); } }); } openExternalLinksInNewTab("www.paron.gr"); // For Google Ad Manager var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push(function () { //googletag.pubads().disableInitialLoad(); }); window.displaySlot = function (id) { if (document.querySelector('#' + id)) { googletag.display(id); } }; // TCF-compliant check function waitForTCF(callback, maxAttempts = 15) { let attempts = 0; const check = () => { if (typeof window.__tcfapi === 'function') { callback(); } else if (attempts { // InMobi Choice. Consent Manager Tag v3.0 (for TCF 2.2) [Jun 2025] var inMobiID = 'tZ5VnNSZ_U96U'; var host = 'paron' + '.gr'; loadScriptOnDemand('https://cmp.inmobi.com/choice/' + inMobiID + '/' + host + '/choice.js?tag_version=V3'); var uspTries = 0;var uspTriesLimit = 3;function makeStub() {var TCF_LOCATOR_NAME = "__tcfapiLocator";var queue = [];var win = window;var cmpFrame;function addFrame() {var doc = win.document;var otherCMP = !!win.frames[TCF_LOCATOR_NAME];if (!otherCMP) {if (doc.body) {var iframe = doc.createElement("iframe");iframe.style.cssText = "display:none";iframe.name = TCF_LOCATOR_NAME;doc.body.appendChild(iframe);} else {setTimeout(addFrame, 5);}}return !otherCMP;}function tcfAPIHandler() {var gdprApplies;var args = arguments;if (!args.length) {return queue;} else if (args[0] === "setGdprApplies") {if (args.length > 3 &&args[2] === 2 &&typeof args[3] === "boolean") {gdprApplies = args[3];if (typeof args[2] === "function") {args[2]("set", true);}}} else if (args[0] === "ping") {var retr = {gdprApplies: gdprApplies,cmpLoaded: false,cmpStatus: "stub",};if (typeof args[2] === "function") {args[2](retr);}} else {if (args[0] === "init" && typeof args[3] === "object") {args[3] = Object.assign(args[3], { tag_version: "V3" });}queue.push(args);}}function postMessageEventHandler(event) {var msgIsString = typeof event.data === "string";var json = {};try {if (msgIsString) {json = JSON.parse(event.data);} else {json = event.data;}} catch (ignore) { }var payload = json.__tcfapiCall;if (payload) {window.__tcfapi(payload.command,payload.version,function (retValue, success) {var returnMsg = {__tcfapiReturn: {returnValue: retValue,success: success,callId: payload.callId,},};if (msgIsString) {returnMsg = JSON.stringify(returnMsg);}if (event && event.source && event.source.postMessage) {event.source.postMessage(returnMsg, "*");}},payload.parameter);}}while (win) {try {if (win.frames[TCF_LOCATOR_NAME]) {cmpFrame = win;break;}} catch (ignore) { }if (win === window.top) {break;}win = win.parent;}if (!cmpFrame) {addFrame();win.__tcfapi = tcfAPIHandler;win.addEventListener("message", postMessageEventHandler, false);}}makeStub();function makeGppStub() {const CMP_ID = 10;const SUPPORTED_APIS = ["2:tcfeuv2","6:uspv1","7:usnatv1","8:usca","9:usvav1","10:uscov1","11:usutv1","12:usctv1",];window.__gpp_addFrame = function (n) {if (!window.frames[n]) {if (document.body) {var i = document.createElement("iframe");i.style.cssText = "display:none";i.name = n;document.body.appendChild(i);} else {window.setTimeout(window.__gpp_addFrame, 10, n);}}};window.__gpp_stub = function () {var b = arguments;__gpp.queue = __gpp.queue || [];__gpp.events = __gpp.events || [];if (!b.length || (b.length == 1 && b[0] == "queue")) {return __gpp.queue;}if (b.length == 1 && b[0] == "events") {return __gpp.events;}var cmd = b[0];var clb = b.length > 1 ? b[1] : null;var par = b.length > 2 ? b[2] : null;if (cmd === "ping") {clb({gppVersion: "1.1",cmpStatus: "stub",cmpDisplayStatus: "hidden",signalStatus: "not ready",supportedAPIs: SUPPORTED_APIS,cmpId: CMP_ID,sectionList: [],applicableSections: [-1],gppString: "",parsedSections: {},},true);} else if (cmd === "addEventListener") {if (!("lastId" in __gpp)) {__gpp.lastId = 0;}__gpp.lastId++;var lnr = __gpp.lastId;__gpp.events.push({id: lnr,callback: clb,parameter: par,});clb({eventName: "listenerRegistered",listenerId: lnr,data: true,pingData: {gppVersion: "1.1",cmpStatus: "stub",cmpDisplayStatus: "hidden",signalStatus: "not ready",supportedAPIs: SUPPORTED_APIS,cmpId: CMP_ID,sectionList: [],applicableSections: [-1],gppString: "",parsedSections: {},},},true);} else if (cmd === "removeEventListener") {var success = false;for (var i = 0; i { window.__tcfapi('addEventListener', 2, function (tcData, success) { if (success && ['tcloaded', 'useractioncomplete'].includes(tcData.eventStatus)) { initializeGPT(); setTimeout(() => { console.info('[PRN - Notice] CMP loaded...'); consentLoaded(); }, 200); } }); }); }, 100); // Google Analytics setTimeout(() => { asyncLoadScript('https://www.googletagmanager.com/gtag/js?id=UA-970810-6'); window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'UA-970810-6'); }, 200); function consentLoaded() { console.info('[PRN - Notice] Loading ads and extras...'); // Google Ad Manager (DFP) loadScriptOnDemand('https://securepubads.g.doubleclick.net/tag/js/gpt.js'); } function loadLast() { console.info('[PRN - Notice] Loading secondary analytics or utilities...'); // Yandex.Metrika setTimeout(() => { (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(); for (var j = 0; j { loadJsOnDemand(loadLast); }, 1000); // For Google Ad Manager function initializeGPT() { googletag.cmd.push(function () { // --- Size mappings (initial setup) --- var mapping1 = googletag.sizeMapping() .addSize([0, 0], []) .addSize([750, 0], [[728, 90]]) .addSize([1024, 0], [[970, 90], [970, 250], [728, 90]]) .build(); var mapping2 = googletag.sizeMapping() .addSize([0, 0], []) .addSize([1130, 0], [[300, 250], [300, 600]]) .build(); var mapping3 = googletag.sizeMapping() .addSize([0, 0], [[300, 250], [300, 600]]) .addSize([1130, 0], [[300, 250]]) .build(); var mapping4 = googletag.sizeMapping() .addSize([0, 0], [[300, 250], [300, 600]]) .addSize([1130, 0], [[300, 250], [600, 250]]) .build(); var mapping5 = googletag.sizeMapping() .addSize([0, 0], []) .addSize([1480, 0], [[1, 1]]) .build(); var inreadMapping = googletag.sizeMapping() .addSize([0, 0], [[1, 1], [310, 180], [300, 250], [300, 600]]) .addSize([1280, 0], [[560, 320], [300, 250], [1, 1]]) .build(); // --- Initialize Ad Units --- // Frontpage if (window.isFrontpage) { googletag.defineSlot('/1016513/ToParon/homepage_rectangle_1', [[300,250],[300,600]], 'homepage_rectangle_1').defineSizeMapping(mapping2).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/homepage_rectangle_2', [[300,250],[300,600]], 'homepage_rectangle_2').defineSizeMapping(mapping2).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/homepage_responsive_1', [[300,250],[300,600],[728,90]], 'homepage_responsive_1').defineSizeMapping(mapping4).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/homepage_responsive_2', [[300,250],[300,600]], 'homepage_responsive_2').defineSizeMapping(mapping4).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/homepage_responsive_3', [[300,250],[300,600],[728,90]], 'homepage_responsive_3').defineSizeMapping(mapping4).addService(googletag.pubads()); console.info('[PRN - Notice] Triggered frontpage ads...'); } // Archive if (window.isArchive) { googletag.defineSlot('/1016513/ToParon/listing_1', [[300,250],[300,600],[728,90]], 'listing_1').defineSizeMapping(mapping4).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/listing_2', [[300,250],[300,600],[728,90]], 'listing_2').defineSizeMapping(mapping4).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/sidebar_1', [[300,250],[300,600]], 'sidebar_1').defineSizeMapping(mapping2).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/sidebar_2', [[300,250],[300,600]], 'sidebar_2').defineSizeMapping(mapping2).addService(googletag.pubads()); console.info('[PRN - Notice] Triggered archive/list ads...'); } // Post if (window.isPost) { googletag.defineSlot('/1016513/ToParon/inread_video', [[560,320],[310,180],[300,250],[300,600],[1,1]], 'inread_video').defineSizeMapping(inreadMapping).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/inline_1', [[300,250],[300,600]], 'inline_1').defineSizeMapping(mapping3).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/inline_2', [[300,250],[300,600]], 'inline_2').defineSizeMapping(mapping3).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/inline_3', [[300,250],[300,600]], 'inline_3').defineSizeMapping(mapping3).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/inline_4', [[300,250],[300,600]], 'inline_4').defineSizeMapping(mapping3).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/inline_5', [[300,250],[300,600]], 'inline_5').defineSizeMapping(mapping3).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/sidebar_1', [[300,250],[300,600]], 'sidebar_1').defineSizeMapping(mapping2).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/sidebar_2', [[300,250],[300,600]], 'sidebar_2').defineSizeMapping(mapping2).addService(googletag.pubads()); console.info('[PRN - Notice] Triggered post ads...'); } // Common googletag.defineSlot('/1016513/ToParon/headbanner', [[970,90],[970,250],[728,90]], 'headbanner').defineSizeMapping(mapping1).addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/prestitial', [[1,1]], 'prestitial').addService(googletag.pubads()); googletag.defineSlot('/1016513/ToParon/skin', [[1,1]], 'skin').defineSizeMapping(mapping4).addService(googletag.pubads()); // Targeting googletag.pubads().setTargeting('Rootcategory', window.postDetails.rootCategory); googletag.pubads().setTargeting('Category', window.postDetails.category); googletag.pubads().setTargeting('Article', window.postDetails.article); // --- Bootstrap --- //googletag.pubads().collapseEmptyDivs(); //googletag.pubads().disableInitialLoad(); googletag.pubads().enableSingleRequest(); googletag.pubads().setCentering(true); /* googletag.pubads().enableLazyLoad({ fetchMarginPercent: 800, renderMarginPercent: 400, mobileScaling: 1, }); */ googletag.enableServices(); // --- Display Ad Units --- // Common displaySlot('headbanner'); // Homepage if (window.isFrontpage) { displaySlot('homepage_rectangle_1'); displaySlot('homepage_rectangle_2'); displaySlot('homepage_responsive_1'); displaySlot('homepage_responsive_2'); displaySlot('homepage_responsive_3'); } // Archive if (window.isArchive) { displaySlot('listing_1'); displaySlot('listing_2'); displaySlot('sidebar_1'); displaySlot('sidebar_2'); } // Post if (window.isPost) { displaySlot('inread_video'); displaySlot('inline_1'); displaySlot('inline_2'); displaySlot('inline_3'); displaySlot('inline_4'); displaySlot('inline_5'); displaySlot('sidebar_1'); displaySlot('sidebar_2'); } // Common displaySlot('skin'); displaySlot('prestitial'); }); }