The Pretty Things | NME '; // document.querySelector('body').appendChild(elem); }); }); // HBO link document.addEventListener('DOMContentLoaded', function() { if (!wordpress.postId || wordpress.hidePostAds) { return; } if ((wordpress.postTaxonomies.series.length || wordpress.postTaxonomies.films.length) && (wordpress.postTaxonomies.brands.length && wordpress.postTaxonomies.brands.indexOf('HBO') !== -1)) { const elem = document.createElement('div'); elem.classList.add('affiliate-info') const mediaName = wordpress.postTaxonomies.series[0] ? wordpress.postTaxonomies.series[0] : wordpress.postTaxonomies.films[0]; elem.innerHTML = `