Your daily briefing of everything you need to know
- Newsweek magazine delivered to your door
- Newsweek Voices: Diverse audio opinions
- Enjoy ad-free browsing on Newsweek.com
- Comment on articles
- Newsweek app updates on-the-go
Subscribe now
- Newsweek Voices: Diverse audio opinions
- Enjoy ad-free browsing on Newsweek.com
- Comment on articles
- Newsweek app updates on-the-go
Subscribe now
Top stories
'}
const div=createElementWithHtml('div',linkElement);div.classList.add('promo-link');element.parentNode.insertBefore(div,element.nextSibling)}
function insertElementHtml(element,id){if(!element){console.error('insertElementHtml: element is not a DOM node');return}
const div=createElementWithHtml('div',document.getElementById(id).innerHTML);element.parentNode.insertBefore(div,element.nextSibling)}
function createElementWithHtml(tag,html){const element=document.createElement(tag);element.innerHTML=html;return element}
function checkSlideStart(){if(!slide_started)check_slide()}
function removeEmbeddedTitles(){const embTIs=document.querySelectorAll('#v_article .embTI');embTIs.forEach(element=>element.remove());work_editor()}
function processMobilePromoLink(){if(!mobile_device||(xuaInfo.device!=='mobile'&&xuaInfo.device!==''))return;const promoLink=document.querySelector('.promo-link');const newsletterSignup=document.getElementById('newsletterSignupHorizontal');if(!promoLink){console.error('processMobilePromoLink: promoLink is not a DOM node');return}
if(!newsletterSignup){console.error('processMobilePromoLink: newsletterSignup is not a DOM node');return}
if(!promoLink.parentNode){console.error('processMobilePromoLink: promoLink.parentNode is not a DOM node');return}
promoLink.parentNode.insertBefore(newsletterSignup,promoLink.nextSibling)}
function addReadMoreComponent(element){}