/New glasses use old tech to shape the future – CNN

New glasses use old tech to shape the future – CNN


‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘business/2021/01/12/focus-dial-eyeglasses-moos-pkg-vpx.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘const-video-leaf’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210111203506-voy-eyeglasses-moos-pkg-vpx-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210111203506-voy-eyeglasses-moos-pkg-vpx-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210111203506-voy-eyeglasses-moos-pkg-vpx-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210111203506-voy-eyeglasses-moos-pkg-vpx-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210111203506-voy-eyeglasses-moos-pkg-vpx-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210111203506-voy-eyeglasses-moos-pkg-vpx-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210111203506-voy-eyeglasses-moos-pkg-vpx-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Who needs reading glasses when you can tune your glasses? CNN’s Jeanne Moos reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210111203506-voy-eyeglasses-moos-pkg-vpx-large-169.jpg”,”title”:”New glasses use old tech to shape the future”,”videoCMSUrl”:”/video/data/3.0/video/business/2021/01/12/focus-dial-eyeglasses-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/01/12/focus-dial-eyeglasses-moos-pkg-vpx.cnn”,”videoId”:”business/2021/01/12/focus-dial-eyeglasses-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/business/2021/01/12/focus-dial-eyeglasses-moos-pkg-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_55E171CD-161C-73E9-7244-F4253CE821D1″},{“descriptionPlainText”:”Joy Behar disses Meghan McCain in a can’t-miss moment on “The View.” CNN’s Jeanne Moos reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210105192144-mccain-behar-split-the-view-jan-5-large-169.jpg”,”title”:”‘I did not miss you’: Behar and McCain resume feud on ‘The View'”,”videoCMSUrl”:”/video/data/3.0/video/media/2021/01/06/joy-behar-vs-meghan-mccain-the-view-moos-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2021/01/06/joy-behar-vs-meghan-mccain-the-view-moos-vpx.cnn”,”videoId”:”media/2021/01/06/joy-behar-vs-meghan-mccain-the-view-moos-vpx.cnn”,”videoUrl”:”/videos/media/2021/01/06/joy-behar-vs-meghan-mccain-the-view-moos-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_55E171CD-161C-73E9-7244-F4253CE821D1″},{“descriptionPlainText”:”Why did the empty iPhone box start trending? CNN’s Jeanne Moos reports on what owners are putting in them.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210104202412-iphone-box-empty-moos-pkg-vpx-large-169.jpg”,”title”:”Internet gets creative with empty iPhone boxes “,”videoCMSUrl”:”/video/data/3.0/video/business/2021/01/05/iphone-box-uses-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2021/01/05/iphone-box-uses-moos-pkg-vpx.cnn”,”videoId”:”business/2021/01/05/iphone-box-uses-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/business/2021/01/05/iphone-box-uses-moos-pkg-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_836F9A45-1C7A-8380-20B3-D5060401F5D3″},{“descriptionPlainText”:”The internet swoons over Boston Dynamics’ robots that dance better than most of us do. CNN’s Jeanne Moos reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201230190001-boston-dynamics-dancing-robots-do-you-love-me-contours-moos-pkg-ebof-vpx-00001501-large-169.jpg”,”title”:”These robots can boogie down better than most humans”,”videoCMSUrl”:”/video/data/3.0/video/tech/2020/12/30/boston-dynamics-dancing-robots-do-you-love-me-contours-moos-pkg-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/tech/2020/12/30/boston-dynamics-dancing-robots-do-you-love-me-contours-moos-pkg-ebof-vpx.cnn”,”videoId”:”tech/2020/12/30/boston-dynamics-dancing-robots-do-you-love-me-contours-moos-pkg-ebof-vpx.cnn”,”videoUrl”:”/videos/tech/2020/12/30/boston-dynamics-dancing-robots-do-you-love-me-contours-moos-pkg-ebof-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_B38D425C-A68A-EBB4-E4A9-D006F319165D”},{“descriptionPlainText”:””Vaxxies” are the new selfies…taken with a needle in your arm. CNN’s Jeanne Moos reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201229195304-jeanne-moos-vaxxies-1-large-169.jpg”,”title”:”Move over selfies, ‘vaxxies’ are all the rage”,”videoCMSUrl”:”/video/data/3.0/video/health/2020/12/30/coronavirus-vaxxies-are-the-new-selfies-moos-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2020/12/30/coronavirus-vaxxies-are-the-new-selfies-moos-vpx.cnn”,”videoId”:”health/2020/12/30/coronavirus-vaxxies-are-the-new-selfies-moos-vpx.cnn”,”videoUrl”:”/videos/health/2020/12/30/coronavirus-vaxxies-are-the-new-selfies-moos-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_964864BD-77AF-4544-8966-B60946E801A9″},{“descriptionPlainText”:”From bacon-scented face masks to a parrot parroting Beyonce, CNN’s Jeanne Moos recaps the oddball moments of 2020.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201020193441-theo-benny-toddler-skeleton-moos-large-169.jpg”,”title”:”2020 was a dark year. These moments made it a bit brighter “,”videoCMSUrl”:”/video/data/3.0/video/business/2020/12/20/oddball-moments-2020-year-ender-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/12/20/oddball-moments-2020-year-ender-moos-pkg-vpx.cnn”,”videoId”:”business/2020/12/20/oddball-moments-2020-year-ender-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/business/2020/12/20/oddball-moments-2020-year-ender-moos-pkg-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_19CB4BDF-6465-F110-2E4C-B1159EC5AD32″},{“descriptionPlainText”:”An iPhone falls from a plane with the video rolling and survives to tell the tale. CNN’s Jeanne Moos reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201217200914-iphone-plane-fall-moos-pkg-vpx-large-169.jpg”,”title”:”Man’s phone fumble takes ‘dropped call’ to another level”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/12/18/iphone-plane-fall-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/12/18/iphone-plane-fall-moos-pkg-vpx.cnn”,”videoId”:”business/2020/12/18/iphone-plane-fall-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/business/2020/12/18/iphone-plane-fall-moos-pkg-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_F42F8389-ED1C-AAB8-47D5-825C58EC0C30″},{“descriptionPlainText”:”Now you can wear a stranger’s face. Jeanne Moos reports on a “creepy” mask mesmerizing the internet.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201216203940-jeanne-moos-mask-vpx-large-169.jpg”,”title”:”Internet freaked out by this ‘creepy’ lifelike face mask”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/12/17/japan-mask-shop-jeanne-moos-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/12/17/japan-mask-shop-jeanne-moos-vpx.cnn”,”videoId”:”business/2020/12/17/japan-mask-shop-jeanne-moos-vpx.cnn”,”videoUrl”:”/videos/business/2020/12/17/japan-mask-shop-jeanne-moos-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_4E6C9E0C-8DC9-8EFA-475E-73601D558942″},{“descriptionPlainText”:”Nigella Lawson whips up the internet with her pronunciation of “microwave.” CNN’s Jeanne Moos waves goodbye to the old word.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201211102656-nigella-lawson-microwave-split-large-169.jpg”,”title”:”Nigella Lawson whips the internet into a frenzy. Again.”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/12/11/nigella-lawson-microwave-pronunciation-moos-pkg-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/12/11/nigella-lawson-microwave-pronunciation-moos-pkg-ebof-vpx.cnn”,”videoId”:”world/2020/12/11/nigella-lawson-microwave-pronunciation-moos-pkg-ebof-vpx.cnn”,”videoUrl”:”/videos/world/2020/12/11/nigella-lawson-microwave-pronunciation-moos-pkg-ebof-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_024272C2-F13E-C897-62D2-70625CE9124E”},{“descriptionPlainText”:”Internet users roast the steamy KFC movie starring Mario Lopez as Col. Sanders. CNN’s Jeanne Moos reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201207175543-mario-lopez-kfc-movie-moos-vpx-large-169.jpg”,”title”:”Mario Lopez stars as KFC’s Col. Sanders in steamy movie”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/12/08/mario-lopez-kfc-romance-movie-jeanne-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/12/08/mario-lopez-kfc-romance-movie-jeanne-moos-pkg-vpx.cnn”,”videoId”:”business/2020/12/08/mario-lopez-kfc-romance-movie-jeanne-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/business/2020/12/08/mario-lopez-kfc-romance-movie-jeanne-moos-pkg-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_7E6912D8-B5CF-8FAE-15C0-4FA30EA5BDAA”},{“descriptionPlainText”:”Internet falls for Satan meeting his match on dating website. CNN’s Jeanne Moos reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201204113040-screengrab-satan-2020-date-moos2-large-169.jpg”,”title”:”Internet falls for ‘love story’ between Satan and 2020 “,”videoCMSUrl”:”/video/data/3.0/video/business/2020/12/04/satan-hot-date-2020-ryan-reynolds-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/12/04/satan-hot-date-2020-ryan-reynolds-moos-pkg-vpx.cnn”,”videoId”:”business/2020/12/04/satan-hot-date-2020-ryan-reynolds-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/business/2020/12/04/satan-hot-date-2020-ryan-reynolds-moos-pkg-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_8D5A1677-3D54-F51C-48B1-3FFABF63F67E”},{“descriptionPlainText”:””Schitt’s Creek” actress recreates “Home Alone” scene leaving some fans stunned. Jeanne Moos reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201201210203-catherine-o-hara-home-alone-large-169.jpg”,”title”:”‘Schitt’s Creek’ actress recreates famous movie scene “,”videoCMSUrl”:”/video/data/3.0/video/entertainment/2020/12/02/schitts-creek-home-alone-catherine-ohara-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/entertainment/2020/12/02/schitts-creek-home-alone-catherine-ohara-moos-pkg-vpx.cnn”,”videoId”:”entertainment/2020/12/02/schitts-creek-home-alone-catherine-ohara-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/entertainment/2020/12/02/schitts-creek-home-alone-catherine-ohara-moos-pkg-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_600A5BDF-0125-CB92-D992-2BA5FD132D5A”},{“descriptionPlainText”:”A “little, crappy half-dead” plant is transformed into a MONSTER poinsettia. CNN’s Jeanne Moos turns over a new and bigger leaf.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201130204937-giant-poinsettia-large-169.jpg”,”title”:”‘Little, crappy’ poinsettia grows into monster plant”,”videoCMSUrl”:”/video/data/3.0/video/us/2020/12/01/giant-poinsettia-jeanne-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2020/12/01/giant-poinsettia-jeanne-moos-pkg-vpx.cnn”,”videoId”:”us/2020/12/01/giant-poinsettia-jeanne-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/us/2020/12/01/giant-poinsettia-jeanne-moos-pkg-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_985EAEFF-5AED-885E-F69C-211D2CF50D89″},{“descriptionPlainText”:”A man-sized version of New York’s infamous pizza rat went massively viral. Now the identity of “Pizza Rat Man,” formally known as “Buddy the Rat,” has been revealed. CNN’s Jeanne Moos has both the tale and the tail.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201119203435-pizza-rat-man-nyc-moos-pkg-large-169.jpg”,”title”:”‘Pizza Rat Man’ goes viral. Now you can meet him”,”videoCMSUrl”:”/video/data/3.0/video/us/2020/11/20/pizza-rat-man-nyc-moos-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2020/11/20/pizza-rat-man-nyc-moos-pkg-vpx.cnn”,”videoId”:”us/2020/11/20/pizza-rat-man-nyc-moos-pkg-vpx.cnn”,”videoUrl”:”/videos/us/2020/11/20/pizza-rat-man-nyc-moos-pkg-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_821B213B-1F7A-8204-38D5-1BEE48497E60″},{“descriptionPlainText”:”Chef Nigella Lawson shows the world how to really make toast. Thought you already knew? Think twice. CNN’s Jeanne Moos explores double-buttered toast.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201118200726-nigella-lawson-butters-toast-twice-culinary-controversy-moos-pkg-ebof-vpx-00000421-large-169.jpg”,”title”:”TV chef sparks culinary controversy over toast”,”videoCMSUrl”:”/video/data/3.0/video/foodanddrink/2020/11/18/nigella-lawson-butters-toast-twice-culinary-controversy-moos-pkg-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/foodanddrink/2020/11/18/nigella-lawson-butters-toast-twice-culinary-controversy-moos-pkg-ebof-vpx.cnn”,”videoId”:”foodanddrink/2020/11/18/nigella-lawson-butters-toast-twice-culinary-controversy-moos-pkg-ebof-vpx.cnn”,”videoUrl”:”/videos/foodanddrink/2020/11/18/nigella-lawson-butters-toast-twice-culinary-controversy-moos-pkg-ebof-vpx.cnn/video/playlists/wacky-world-of-jeanne-moos/”,”surrogateKey”:”video_3F89E661-0434-E90A-E4E9-E3430A2FE8F4″}],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:”business/2021/01/12/focus-dial-eyeglasses-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-5yjlh’,videoDescriptionDivId: ‘js-video_description-5yjlh’,videoDurationDivId: ‘js-video_duration-5yjlh’,videoTitleDivId: ‘js-leaf-video_headline-5yjlh’,videoSourceDivId: ‘js-video_sourceName-5yjlh’});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(‘

Original Source