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){if(document.querySelectorAll('.read-more-embedded').length===0&&document.getElementById('readMoreTopics')){doFir.push(function(){jQuery.getJSON('https://d.newsweek.com/json/read-more-articles?article_id=1882362&article_link=puppy-mill-warning-national-puppy-day-1882362&article_category=Pets&source=by_parsely&article_keyword_related=9465&size=4&days_old=4d&return=html&topic_label=Puppies',function(data){if(data!==undefined&&data.html.length>0){jQuery('#readMoreTopics').html(data.html);insertElementHtml(element,'readMoreTopics');jQuery('#readMoreTopics').remove();let readmoreContainer=document.querySelector('.read-more-topics');let categoryGtm=document.querySelector('body').getAttribute('data-gtm-category');let actionGtm=readmoreContainer.getAttribute('data-gtm-action');let readmoreLinks=readmoreContainer.querySelectorAll('a');setGtmEventLinks(readmoreLinks,categoryGtm,actionGtm)}})})}}