'); }); jQuery('#-pro-menu-11-1035198 .oxy-pro-menu-show-dropdown .menu-item:not(.menu-item-has-children) > a', 'body').each(function(){ jQuery(this).append('
'); });
'); }); jQuery('#-pro-menu-13-1035198 .oxy-pro-menu-show-dropdown .menu-item:not(.menu-item-has-children) > a', 'body').each(function(){ jQuery(this).append('
'); });
exit-upcrosschevron-down
').parent('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+'%');$this.removeAttr('height').removeAttr('width');});});};$.fn.fitVids._count=0;})(window.jQuery||window.Zepto); /* This plugin extends lazySizes to lazyLoad: background images, videos/posters and scripts Background-Image: For background images, use data-bg attribute:
Video: For video/audio use data-poster and preload="none": Scripts: For scripts use data-script:
Script modules using require: For modules using require use data-require:
*/ (function (window, document) { /*jshint eqnull:true */ "use strict"; var bgLoad; var uniqueUrls = {}; if (document.addEventListener && window.getComputedStyle) { bgLoad = function (url, cb) { var img = document.createElement("img"); img.onload = function () { img.onload = null; img.onerror = null; img = null; cb(); }; img.onerror = img.onload; img.src = url; if (img && img.complete && img.onload) { img.onload(); } }; addEventListener( "lazybeforeunveil", function (e) { var tmp, load, bg, poster; if (!e.defaultPrevented) { if (e.target.preload == "none") { e.target.preload = "auto"; } tmp = e.target.getAttribute("data-link"); if (tmp) { addStyleScript(tmp, true); } // handle data-script tmp = e.target.getAttribute("data-script"); if (tmp) { addStyleScript(tmp); } // handle data-require tmp = e.target.getAttribute("data-require"); if (tmp) { if (window.require) { require([tmp]); } } // handle data-bg bg = e.target.getAttribute("data-bg"); if (bg) { e.details.firesLoad = true; load = function () { e.target.style.backgroundImage = "url(" + bg + ")"; e.details.firesLoad = false; lazySizes.fire( e.target, "_lazyloaded", {}, true, true ); }; bgLoad(bg, load); } // handle data-poster poster = e.target.getAttribute("data-poster"); if (poster) { e.details.firesLoad = true; load = function () { e.target.poster = poster; e.details.firesLoad = false; lazySizes.fire( e.target, "_lazyloaded", {}, true, true ); }; bgLoad(poster, load); } } }, false ); } function addStyleScript(src, style) { if (uniqueUrls[src]) { return; } var elem = document.createElement(style ? "link" : "script"); var insertElem = document.getElementsByTagName("script")[0]; if (style) { elem.rel = "stylesheet"; elem.href = src; } else { elem.src = src; } uniqueUrls[src] = true; uniqueUrls[elem.src || elem.href] = true; insertElem.parentNode.insertBefore(elem, insertElem); } })(window, document); const defaultConfig = { endPoint: "https://euasync01.admantx.com/admantx/service", request: { key: "d4d1cdf427f06ebc6ee7e0a3ffbcaecdfbfe517eca18a41d9126f88bdb16e7f0", // API key type: "url", method: "descriptor", mode: "async", decorator: "json", filter: ["admants"], }, }; const targetDefault = ["categories", "feelings", "entities", "admants"]; async function init() { const { request, endPoint } = defaultConfig; const { href } = window.location; // to remove query sting parameters request.body = href.substring(0, href.indexOf("?")) || href; const reqStr = JSON.stringify(request); const url = `${endPoint}?request=${reqStr}`; const headers = { "Content-Type": "text/plain", "Content-Length": reqStr.length, Connection: "keep-alive", }; const targetingP = new Promise((resolve, reject) => { fetch(url, { method: "GET", headers }) .then(async (r) => { const response = await r.json(); const { info } = response; if (info !== "OK") { reject(new Error(`Admantx fetch error: ${info}.`)); } else { const targetKeys = request.filter.includes("default") ? targetDefault : request.filter; const targeting = targetKeys .map((key) => response[key]) .filter((list) => list) .reduce( (acc, next) => [ ...acc, ...next.map((item) => item.name), ], [] ); resolve(targeting); } }) .catch(reject); }); p = Promise.resolve(targetingP); p.then(function (v) { window.admantex = v; //console.log(v); }); (window.googletag = window.googletag || {}), (window.googletag.cmd = window.googletag.cmd || []), window.googletag.cmd.push(function () { var localadmentx = window.admantex; window.googletag.pubads().setTargeting("ias-bsp", [localadmentx]); //console.log(localadmentx); }); await targetingP; } init(); const searchClient = algoliasearch("Y7NNSBYQNL", "91e4e0acd0278fe408822d5ad3c3ff75"); const search = instantsearch({ indexName: "extra_live", searchClient, insights: true, searchFunction(helper) { const container = document.querySelector('#results'); const m_container = document.querySelector('#m-results'); // remove desktop results when search box is empty container.style.display = helper.state.query === '' ? 'none' : ''; // remove mobile results when search box is empty m_container.style.display = helper.state.query === '' ? 'none' : ''; // Ensure we only trigger a search when there's a query if (helper.state.query) { helper.search(); } }, }); search.addWidgets([ instantsearch.widgets.searchBox({ container: "#searchbox", placeholder: "search articles", autofocus: false }), instantsearch.widgets.searchBox({ container: "#m-searchbox", placeholder: "search articles", autofocus: false }), instantsearch.widgets.configure({ hitsPerPage: 12, }), instantsearch.widgets.pagination({ container: "#pagination", scrollTo: document.querySelector('#stats'), }), instantsearch.widgets.pagination({ container: "#m-pagination", scrollTo: document.querySelector('#m-stats'), }), instantsearch.widgets.stats({ container: "#stats", }), instantsearch.widgets.stats({ container: "#m-stats", }), instantsearch.widgets.refinementList({ container: "#tags-list", attribute: "tags", limit: 5, showMore: true, }), instantsearch.widgets.refinementList({ container: "#m-tags-list", attribute: "tags", limit: 5, showMore: true, }), instantsearch.widgets.hits({ container: "#hits", templates: { item: `
`, }, }), instantsearch.widgets.hits({ container: "#m-hits", templates: { item: `
`, }, }), ]); search.start(); // Event listeners for clearing search // const searchBar = document.querySelector('.ais-SearchBox-input') // const resultsDiv = document.getElementById('code_block-158-45') // const closeBtn = document.querySelector('.ais-SearchBox-reset') // searchBar.addEventListener('keyup', () => { // if (searchBar.value != '') { // resultsDiv.style.display = 'block' // } // }) // closeBtn.addEventListener('click', () => { // resultsDiv.style.display = 'none' // }) //Extra.ie JW Player Desktop Pre Roll targeting in GAM var adTag = "https://pubads.g.doubleclick.net/gampad/ads?iu=/5765/Extra/EX_JW_PREROLL&description_url=https%3A%2F%2Fextra.ie%2F&tfcd=0&npa=0&sz=636x358%7C640x360&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=&cust_params="; var playerInstance; var localadmentx = window.admantex; let date = new Date(); // console.log("JW/Google: retrieving post id from page"); gamTargeting = ('ex_post_id' + encodeURIComponent('=') + post_id_vars.postID); gamAdmentx = ('ias-bsp' + encodeURIComponent('=') + localadmentx); adTag = adTag.replace(/(cust_params[^&]+)/, '$1' + gamTargeting + encodeURIComponent('&') + gamAdmentx); // console.log("JW/Google: callback finished executing - Targeting identified: " + gamTargeting); // console.log(adTag); playerInstance = jwplayer('ex_jw_vod_automatching').setup({ playlist: 'https://cdn.jwplayer.com/v2/playlists/Kz63NP3H?search=__CONTEXTUAL__', autostart: 'viewable', mute: false, volume: 3, ga: {}, "floating": { "mode": 'never', }, autoPause: { 'viewability': true, }, advertising: { autoplayadsmuted: false, client: 'googima', tag: adTag, adscheduleid: 'BRRLgl6r', }, }); //Extra JW Player Outstream targeting in GAM let adOutstreamTag = "https://pubads.g.doubleclick.net/gampad/ads?iu=/5765/Extra/EX_JW_Outstream&description_url=https%3A%2F%2Fextra.ie%2F&tfcd=0&npa=0&sz=636x358%7C640x360&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=&cust_params="; // var localadmentx = window.admantex; let latest = new Date(); // console.log("JW/Google: retrieving post id from page"); gamTargeting = ('ex_post_id' + encodeURIComponent('=') + post_id_vars.postID); gamAdmentx = ('ias-bsp' + encodeURIComponent('=') + localadmentx); adOutstreamTag = adOutstreamTag.replace(/(cust_params[^&]+)/, '$1' + gamTargeting + encodeURIComponent('&') + gamAdmentx); // console.log("JW/Google: callback finished executing - Targeting identified: " + gamTargeting); // console.log(adOutstreamTag); jwplayer("ex_jw_outstream").setup({ "aspectratio": "16:9", "width": "100%", "volume": "3", "advertising": { "client": "googima", "outstream": true, "tag": adOutstreamTag, "adscheduleid": "zGEpiD1Y", "endstate": "close" }, "displayHeading": true, "intl": { "en": { "displayHeading": "Advertisement" } }, "floating": { "dismissible": true } }); window.onload = function() { const getBBWVideo= () => { const iframeReference = document.querySelector('iframe[src^="https://dmgie.bbvms.com/"]'); if (iframeReference) { const videoContent = iframeReference.parentNode; videoContent.removeChild(iframeReference); console.log("Removed the Old BBW Video embed"); } else { console.warn("Original iframe bbwIframe not found"); } }; getBBWVideo(); }; linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram