(function () { window.Juicer = window.Juicer || {}; window.Juicer.Constants = window.Juicer.Constants || {}; window.Juicer.Constants.API_ROOT = "//www.juicer.io"; if (navigator.userAgent.match(/MSIE 9/) || navigator.userAgent.match(/MSIE 8/) || window.location.protocol === 'file:') { Juicer.Constants.API_ROOT = 'https:' + Juicer.Constants.API_ROOT; } var juicerCurrentScript = document.currentScript; window.runJuicerAfterCallback = function(event, callbackCode) { } var juicerJsUrl = "https://www.juicer.io/embed.js"; function setAttributesToJuicerElement(juicerFeed) { if (!juicerFeed.hasAttribute('data-feed-id')) { juicerFeed.setAttribute('data-feed-id', 'ucd-humanities_institute'); } if (!juicerFeed.hasAttribute('data-origin')) { juicerFeed.setAttribute('data-origin', 'embed-code'); } if (!juicerFeed.hasAttribute('data-per')) { juicerFeed.setAttribute('data-per', '6'); } if (!juicerFeed.hasAttribute('data-pages')) { juicerFeed.setAttribute('data-pages', '1'); } } var feedElements = document.querySelectorAll('.juicer-feed[data-feed-id="ucd-humanities_institute" i]'); if (feedElements.length === 0) { var juicerFeed = document.createElement('div'); juicerFeed.setAttribute('class', 'juicer-feed'); setAttributesToJuicerElement(juicerFeed); if (juicerCurrentScript && juicerCurrentScript.parentNode) { juicerCurrentScript.parentNode.appendChild(juicerFeed); } else { document.body.appendChild(juicerFeed); } } else { feedElements.forEach(setAttributesToJuicerElement); } var juicerCssUrl = "https://www.juicer.io/embed.css"; var link = document.createElement('link'); link.rel = 'stylesheet'; link.type = 'text/css'; link.href = juicerCssUrl; link.media = 'all'; document.head.appendChild(link); var script = document.createElement('script'); script.src = juicerJsUrl; document.head.appendChild(script); })();