// Load style var style = document.createElement('link'); style.setAttribute('rel', "stylesheet"); style.setAttribute('href', 'https://scripts.getonline.ie/cn-feed/style.css'); document.getElementsByTagName('head')[0].appendChild(style); // --- var loadedScripts = document.getElementsByTagName('script'); var feed_js_container = loadedScripts[loadedScripts.length - 1]; //var feed_js_container = loadedScripts.lastChild; function load_cb_feed_content(){ var content = '

Second volume of Church music series ‘Feasts and Seasons’ to be launched in Maynooth

Feasts and Seasons 2 is intended primarily for use in an Irish parish context. 
Read more...

Pope Francis’ lunch with the poor

The lunch menu included lasagna, chicken morsels, mashed potatoes and tiramisu! 
Read more...

Archbishop Eamon Martin launches interactive online Advent Calendar

“I invite everyone during this Season of Advent to enjoy our online calendar, which will highlight the themes of love in the family as well as mercy and peace and which will hopefully help families to prepare for Christmas.” - Archbishop Eamon Martin
Read more...
'; var cont_id = 'cn-feed'; var container = document.getElementById(cont_id); //var feed_js_container = document.getElementById('cn-feed-js'); //console.log(content); if(typeof(container) != 'undefined' && container != null){ container.innerHTML = content; container.className = "cn-feed"; }else{ var container = document.createElement("div"); container.innerHTML = content; container.id = cont_id; container.className = "cn-feed"; feed_js_container.parentNode.insertBefore(container, feed_js_container.nextSibling); } console.log(cont_id + ' - ' + container.offsetWidth + ' - ' + jQuery('#cn-feed').outerWidth()); if(container.offsetWidth < 650){ var divChildNodes = container.childNodes; for(var i = 0; i < divChildNodes.length; i++){ if (divChildNodes[i].nodeType !== 3) { // nodeType 3 is a text node divChildNodes[i].className = divChildNodes[i].className + " oneinrow"; } } } } //document.addEventListener("DOMContentLoaded", function(event) { load_cb_feed_content(); //}); function resizeImgCont(){ var imgcontainer = document.getElementsByClassName('img-container'); for(var i = 0; i < imgcontainer.length; i++){ var contw = imgcontainer[i].clientWidth; imgcontainer[i].style.height = (contw * 9) / 16+"px"; } } function resizeFeedBoxes(){ var cont_id = 'cn-feed'; var container = document.getElementById(cont_id); if(container.offsetWidth < 650){ var divChildNodes = container.childNodes; for(var i = 0; i < divChildNodes.length; i++){ if (divChildNodes[i].nodeType !== 3) { // nodeType 3 is a text node divChildNodes[i].className = divChildNodes[i].className + " oneinrow"; } } } } // Resize titles var maxHeight = 0; var elements = document.getElementsByClassName("feedtitle"); var feedboxes = document.getElementsByClassName("feedbox"); function hasClass(element, cls){ return(' ' + element.className + ' ').indexOf(' ' + cls + ' ') > -1; } // Search the highest title, and set that height to all titles function titleResizer() { var resizeTitle = setInterval(function(){ for (var i=0; i