October 18, 2021

New Roomba vacuum aims to avoid pooptastrophes – CNN

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘tech/2021/09/09/roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnnbusiness_tech_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210909203122-roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx-00010827-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210909203122-roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx-00010827-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210909203122-roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx-00010827-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210909203122-roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx-00010827-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210909203122-roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx-00010827-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210909203122-roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx-00010827-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210909203122-roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx-00010827-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”The new Roomba robot vacuum prevents “pooptastrophes” by avoiding pet waste. CNN’s Jeanne Moos has the scoop.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210909203122-roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx-00010827-large-169.jpg”,”title”:”New Roomba vacuum aims to avoid ‘pooptastrophes'”,”videoCMSUrl”:”/videos/tech/2021/09/09/roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx.cnn”,”videoLeafUrl”:”/videos/tech/2021/09/09/roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx.cnn”,”videoId”:”tech/2021/09/09/roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/tech/2021/09/09/roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx.cnn”,”surrogateKey”:”video_EF3A5C37-CB69-60CD-A85D-CCC43C559B22″},{“descriptionPlainText”:”Ray-Ban and Facebook joined forces to make smart glasses that can capture pictures and video, make phone calls, and play music. But will customers actually want to wear them?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210909123516-mark-zuckerberg-ray-ban-stories-large-169.jpg”,”title”:”Watch Mark Zuckerberg announce new Facebook and Ray-Ban smart glasses”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/09/09/ray-ban-stories-zuckerberg-glasses-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2021/09/09/ray-ban-stories-zuckerberg-glasses-orig.cnn-business”,”videoId”:”business/2021/09/09/ray-ban-stories-zuckerberg-glasses-orig.cnn-business”,”videoUrl”:”/videos/business/2021/09/09/ray-ban-stories-zuckerberg-glasses-orig.cnn-business/video/playlists/business-tech/”,”surrogateKey”:”video_6D098AC9-FD23-E09B-BD89-CB69A68942BE”},{“descriptionPlainText”:”Researchers at Rice University say they have developed a shirt than can perform EKGs and track your heart rate — with the help of Bluetooth wires hanging off of it.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210831123801-02-rice-university-smart-shirt-screenshot-large-169.jpg”,”title”:”This shirt uses fibers as strong as Kevlar to track your heart”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/08/31/smart-shirt-heart-rice-orig-mc.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2021/08/31/smart-shirt-heart-rice-orig-mc.cnn-business”,”videoId”:”business/2021/08/31/smart-shirt-heart-rice-orig-mc.cnn-business”,”videoUrl”:”/videos/business/2021/08/31/smart-shirt-heart-rice-orig-mc.cnn-business/video/playlists/business-tech/”,”surrogateKey”:”video_2FDF7024-583A-74CF-8CE9-9DA56DB92AB1″},{“descriptionPlainText”:”This is how NOT to spell Moderna on an allegedly fake vaccination card. CNN’s Jeanne Moos reports on the “Maderna” misspelling fiasco.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210901212955-fake-moderna-id-moos-large-169.jpeg”,”title”:”Woman arrested for fake vaccine card. See how she was caught”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/09/02/vaccine-fake-card-hawaii-arrest-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/09/02/vaccine-fake-card-hawaii-arrest-moos-pkg-vpx.cnn”,”videoId”:”business/2021/09/02/vaccine-fake-card-hawaii-arrest-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/business/2021/09/02/vaccine-fake-card-hawaii-arrest-moos-pkg-vpx.cnn/video/playlists/business-tech/”,”surrogateKey”:”video_066B4E95-D532-D830-EA12-A41440692CA7″},{“descriptionPlainText”:”Days after recording a goodbye video, 20-year-old YouTube star Najma Sadeqi was killed in a terror attack outside Kabul’s international airport. CNN’s Jomana Karadsheh reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210830104050-01-najma-sadeqi-large-169.jpg”,”title”:”Afghan YouTuber’s final video: ‘Keep us in your prayers'”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/08/31/najma-sadeqi-youtube-afghanistan.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2021/08/31/najma-sadeqi-youtube-afghanistan.cnnbusiness”,”videoId”:”business/2021/08/31/najma-sadeqi-youtube-afghanistan.cnnbusiness”,”videoUrl”:”/videos/business/2021/08/31/najma-sadeqi-youtube-afghanistan.cnnbusiness/video/playlists/business-tech/”,”surrogateKey”:”video_75D5199F-3E51-C2D2-14E8-9D0AB56CA687″},{“descriptionPlainText”:”Virgin Hyperloop’s aerodynamic pods could transport riders up to 670 mph. While the technology has a long road ahead of it, this is what the hyperloop could look like.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210825112917-02-virgin-hyperloop-large-169.jpg”,”title”:”See what Virgin Hyperloop could look like in the future”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/08/25/virgin-hyperloop-first-look-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2021/08/25/virgin-hyperloop-first-look-orig.cnn-business”,”videoId”:”business/2021/08/25/virgin-hyperloop-first-look-orig.cnn-business”,”videoUrl”:”/videos/business/2021/08/25/virgin-hyperloop-first-look-orig.cnn-business/video/playlists/business-tech/”,”surrogateKey”:”video_12B97ABC-E076-A2B6-1B6C-7E7136E3E953″},{“descriptionPlainText”:”OnlyFans reversed its decision to ban sexually explicit content on the platform, after backlash from creators like Allie Rae who earn a living on the site.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210825131709-allie-rae-onlyfans-reversal-large-169.jpg”,”title”:”This former ICU nurse makes $200K a month on OnlyFans”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/08/25/onlyfans-ban.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/08/25/onlyfans-ban.cnn”,”videoId”:”business/2021/08/25/onlyfans-ban.cnn”,”videoUrl”:”/videos/business/2021/08/25/onlyfans-ban.cnn/video/playlists/business-tech/”,”surrogateKey”:”video_AD73533D-AE33-B9AD-45F8-7DEAF3144F83″},{“descriptionPlainText”:”CEO Elon Musk announced Tesla is working on a “friendly” humanoid robot. For now, he has a human in a robot suit.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210819234639-01-tesla-robot-large-169.jpg”,”title”:”Elon Musk says Tesla is building a humanoid robot”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/08/20/tesla-bot-humanoid-robot-lon-orig-na.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2021/08/20/tesla-bot-humanoid-robot-lon-orig-na.cnn-business”,”videoId”:”business/2021/08/20/tesla-bot-humanoid-robot-lon-orig-na.cnn-business”,”videoUrl”:”/videos/business/2021/08/20/tesla-bot-humanoid-robot-lon-orig-na.cnn-business/video/playlists/business-tech/”,”surrogateKey”:”video_0ADAE2FC-5FE1-5F18-8E82-646E599F149A”},{“descriptionPlainText”:”Boston Dynamics has had success in the past in showcasing its impressive lineup of robot capabilities in mobility. But before success comes failure.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210819123451-boston-dynamics-atlas-robot-on-the-ground-falling-large-169.jpg”,”title”:”Watch these humanoid robots fall flat on their faces “,”videoCMSUrl”:”/video/data/3.0/video/business/2021/08/19/boston-dynamics-robots-falling-down-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2021/08/19/boston-dynamics-robots-falling-down-orig.cnn-business”,”videoId”:”business/2021/08/19/boston-dynamics-robots-falling-down-orig.cnn-business”,”videoUrl”:”/videos/business/2021/08/19/boston-dynamics-robots-falling-down-orig.cnn-business/video/playlists/business-tech/”,”surrogateKey”:”video_B13B5C72-AE04-898C-E89E-5F42B85D2266″},{“descriptionPlainText”:”Samsung unveiled the Fold3 and Flip3 phones at its annual Unpacked event. The two foldable phones are cheaper and more durable than past models but can they overcome their predecessors’ lackluster sales and technical issues?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210811093344-embargoed-samsung-flip3-large-169.jpg”,”title”:”See Samsung’s new, cheaper foldable phones”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/08/11/samsung-fold3-flip3-unpacked-phones-orig-mc.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/08/11/samsung-fold3-flip3-unpacked-phones-orig-mc.cnn”,”videoId”:”business/2021/08/11/samsung-fold3-flip3-unpacked-phones-orig-mc.cnn”,”videoUrl”:”/videos/business/2021/08/11/samsung-fold3-flip3-unpacked-phones-orig-mc.cnn/video/playlists/business-tech/”,”surrogateKey”:”video_DCCFE0BD-70E7-EE4C-4AF7-35635A61CF64″},{“descriptionPlainText”:”Feeling like you missed out on crypto? You’re not alone. But don’t go all-in on “the next big thing” just yet. CNN’s Jon Sarlin explains how pump & dump schemes straight out of ”The Wolf of Wall Street” have returned with a vengeance.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210809123837-crypto-phone-large-169.jpg”,”title”:”Feeling crypto FOMO? Scammers are counting on it”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/08/02/pump-dump-js-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2021/08/02/pump-dump-js-orig.cnn-business”,”videoId”:”business/2021/08/02/pump-dump-js-orig.cnn-business”,”videoUrl”:”/videos/business/2021/08/02/pump-dump-js-orig.cnn-business/video/playlists/business-tech/”,”surrogateKey”:”video_679D35B4-E0C9-B22D-DB17-08F048E17C78″},{“descriptionPlainText”:”Future Lab at the Goodwood Festival of Speed showcases European vehicles at the cutting edge of innovation. CNN’s Anna Stewart gets a look at an e-cargo bike, a car that can swerve through traffic, and a flying automobile.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210805094507-triggo-marketplace-europe-large-169.jpg”,”title”:”This is what the future of mobility looks like”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/08/05/marketplace-europe-future-lab-mobility.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2021/08/05/marketplace-europe-future-lab-mobility.cnnbusiness”,”videoId”:”business/2021/08/05/marketplace-europe-future-lab-mobility.cnnbusiness”,”videoUrl”:”/videos/business/2021/08/05/marketplace-europe-future-lab-mobility.cnnbusiness/video/playlists/business-tech/”,”surrogateKey”:”video_998C9466-7CE8-DDB2-2C2F-161D4428474B”},{“descriptionPlainText”:”US Surgeon General Dr. Vivek Murthy says social media companies have taken positive steps against the sharing of health misinformation but that “it’s not enough” and responds to a Facebook official’s claim that the Biden administration is trying to scapegoat the company after failing to meet their July 4 vaccine goal.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210718095401-us-surgeon-general-dr-vivek-murphy-sotu-vpx-large-169.jpeg”,”title”:”Surgeon general issues warning about sharing health information on social media”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/07/18/surgeon-general-murthy-tech-companies-health-misinformation-facebook-bash-intv-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/07/18/surgeon-general-murthy-tech-companies-health-misinformation-facebook-bash-intv-sotu-vpx.cnn”,”videoId”:”business/2021/07/18/surgeon-general-murthy-tech-companies-health-misinformation-facebook-bash-intv-sotu-vpx.cnn”,”videoUrl”:”/videos/business/2021/07/18/surgeon-general-murthy-tech-companies-health-misinformation-facebook-bash-intv-sotu-vpx.cnn/video/playlists/business-tech/”,”surrogateKey”:”video_CFBF03A3-E585-A54E-5C68-B9CF8EC32A00″},{“descriptionPlainText”:”Former President Donald Trump filed proposed class-action lawsuits targeting Facebook and its CEO Mark Zuckerberg and Twitter and its CEO Jack Dorsey, as well as YouTube and its parent company’s CEO Sundar Pichai, after being removed from their platforms.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210707210539-cooper-trump-split-vpx-screengrab-large-169.jpg”,”title”:”Cooper: Ignoring Trump, as tempting as it may be, isn’t option”,”videoCMSUrl”:”/video/data/3.0/video/tech/2021/07/08/trump-zuckerberg-dorsey-lawsuit-kth-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/tech/2021/07/08/trump-zuckerberg-dorsey-lawsuit-kth-ac360-vpx.cnn”,”videoId”:”tech/2021/07/08/trump-zuckerberg-dorsey-lawsuit-kth-ac360-vpx.cnn”,”videoUrl”:”/videos/tech/2021/07/08/trump-zuckerberg-dorsey-lawsuit-kth-ac360-vpx.cnn/video/playlists/business-tech/”,”surrogateKey”:”video_F53F8D0F-D5A3-BBFB-64B2-83A02F58B593″},{“descriptionPlainText”:”Microsoft is urging Windows users to immediately install an update after security researchers found a serious vulnerability in the operating system.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210707081847-windows-software-stock-large-169.jpg”,”title”:”Microsoft urges Windows users to install update”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/07/07/microsoft-security-update.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/07/07/microsoft-security-update.cnn”,”videoId”:”business/2021/07/07/microsoft-security-update.cnn”,”videoUrl”:”/videos/business/2021/07/07/microsoft-security-update.cnn/video/playlists/business-tech/”,”surrogateKey”:”video_4F9C663D-398B-2CE1-E4BF-816B4968F161″},{“descriptionPlainText”:”Software vendor Kaseya says that between 800 and 1,500 businesses have been compromised by the recent ransomware attack. CNN’s Clare Sebastian reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210705120547-kaseya-file-large-169.jpg”,”title”:”Kaseya: The massive ransomware attack compromised up to 1,500 businesses “,”videoCMSUrl”:”/video/data/3.0/video/business/2021/07/06/kaseya-ransomware-attack-businesses-affected-vpx.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2021/07/06/kaseya-ransomware-attack-businesses-affected-vpx.cnnbusiness”,”videoId”:”business/2021/07/06/kaseya-ransomware-attack-businesses-affected-vpx.cnnbusiness”,”videoUrl”:”/videos/business/2021/07/06/kaseya-ransomware-attack-businesses-affected-vpx.cnnbusiness/video/playlists/business-tech/”,”surrogateKey”:”video_234D0C83-5903-6E41-E68F-7C054C5CCF3E”}],currentVideoCollectionId = ”,isLivePlayer = false,mediaMetadataCallbacks,mobilePinnedView = null,moveToNextTimeout,mutePlayerEnabled = false,nextVideoId = ”,nextVideoUrl = ”,turnOnFlashMessaging = false,videoPinner,videoEndSlateImpl;if (CNN.autoPlayVideoExist === false) {autoStartVideo = true;if (autoStartVideo === true) {if (turnOnFlashMessaging === true) {autoStartVideo = false;containerEl = jQuery(document.getElementById(configObj.markupId));CNN.VideoPlayer.showFlashSlate(containerEl);} else {CNN.autoPlayVideoExist = true;}}}configObj.autostart = CNN.Features.enableAutoplayBlock ? false : autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, isVideoReplayClicked, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId);var embedLinkHandler = {},videoPinner,embedCodeCopy;function onVideoCarouselItemClicked(evt) {‘use strict’;var videoId,articleElem,videoPlayer,thumbImageElem,thumbImageLargeSource,overrides = {autostart: false,muteOverlayClicked: true,videoCollection: this.videoCollection},shouldStartVideo = false,playerInstance;try {articleElem = jQuery(evt.currentTarget).find(‘article’);thumbImageElem = jQuery(articleElem).find(‘.media__image’);videoId = articleElem.data().videoId;if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘fave’) {playerInstance = FAVE.player.getInstance(configObj.markupId);if (CNN.Utils.existsObject(playerInstance) &&typeof playerInstance.getVideoData === ‘function’ &&playerInstance.getVideoData().id !== videoId) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();playerInstance.play(videoId, overrides);}} else {videoPlayer = CNNVIDEOAPI.CNNVideoManager.getInstance().getPlayerByContainer(configObj.markupId);if (videoPlayer && videoPlayer.videoInstance) {if (!videoPlayer.videoInstance.cvp) {if (typeof thumbImageElem !== ‘undefined’ && thumbImageElem !== null) {thumbImageLargeSource = thumbImageElem.data() && thumbImageElem.data().srcLarge ? thumbImageElem.data().srcLarge : ‘none’;}overrides.thumb = thumbImageLargeSource ? thumbImageLargeSource : ‘none’;shouldStartVideo = true;}if (videoPlayer.videoInstance.config) {if (videoPlayer.videoInstance.config.video !== videoId) {jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, videoId, overrides);}}}}} catch (error) {console.log(“error in initializing video player” + error);}}function setInitialVideoEmbed() {}function initialize(){var carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),owl;if (carousel) {carousel.find(‘.cn__column.carousel__content__item’).find(‘a’).removeAttr(‘href’);jQuery(carousel).on(‘click’, ‘.cn__column.carousel__content__item’, onVideoCarouselItemClicked);}}if (CNN.VideoPlayer.getLibraryName(configObj.markupId) === ‘videoLoader’) {window.CNNVideoAPILoadCompleteHandlers = window.CNNVideoAPILoadCompleteHandlers ? window.CNNVideoAPILoadCompleteHandlers : [];window.CNNVideoAPILoadCompleteHandlers.push(initialize);window.CNNVideoAPILoadCompleteHandlers.push(setInitialVideoEmbed);} else {initialize();}CNN.INJECTOR.executeFeature(‘videx’).done(function () {var initMeta = {id:”tech/2021/09/09/roomba-irobot-vacuum-cleaner-ai-avoids-pet-poop-moos-pkg-vpx.cnn”, isEmbeddable: “yes”};CNN.Videx.EmbedButton.updateCode(initMeta);}).fail(function () {throw ‘Unable to fetch the videx bundle.’;});function updateCurrentlyPlaying(videoId) {var videoCollectionId = ‘current_video_collection’,videocardContents = getCurrentVideoCardContents(videoId),carousel = jQuery(document.getElementById(‘cn-current_video_collection’)).find(‘.js-owl-carousel’),domain = CNN.Host.domain || (document.location.protocol + ‘//’ + document.location.hostname),owl,$owlFirstItem,$owlPrevItem,showDetailsSpanContent = ”,gigyaShareElement,showIndex,whatsappShareElement,$carouselContentItems = jQuery(‘.carousel__content__item’, document.getElementById(‘cn-current_video_collection’));gigyaShareElement = jQuery(‘div.js-gigya-sharebar’);if (typeof gigyaShareElement !== ‘undefined’ && CNN.Utils.existsObject(videocardContents)) {jQuery(gigyaShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(gigyaShareElement).attr(‘data-description’, videocardContents.descriptionPlainText || ”);jQuery(gigyaShareElement).attr(‘data-link’, domain + videocardContents.url || ”);jQuery(gigyaShareElement).attr(‘data-image-src’, (videocardContents.media && videocardContents.media.elementContents && videocardContents.media.elementContents.imageUrl) || ”);}whatsappShareElement = jQuery(‘div.share-bar-whatsapp-container’);if (typeof whatsappShareElement !== ‘undefined’) {jQuery(whatsappShareElement).attr(‘data-title’, videocardContents.headlinePlainText || ”);jQuery(whatsappShareElement).attr(‘data-storyurl’, domain + videocardContents.url || ”);}if (carousel && currentVideoCollectionContainsId(videoId)) {owl = carousel.data(‘owl.carousel’) || {};showIndex = getCurrentVideoIndex(videoId);if (typeof owl.to === ‘function’) {owl.to(showIndex);}$owlPrevItem = CNN.Utils.exists(owl.$element) ? owl.$element.find(‘.cd.cd–active’) : $carouselContentItems.find(‘.cd.cd–active’);$owlPrevItem.removeClass(‘cd–active’);$owlPrevItem.find(‘.media__over-text’).remove();$owlPrevItem.find(‘.media__icon’).show();$owlFirstItem = CNN.Utils.exists(owl._items) ? jQuery(owl._items[showIndex]) : $carouselContentItems.eq(showIndex);$owlFirstItem.find(‘.cd’).addClass(‘cd–active’);$owlFirstItem.find(‘.media a:first-child’).append(‘

Now Playing

‘);if (Modernizr && !Modernizr.phone) {$owlFirstItem.find(‘.media__icon’).hide();}}CNN.Videx.Metadata.init({dateCreated: videocardContents.dateCreated,descriptionText: videocardContents.descriptionText,duration: videocardContents.duration,sourceLink: videocardContents.sourceLink,sourceName: videocardContents.sourceName,title: videocardContents.headlineText},{videoCollectionDivId: ‘cn-17jg9uu’,videoDescriptionDivId: ‘js-video_description-17jg9uu’,videoDurationDivId: ‘js-video_duration-17jg9uu’,videoTitleDivId: ‘js-leaf-video_headline-17jg9uu’,videoSourceDivId: ‘js-video_sourceName-17jg9uu’});if (CNN.Utils.exists(videocardContents.showName)) {if (CNN.Utils.exists(videocardContents.showUrl)) {showDetailsSpanContent = ‘
‘ + videocardContents.showName + ‘ | ‘;} else {showDetailsSpanContent = videocardContents.showName + ‘ | ‘;}}fastdom.measure(function getShowInfo() {var $show = jQuery(‘.metadata__show’),$isShowDetailsSpanExists = $show.find(‘span’).hasClass(‘metadata–show__name’),$showName = jQuery(‘.metadata–show__name’);fastdom.mutate(function updateShowInfo() {if (!$isShowDetailsSpanExists) {$show.prepend(‘

Leave a Reply

Your email address will not be published. Required fields are marked *