window.optiload = window.optiload || {}; optiload.cmd = optiload.cmd || []; window.googletag = window.googletag || {}; googletag.cmd = googletag.cmd || []; window.evopbjs = window.evopbjs || {}; evopbjs.que = evopbjs.que || []; googletag.cmd.push(function() { googletag.pubads().enableSingleRequest(); googletag.pubads().disableInitialLoad(); googletag.pubads().collapseEmptyDivs(true, true); //googletag.pubads().setTargeting("advelvet",(Math.floor(Math.random() * 20) + 1) + ""); googletag.enableServices(); }); (function() { var s = document.createElement("script"); s.async = true; s.type = "text/javascript"; s.src = "https://assets.evolutionadv.it/optiload/4.x.x/optiload.min.js"; var node = document.getElementsByTagName("script")[0]; //@ts-ignore node.parentNode.insertBefore(s, node); })(); //CONFIG optiload.cmd.push(function() { optiload.config.domain = "orizzontescuola.it"; optiload.config.nuggad_nuggn= 428847970; optiload.config.nuggad_nuggsid= 1835075721; optiload.config.cmp_type = 'quantcast'; optiload.config.cmp_accept_on_scroll = false; //optiload.config.cmp_css = "auto"; optiload.config.amazon_bid = true; optiload.config.sellerid= 249; optiload.config.weborama=true; optiload.fn.utils.loadJs('https://assets.evolutionadv.it/_pps/'+ 'orizzontescuola_it' + '.pps.js'); }); //CONFIG CONTENT REVOLUTION var contentRevolutionConfig = { evoFirstArticle: 'article.entry', evoUAPublisher: 'UA-12033502-1', evoUAPublisherGA4: 'G-42CMH5W039', optiscrollAdunitId: 17, cssUrl: 'https://assets.evolutionadv.it/orizzontescuola_it/optiscroll.css', siteCod: 'orizzontescuola.it', //launchManually: !(window.location.href.indexOf('contentrevolution') > -1), // feedIdAlternative : null, // feedVariable : null, atfAdunitId: 16, atfSelector : '.evostep>.evo-articolo-spons-text p:nth-of-type(1)', insertIntext: true, //intextFinal : false, insertIntoPromo: false, intextAdunitId : 16, refreshSidebarSticky: false, //sidebarStickyAdunitId: 5, refreshFloorad: true, refreshSkin: false, }; function startContentRevolution() { //############## CONTENT REVOLUTION ########## //load content revolution conditions (only starts on posts page, varibles for feeds...) if (window.top.optiload.$('body', document.top).hasClass('single-post')) { //add box optiscroll if the conditions are different from standard below here! //window.top.optiload.$(contentRevolutionConfig.evoFirstArticle, document.top).first().after('
'); //add div block in case content revolution doesn't append correctly //window.top.optiload.$('.classedaappendere').after(''); //add twitter // var sTwitter = document.createElement("script"); // sTwitter.type = "text/javascript"; // sTwitter.src = "https://platform.twitter.com/widgets.js"; // var node = document.getElementsByTagName("script")[0]; // //@ts-ignore // node.parentNode.insertBefore(sTwitter, node); // //add instagram // var sInsta = document.createElement("script"); // sInsta.type = "text/javascript"; // sInsta.src = "https://www.instagram.com/embed.js"; // var node = document.getElementsByTagName("script")[0]; // //@ts-ignore // node.parentNode.insertBefore(sInsta, node); //content revolution start var s = document.createElement('script'); s.type = 'text/javascript'; s.src = 'https://assets.evolutionadv.it/content-revolution.js'; var node = document.getElementsByTagName('script')[0]; //@ts-ignore node.parentNode.insertBefore(s, node); } //############## CONTENT REVOLUTION ########## } //UNITS optiload.cmd.push(function() { var adUnits = []; adUnits[0] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_BTF', sizes: [[300, 250], [336, 280], 'fluid'], lazy: true, mappings: { desktop: [[300, 250], [336, 280], 'fluid'], mobile: [[300, 250], [336, 280], 'fluid'] }, hb: { sizes: [[300, 250], [336, 280]], bids: [{ bidder: 'adform', params: { mid: '543448' } }, { bidder: 'appnexusAst', params: { placementId: '12953361' } }, { bidder: 'ix', params: { siteId: '358064', size: [300, 250] } }, { bidder: 'openx', params: { unit: '539864146', delDomain: 'evolution-d.openx.net' } }, // { // bidder: 'pubmatic', // params: { publisherId: '156394', adSlot: 'OrizzonteScuola_BTF@300x250'} // }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "179998", zoneId: "877136", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 41771, networkId: 1933 } }, { bidder: 'pubmatic_apex', params: { publisherId: '161546', adSlot: '4484308'} //Pubmatic Publicis }, { bidder: "richaudience", params: { pid: "dvWa4YtbGf", supplyType: "site" } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_BTF', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[1] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_BTF_mobile', sizes: [ [300, 250] ], lazy: true, mappings: { desktop: [ [300, 250] ], mobile: [ [300, 250] ] }/*, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '543449' } }, { bidder: 'appnexusAst', params: { placementId: '12953363' } }, { bidder: 'openx', params: { unit: '539864148', delDomain: 'evolution-d.openx.net' } }, { bidder: 'pubmatic', params: { publisherId: '156394', adSlot: 'OrizzonteScuola_BTF_mobile@300x250'} }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "877140", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 59003, networkId: 1933 } }, { bidder: "richaudience", params: { pid: "sgvLE5Pk4Q", supplyType: "site" } }, ] }*/ }; adUnits[2] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_intext_mobile', sizes: [ [300, 250], [336, 280], [336, 250] ], lazy: true, isIntext: 2, mappings: { desktop: [ [300, 250] ], mobile: [ [300, 250] ] }, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '543450' } }, { bidder: 'appnexusAst', params: { placementId: '12953365' } }, { bidder: 'ix', params: { siteId: '358063', size: [300, 250] } }, { bidder: 'openx', params: { unit: '539864149', delDomain: 'evolution-d.openx.net' } }, // { // bidder: 'pubmatic', // params: { publisherId: '156394', adSlot: 'OrizzonteScuola_intext_mobile@300x250'} // }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "877142", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 58994, networkId: 1933 } }, { bidder: 'pubmatic_apex', params: { publisherId: '161546', adSlot: '4484308'} //Pubmatic Publicis }, { bidder: "richaudience", params: { pid: "f7rVAV66RN", supplyType: "site" } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_intext_mobile', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[3] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_sidebarMiddle', sizes: [ [300, 250] ], lazy: true, mappings: { desktop: [ [300, 250] ], mobile: [ [300, 250] ] }, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '543451' } }, { bidder: 'appnexusAst', params: { placementId: '12953366' } }, { bidder: 'openx', params: { unit: '539864166', delDomain: 'evolution-d.openx.net' } }, { bidder: 'ix', params: { siteId: '800412', size: [300, 250] } }, // { // bidder: 'pubmatic', // params: { publisherId: '156394', adSlot: 'OrizzonteScuola_sidebarMiddle@300x250'} // }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "179998", zoneId: "877138", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 58995, networkId: 1933 } }, { bidder: 'pubmatic_apex', params: { publisherId: '161546', adSlot: '4484308'} //Pubmatic Publicis }, { bidder: "richaudience", params: { pid: "cft3xkeWFC", supplyType: "site" } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_sidebarMiddle', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[4] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_sidebarMiddle_mobile', sizes: [ [300, 250] ], lazy: true, mappings: { desktop: [ [300, 250] ], mobile: [ [300, 250] ] }/*, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '543452' } }, { bidder: 'appnexusAst', params: { placementId: '12953367' } }, { bidder: 'openx', params: { unit: '539864167', delDomain: 'evolution-d.openx.net' } }, { bidder: 'pubmatic', params: { publisherId: '156394', adSlot: 'OrizzonteScuola_sidebarMiddle_mobile@300x250'} }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "877144", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 58999, networkId: 1933 } }, { bidder: "richaudience", params: { pid: "b3lZGXGuLp", supplyType: "site" } }, ] }*/ }; adUnits[5] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_ATF', sizes: [[300, 250], [336, 280],'fluid'], lazy: false, mappings: { desktop: [[300, 250], [336, 280],'fluid'], mobile: [[300, 250], [336, 280],'fluid'] }, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '545213' } }, { bidder: 'appnexusAst', params: { placementId: '12967143' } }, { bidder: 'ix', params: { siteId: '357015', size: [300, 250] } }, { bidder: 'openx', params: { unit: '539873010', delDomain: 'evolution-d.openx.net' } }, // { // bidder: 'pubmatic', // params: { publisherId: '156394', adSlot: 'OrizzonteScuola_ATF@300x250'} // }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "179998", zoneId: "880604", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 41770, networkId: 1933 } }, /* { bidder: "invibes", params: { placementId: "invibes_orizzontescuola", customEndpoint: "https://bid5.videostep.com/Bid/VideoAdContent" } }, */ { bidder: 'pubmatic_apex', params: { publisherId: '161546', adSlot: '4484308'} //Pubmatic Publicis }, { bidder: "richaudience", params: { pid: "BZk1l5veKU", supplyType: "site" } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_ATF', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[6] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_ATF_mobile', sizes: [[300, 250], [336, 280],'fluid'], lazy: false, mappings: { desktop: [[300, 250], [336, 280],'fluid'], mobile: [[300, 250], [336, 280],'fluid'] }, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '545215' } }, { bidder: 'appnexusAst', params: { placementId: '12967144' } }, { bidder: 'openx', params: { unit: '539873011', delDomain: 'evolution-d.openx.net' } }, { bidder: 'pubmatic', params: { publisherId: '156394', adSlot: 'OrizzonteScuola_ATF_mobile@300x250'} }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "880606", sizes: [15] } }, { bidder: 'ix', params: { siteId: '800413', size: [300, 250] } }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 41770, networkId: 1933 } }, /* { bidder: "invibes", params: { placementId: "invibes_orizzontescuola", customEndpoint: "https://bid5.videostep.com/Bid/VideoAdContent" } }, */ { bidder: 'pubmatic_apex', params: { publisherId: '161546', adSlot: '4484308'} //Pubmatic Publicis }, { bidder: "richaudience", params: { pid: "h5uFXZxP9e", supplyType: "site" } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_ATF_mobile', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[7] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_BTF_patrizia', sizes: [ [300, 250] ], lazy: true, mappings: { desktop: [ [300, 250] ], mobile: [ [300, 250] ] }, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '598344' } }, { bidder: 'appnexusAst', params: { placementId: '13894973' } }, { bidder: 'ix', params: { siteId: '358064', size: [300, 250] } }, { bidder: 'openx', params: { unit: '540291993', delDomain: 'evolution-d.openx.net' } }, // { // bidder: 'pubmatic', // params: { publisherId: '156394', adSlot: 'OrizzonteScuola_BTF_patrizia@300x250'} // }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "179998", zoneId: "1045980", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 257291, pageId: 984046, formatId: 41771, networkId: 1933 } }, { bidder: 'pubmatic_apex', params: { publisherId: '161546', adSlot: '4484308'} //Pubmatic Publicis }, { bidder: "richaudience", params: { pid: "LdruTwfMAl", supplyType: "site" } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_BTF_patrizia', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[8] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_BTF_mobile_patrizia', sizes: [ [300, 250] ], lazy: true, mappings: { desktop: [ [300, 250] ], mobile: [ [300, 250] ] }/*, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '598343' } }, { bidder: 'appnexusAst', params: { placementId: '13894972' } }, { bidder: 'openx', params: { unit: '540291992', delDomain: 'evolution-d.openx.net' } }, { bidder: 'pubmatic', params: { publisherId: '156394', adSlot: 'OrizzonteScuola_BTF_mobile_patrizia@300x250'} }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "1045992", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 257291, pageId: 984046, formatId: 59003, networkId: 1933 } }, { bidder: "richaudience", params: { pid: "f4ZZFGCVBd", supplyType: "site" } }, ] }*/ }; adUnits[9] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_intext_mobile_patrizia', sizes: [ [300, 250],'fluid' ], lazy: true, mappings: { desktop: [ [300, 250],'fluid' ], mobile: [ [300, 250],'fluid' ] }/*, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '598345' } }, { bidder: 'appnexusAst', params: { placementId: '13894975' } }, { bidder: 'openx', params: { unit: '540291994', delDomain: 'evolution-d.openx.net' } }, { bidder: 'pubmatic', params: { publisherId: '156394', adSlot: 'OrizzonteScuola_intext_mobile_patrizia@300x250'} }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "1045994", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 257291, pageId: 984046, formatId: 58994, networkId: 1933 } }, { bidder: "richaudience", params: { pid: "ZDHNg68ZHM", supplyType: "site" } }, ] }*/ }; adUnits[10] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_sidebarMiddle_patrizia', sizes: [ [300, 250] ], lazy: true, mappings: { desktop: [ [300, 250] ], mobile: [ [300, 250] ] }, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '598347' } }, { bidder: 'appnexusAst', params: { placementId: '13894979' } }, { bidder: 'openx', params: { unit: '540291996', delDomain: 'evolution-d.openx.net' } }, { bidder: 'ix', params: { siteId: '800412', size: [300, 250] } }, // { // bidder: 'pubmatic', // params: { publisherId: '156394', adSlot: 'OrizzonteScuola_sidebarMiddle_patrizia@300x250'} // }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "179998", zoneId: "1045982", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 257291, pageId: 984046, formatId: 58998, networkId: 1933 } }, { bidder: 'pubmatic_apex', params: { publisherId: '161546', adSlot: '4484308'} //Pubmatic Publicis }, { bidder: "richaudience", params: { pid: "9ZgWcRSpmb", supplyType: "site" } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_sidebarMiddle_patrizia', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[11] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_sidebarMiddle_mobile_patrizia', sizes: [ [300, 250] ], lazy: true, mappings: { desktop: [ [300, 250] ], mobile: [ [300, 250] ] }/*, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '598346' } }, { bidder: 'appnexusAst', params: { placementId: '13894977' } }, { bidder: 'openx', params: { unit: '540291995', delDomain: 'evolution-d.openx.net' } }, { bidder: 'pubmatic', params: { publisherId: '156394', adSlot: 'OrizzonteScuola_sidebarMiddle_mobile_patrizia@300x250'} }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "1045998", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 257291, pageId: 984046, formatId: 58999, networkId: 1933 } }, { bidder: "richaudience", params: { pid: "L6PXZxQEN6", supplyType: "site" } }, ] }*/ }; adUnits[12] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_ATF_patrizia', sizes: [[300, 250], [336, 280],'fluid'], lazy: false, mappings: { desktop: [[300, 250], [336, 280],'fluid'], mobile: [[300, 250], [336, 280],'fluid'] }, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '598342' } }, { bidder: 'appnexusAst', params: { placementId: '13894971' } }, { bidder: 'ix', params: { siteId: '357015', size: [300, 250] } }, { bidder: 'openx', params: { unit: '540291991', delDomain: 'evolution-d.openx.net' } }, // { // bidder: 'pubmatic', // params: { publisherId: '156394', adSlot: 'OrizzonteScuola_ATF_patrizia@300x250'} // }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "179998", zoneId: "1045976", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 257291, pageId: 984046, formatId: 41770, networkId: 1933 } }, { bidder: 'pubmatic_apex', params: { publisherId: '161546', adSlot: '4484308'} //Pubmatic Publicis }, { bidder: "richaudience", params: { pid: "9QegclwgQ6", supplyType: "site" } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_ATF_patrizia', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[13] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_ATF_mobile_patrizia', sizes: [[300, 250], [336, 280],'fluid'], lazy: false, mappings: { desktop: [[300, 250], [336, 280],'fluid'], mobile: [[300, 250], [336, 280],'fluid'] }, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '598341' } }, { bidder: 'appnexusAst', params: { placementId: '13894969' } }, { bidder: 'ix', params: { siteId: '357015', size: [300, 250] } }, { bidder: 'openx', params: { unit: '540291990', delDomain: 'evolution-d.openx.net' } }, // { // bidder: 'pubmatic', // params: { publisherId: '156394', adSlot: 'OrizzonteScuola_ATF_mobile_patrizia@300x250'} // }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "1045988", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 257291, pageId: 984046, formatId: 41770, networkId: 1933 } }, { bidder: 'pubmatic_apex', params: { publisherId: '161546', adSlot: '4484308'} //Pubmatic Publicis }, { bidder: "richaudience", params: { pid: "9QegclwgQ6", supplyType: "site" } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_ATF_mobile_patrizia', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[14] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_homepage', sizes: [[300, 250]], lazy: false, mappings: { desktop: [[300, 250]], mobile: [[300, 250]] }, hb: { sizes: [[300, 250]], bids: [ { bidder: 'adform', params: { mid: '545213' } }, { bidder: 'appnexusAst', params: { placementId: '12967143' } }, { bidder: 'ix', params: { siteId: '357015', size: [300, 250] } }, { bidder: 'openx', params: { unit: '539873010', delDomain: 'evolution-d.openx.net' } }, // { // bidder: 'pubmatic', // params: { publisherId: '156394', adSlot: 'OrizzonteScuola_ATF@300x250'} // }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "179998", zoneId: "880604", sizes: [15] } }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 41770, networkId: 1933 } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_homepage', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] }, hb: { sizes: [ [300, 250] ], bids: [{ bidder: 'adform', params: { mid: '545215' } }, { bidder: 'appnexusAst', params: { placementId: '12967144' } }, { bidder: 'openx', params: { unit: '539873011', delDomain: 'evolution-d.openx.net' } }, { bidder: 'pubmatic', params: { publisherId: '156394', adSlot: 'OrizzonteScuola_ATF_mobile@300x250'} }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "880606", sizes: [15] } }, { bidder: 'ix', params: { siteId: '357015', size: [300, 250] } }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 41770, networkId: 1933 } }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_homepage', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ] } }; adUnits[15] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_head_logo', sizes: [[468, 60]], lazy: false, mappings:{ desktop: [[468, 60]], mobile: [] }, hb: {}, hbmobile:{} }; adUnits[16] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_intext_contentrevolution', sizes: [[300, 250], [336, 280], [320, 480], [336, 250], 'fluid'], lazy: true, isIntext: true, //aggiungere sempre agli intext mappings: { desktop: [[300, 250], [336, 280], [320, 480], 'fluid'], mobile: [[300, 250], [336, 280], 'fluid'], }, advanced: { // questi parametri valgono sempre // =========================================== // mode : 'advanced|simple' // default advanced // intext_limit: 120, //default 0 // intext_container: null, // active:true, // default true // =========================================== // =========================================== // questi invece solo se mode è 'advanced' // =========================================== // force_on_empty: false, // default false // btf_wordcount:0, //default 0 // filter: null|string_selettore|fn => bool // default null }, hb: { sizes: [ [300, 250], [336, 280], ], bids: [ { bidder: 'adform', params: { mid: '1559635' }, }, { bidder: 'appnexusAst', params: { placementId: '27519391' }, }, { bidder: 'openx', params: { unit: '557949442', delDomain: 'evolution-d.openx.net' }, }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "179998", zoneId: "880604", sizes: [15]}, }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 58993, networkId: 1933 }, }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_intext_contentrevolution', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ], }, hbmobile: { sizes: [ [300, 250], [336, 280], ], bids: [ { bidder: 'adform', params: { mid: '1559635' }, }, { bidder: 'appnexusAst', params: { placementId: '27519391' }, }, { bidder: 'openx', params: { unit: '557949442', delDomain: 'evolution-d.openx.net' }, }, { bidder: 'rubicon', params: { accountId: "17322", siteId: "180000", zoneId: "877142", sizes: [15] }, }, { bidder: 'smartadserver', params: { siteId: 219190, pageId: 916168, formatId: 58993, networkId: 1933 }, }, /* { bidder: 'oftmedia', params: { placementId: '27809150'}, }, */ { bidder: 'minutemedia', params: { org: '01gf6a2chk0f', // Required placementId: 'Orizzontescuola_intext_contentrevolution', // Optional } }, { bidder: 'connectad', params: { networkId: 10047, siteId: 1072016 } }, ], }, }; adUnits[17] = { name: '/5966054,109765923/OrizzonteScuola/OrizzonteScuola_optiscroll_premium', sizes: [[1, 10]], offset: 600, lazy: true, mappings: { desktop: [[1, 10]], mobile: [[1, 10]], }, hb: {}, hbmobile: {}, }; optiload.config.adunits= adUnits; optiload.enable(); }); optiload.cmd.push(function() { optiload.addEventListener("ready", function() { optiload.fn.loadAdnami(); if(document.getElementById('evoiframe')) { loadAdUnits(); } else { loadAdUnits(); optiload.fn.loadNuggAd(); } //NEW PLAYER IN PARAGRAFO optiload.fn.utils.loadJs('https://assets.evolutionadv.it/orizzontescuola_it/video.js'); startContentRevolution(); }); }); function loadAdUnits() { if( //(!optiload.fn.isMobile()) && (window.location.href.indexOf("/webinar") == -1) && (window.location.href.indexOf("/contattaci") == -1) && (window.location.href.indexOf("/notifiche-iscrizione-e-cancellazione") == -1) && (window.location.href.indexOf("/pubblicizzati") == -1) && (optiload.$('#evo-no-adv').length == 0) ) { insertBanner(); } var slots = []; var divAdv = optiload.$(".gptslot").filter(function () { return (optiload.$(this).data('addesktop') == undefined && optiload.$(this).data('admobile') == undefined) || optiload.$(this).data('addesktop') == "1"; }); if (optiload.fn.isMobile()) { divAdv = optiload.$(".gptslot").filter(function () { return (optiload.$(this).data('addesktop') == undefined && optiload.$(this).data('admobile') == undefined) || optiload.$(this).data('admobile') == "1"; }); } //mod campagna febbraio 2018 var intextIdSlot = optiload.fn.utils.getIdIntext(); var mastheadIdSlot = optiload.fn.utils.getIdMasthead(); var gptslots; var gptneltesto; if(mastheadIdSlot !== -1) { //mh video gptslots = optiload.$(divAdv).filter(function () { return (optiload.$(this).data("adunitid") != intextIdSlot && optiload.$(this).data("adunitid") != mastheadIdSlot ); }); } else { gptslots = optiload.$(divAdv).filter(function () { return (optiload.$(this).data("adunitid") != intextIdSlot ); }); } gptneltesto = optiload.$(divAdv).filter(function () { return optiload.$(this).data("adunitid") == intextIdSlot; }); if(window.location.pathname == '/') { //key-value homepage optiload.$.each(gptslots, function() { optiload.addSlots(optiload.$(this),[ { key: "pagina", value: "homepageorizzontescuola" } ]); }); var gptneltestocounter = 1; optiload.$.each(gptneltesto, function() { optiload.addSlots(optiload.$(this), [ { key: "gptneltesto", value: gptneltestocounter.toString() }, { key: "pagina", value:'homepageorizzontescuola' } ]); gptneltestocounter++; }); } else { optiload.$.each(gptslots, function() { optiload.addSlots(optiload.$(this),null); }); var gptneltestocounter = 1; optiload.$.each(gptneltesto, function() { optiload.addSlots(optiload.$(this), [ { key: "gptneltesto", value: gptneltestocounter.toString() } ]); gptneltestocounter++; }); } } function insertBanner() { //var $texte = optiload.$(".entry-content").last(); var $texte = optiload.$(".entry-content").first(); var unitIdAtf = 5; if(optiload.fn.isMobile()) { unitIdAtf = 6; } if ($texte.length > 0) { var $p = $texte.find("p"); var limit = $texte.data("banner") || 150; var currentLimit = limit; var wordCount = 0; var count = Date.now() + 1; var atfInserted = false; var countPar = 0; var $pAndImg = $texte.find("p, img"); for (var i = 0; i < $pAndImg.length; i++) { atfInserted = false; var $node = optiload.$($pAndImg[i]); if ($node.is("p")) { //if(!atfInserted) { if( countPar == 0) { //if( (i >= 1) && (!atfInserted) ) { //first paragraph /* optiload.$($node).after( "" ); */ count++; atfInserted = true; } wordCount += $node.text().split(' ').length; if ((wordCount > currentLimit) && (!atfInserted)) { var j = i + 1; var found = false; while (j < $pAndImg.length && !found) { if (optiload.$($pAndImg[j]).is("p:not(.toc)") && optiload.$($pAndImg[j]).text().trim().length > 0) { found = true; optiload.$($pAndImg[j]).before( "" ); } j++; } count++; wordCount = 0; //break; } countPar++; } } } }