'); }); 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); /*! lazysizes - v1.0.0 - 2015-03-04 Licensed MIT */ !function(a,b){var c=b(a,a.document);a.lazySizes=c,"object"==typeof module&&module.exports?module.exports=c:"function"==typeof define&&define.amd&&define(c)}(window,function(a,b){"use strict";if(b.getElementsByClassName){var c,d=b.documentElement,e=/^picture$/i,f=["load","error","lazyincluded","_lazyloaded"],g=function(a,b){var c=new RegExp("(\\s|^)"+b+"(\\s|$)");return a.className.match(c)&&c},h=function(a,b){g(a,b)||(a.className+=" "+b)},i=function(a,b){var c;(c=g(a,b))&&(a.className=a.className.replace(c," "))},j=function(a,b,c){var d=c?"addEventListener":"removeEventListener";c&&j(a,b),f.forEach(function(c){a[d](c,b)})},k=function(a,c,d,e,f){var g=b.createEvent("Event");return g.initEvent(c,!e,!f),g.details=d||{},a.dispatchEvent(g),g},l=function(b,d){var e;a.HTMLPictureElement||((e=a.picturefill||a.respimage||c.polyfill)?e({reevaluate:!0,reparse:!0,elements:[b]}):d&&d.src&&(b.src=d.src))},m=function(a,b){return getComputedStyle(a,null)[b]},n=function(a,b){for(var d=a.offsetWidth;dJ||!a.target)&&(J=0)},M=function(a,b){var c,d=a,e="hidden"!=m(a,"visibility");for(w-=b,z+=b,x-=b,y+=b;e&&(d=d.offsetParent);)e=s&&2>J||(m(d,"opacity")||1)>0,e&&"visible"!=m(d,"overflow")&&(c=d.getBoundingClientRect(),e=y>c.left-1&&xc.top-1&&wa;a++,K++)if(n[a]&&!n[a]._lazyRace)if(D){if((j=n[a].getAttribute("data-expand"))&&(h=1*j)||(h=H),!(J>6&&(!j||"src"in n[a])))if(h>E&&(p.m<2||J>3)&&(h=E),k!==h&&(u=innerWidth+h,v=innerHeight+h,i=-1*h,k=h),d=n[a].getBoundingClientRect(),(z=d.bottom)>=i&&(w=d.top)<=v&&(y=d.right)>=i&&(x=d.left)<=u&&(z||y||x||w)&&(s&&G>H&&3>J&&4>I&&!j&&p.m>2||M(n[a],h)))K--,b+=2,R(n[a]),g=!0;else{if(Date.now()-b>3)return K++,void O();!g&&s&&!e&&3>J&&4>I&&(r[0]||c.preloadAfterLoad)&&(r[0]||!j&&(z||y||x||w||"auto"!=n[a].getAttribute(c.sizesAttr)))&&(e=r[0]||n[a])}}else R(n[a]);K=0,I++,G>H&&1>J&&I>5&&p.m>2?(H=G,I=0,O()):H=H!=F&&p.m>1&&I>4?F:E,e&&!g&&R(e)}},O=o(N),P=function(a){h(a.target,c.loadedClass),i(a.target,c.loadingClass),j(a.target,P)},Q=function(a,b){try{a.contentWindow.location.replace(b)}catch(c){a.setAttribute("src",b)}},R=function(a,b){var d,f,m,n,o,p,r,u,v,w,x,y=a.currentSrc||a.src,z=B.test(a.nodeName),D=a.getAttribute(c.sizesAttr)||a.getAttribute("sizes"),E="auto"==D;if(!E&&s||!z||!y||a.complete||g(a,c.errorClass)){if(a._lazyRace=!0,!(v=k(a,"lazybeforeunveil",{force:!!b})).defaultPrevented){if(D&&(E?q.updateElem(a,!0):a.setAttribute("sizes",D)),p=a.getAttribute(c.srcsetAttr),o=a.getAttribute(c.srcAttr),z&&(r=a.parentNode,u=e.test(r.nodeName||"")),w=v.details.firesLoad||"src"in a&&(p||o||u),w&&(J++,j(a,L,!0),clearTimeout(t),t=setTimeout(L,3e3)),u)for(d=r.getElementsByTagName("source"),f=0,m=d.length;m>f;f++)(x=c.customMedia[d[f].getAttribute("data-media")||d[f].getAttribute("media")])&&d[f].setAttribute("media",x),n=d[f].getAttribute(c.srcsetAttr),n&&d[f].setAttribute("srcset",n);p?(a.setAttribute("srcset",p),A&&D&&a.removeAttribute("src")):o&&(C.test(a.nodeName)?Q(a,o):a.setAttribute("src",o)),h(a,c.loadingClass),j(a,P,!0)}setTimeout(function(){a._lazyRace&&delete a._lazyRace,"auto"==D&&h(a,c.autosizesClass),(p||u)&&l(a,{src:o}),i(a,c.lazyClass),(!w||a.complete&&y==(a.currentSrc||a.src))&&(w&&L(v),P(v)),a=null})}},S=function(){f||(F=Math.max(Math.min(c.expand||120,300),9),G=5*F),f=!0},T=function(){s=!0,I+=8,p.m=3,O(!0)};return{_:function(){n=b.getElementsByClassName(c.lazyClass),r=b.getElementsByClassName(c.lazyClass+" "+c.preloadClass),c.scroll&&addEventListener("scroll",O,!0),addEventListener("resize",function(){f=!1,O()},!0),a.MutationObserver?new MutationObserver(O).observe(d,{childList:!0,subtree:!0,attributes:!0}):(d.addEventListener("DOMNodeInserted",O,!0),d.addEventListener("DOMAttrModified",O,!0),setInterval(O,3e3)),addEventListener("hashchange",O,!0),["transitionstart","transitionend","load","focus","mouseover","animationend","click"].forEach(function(a){b.addEventListener(a,O,!0)}),(s=/d$|^c/.test(b.readyState))?T():(addEventListener("load",T),b.addEventListener("DOMContentLoaded",O)),O(n.length>0)},m:3,checkElems:O,unveil:R}}(),q=function(){var a,d=function(a,b){var c,d,f,g,h,i=a.parentNode;if(i&&(c=n(a,i),h=k(a,"lazybeforesizes",{width:c,dataAttr:!!b}),!h.defaultPrevented&&(c=h.details.width,c&&c!==a._lazysizesWidth))){if(a._lazysizesWidth=c,c+="px",a.setAttribute("sizes",c),e.test(i.nodeName||""))for(d=i.getElementsByTagName("source"),f=0,g=d.length;g>f;f++)d[f].setAttribute("sizes",c);h.details.dataAttr||l(a,h.details)}},f=function(){var b,c=a.length;if(c)for(b=0;c>b;b++)d(a[b])},g=o(f);return{_:function(){a=b.getElementsByClassName(c.autosizesClass),addEventListener("resize",g)},checkElems:g,updateElem:d}}(),r=function(){r.i||(r.i=!0,q._(),p._())};return function(){var b,d={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",scroll:!0,autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:50,customMedia:{},init:!0};c=a.lazySizesConfig||{};for(b in d)b in c||(c[b]=d[b]);a.lazySizesConfig=c,setTimeout(function(){c.init&&r()})}(),{cfg:c,autoSizer:q,loader:p,init:r,uP:l,aC:h,rC:i,hC:g,fire:k,gW:n}}}); /* 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