Here's how Kelly Ripa helps Anderson to not cry during CNN Heroes

0
15

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘us/2019/12/06/anderson-cooper-kelly-ripa-cnn-heroes-sot-acfc-vpx.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnn.com_us_heroes_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191206171447-anderson-cooper-kelly-ripa-split-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191206171447-anderson-cooper-kelly-ripa-split-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191206171447-anderson-cooper-kelly-ripa-split-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191206171447-anderson-cooper-kelly-ripa-split-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191206171447-anderson-cooper-kelly-ripa-split-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191206171447-anderson-cooper-kelly-ripa-split-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/191206171447-anderson-cooper-kelly-ripa-split-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:””Live with Kelly and Ryan” co-host Kelly Ripa shares how she helps Anderson Cooper deal with emotional moments during CNN Heroes. Watch “CNN Heroes: An All-Star Tribute,” hosted by Anderson Cooper and Kelly Ripa live on Sunday, December 8 starting at 8 p.m. ET.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191206171447-anderson-cooper-kelly-ripa-split-large-169.jpg”,”title”:”Here’s how Kelly Ripa helps Anderson to not cry during CNN Heroes”,”videoCMSUrl”:”/videos/us/2019/12/06/anderson-cooper-kelly-ripa-cnn-heroes-sot-acfc-vpx.cnn”,”videoLeafUrl”:”/videos/us/2019/12/06/anderson-cooper-kelly-ripa-cnn-heroes-sot-acfc-vpx.cnn”,”videoId”:”us/2019/12/06/anderson-cooper-kelly-ripa-cnn-heroes-sot-acfc-vpx.cnn”,”videoUrl”:”/videos/us/2019/12/06/anderson-cooper-kelly-ripa-cnn-heroes-sot-acfc-vpx.cnn”,”surrogateKey”:”video_AA20DEC8-70AC-8F75-0E7E-DD32C2884B1C”},{“descriptionPlainText”:”French police have launched an investigation after Nazi swastikas and anti-Semitic graffiti were spray painted on 107 graves in a Jewish cemetery near Strasbourg. CNN’s Matthew Chance reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191204123500-jewish-cemetery-large-169.jpg”,”title”:”More than 100 graves defaced in Jewish cemetery in France”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/12/05/anti-semitism-france-jewish-cemetery-graves-defaced-nazi-swastikas-chance-pkg-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/12/05/anti-semitism-france-jewish-cemetery-graves-defaced-nazi-swastikas-chance-pkg-intl-ldn-vpx.cnn”,”videoId”:”world/2019/12/05/anti-semitism-france-jewish-cemetery-graves-defaced-nazi-swastikas-chance-pkg-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2019/12/05/anti-semitism-france-jewish-cemetery-graves-defaced-nazi-swastikas-chance-pkg-intl-ldn-vpx.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_A5245DB5-93A8-F87E-D3F4-D6701014BBCA”},{“descriptionPlainText”:”Veronika Didusenko won the 2018 Miss Ukraine contest, but was later disqualified because of a rule that prohibits participants from ever being married or having children.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191204144404-veronika-didusenko-miss-ukraine-2018-large-169.jpg”,”title”:”Pageant queen stripped of her title because she’s a mother”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/12/04/miss-world-ukraine-mother-orig-jk.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/12/04/miss-world-ukraine-mother-orig-jk.cnn”,”videoId”:”world/2019/12/04/miss-world-ukraine-mother-orig-jk.cnn”,”videoUrl”:”/videos/world/2019/12/04/miss-world-ukraine-mother-orig-jk.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_D9C4555B-FC36-E129-A322-D2BC235FBCC6″},{“descriptionPlainText”:”YouTube launched its 11th annual Rewind, featuring the top videos of 2019 in different categories.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191204181240-youtube-best-2019-large-169.jpg”,”title”:”Relive your favorite YouTube Moments of 2019″,”videoCMSUrl”:”/video/data/3.0/video/world/2019/12/04/top-youtube-videos-of-2019-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/12/04/top-youtube-videos-of-2019-orig.cnn”,”videoId”:”world/2019/12/04/top-youtube-videos-of-2019-orig.cnn”,”videoUrl”:”/videos/world/2019/12/04/top-youtube-videos-of-2019-orig.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_602BE8A9-42EF-862E-922E-D32AE57D014E”},{“descriptionPlainText”:”Celebrities, models and style icons braved a cold night in London to celebrate the year in fashion.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191203142432-british-fashion-awards-4-large-169.jpg”,”title”:”The best moments from the 2019 British Fashion Awards”,”videoCMSUrl”:”/video/data/3.0/video/fashion/2019/12/03/british-fashion-awards-2019-style-lon-orig-ejk.cnn/index.xml”,”videoLeafUrl”:”/videos/fashion/2019/12/03/british-fashion-awards-2019-style-lon-orig-ejk.cnn”,”videoId”:”fashion/2019/12/03/british-fashion-awards-2019-style-lon-orig-ejk.cnn”,”videoUrl”:”/videos/fashion/2019/12/03/british-fashion-awards-2019-style-lon-orig-ejk.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_824C95EE-0D20-6E71-8D18-CC1C2F74A79C”},{“descriptionPlainText”:”Hong Kong has been rocked by pro-democracy, anti-government demonstrations for months, with escalating anger and violence on all sides. CNN takes a look at how the protests evolved over the course of the year.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/190609082546-03-hong-kong-extradition-protest-large-169.jpg”,”title”:”The evolution of the Hong Kong protests”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/11/22/hong-kong-china-protests-timeline-lon-orig-bks.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/11/22/hong-kong-china-protests-timeline-lon-orig-bks.cnn”,”videoId”:”world/2019/11/22/hong-kong-china-protests-timeline-lon-orig-bks.cnn”,”videoUrl”:”/videos/world/2019/11/22/hong-kong-china-protests-timeline-lon-orig-bks.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_7D430023-C2CB-47B6-C353-93CBBCE00EF9″},{“descriptionPlainText”:”Dubai Camel Hospital is the world’s foremost camel treatment and research facility. It caters for the UAE’s booming racing, beauty and dairy camel populations.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191129163256-dubai-camel-hospital-2-large-169.jpg”,”title”:”Inside Dubai’s $10 million camel hospital”,”videoCMSUrl”:”/video/data/3.0/video/travel/2019/11/29/dubai-camel-hospital-global-gateway-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/travel/2019/11/29/dubai-camel-hospital-global-gateway-lon-orig.cnn”,”videoId”:”travel/2019/11/29/dubai-camel-hospital-global-gateway-lon-orig.cnn”,”videoUrl”:”/videos/travel/2019/11/29/dubai-camel-hospital-global-gateway-lon-orig.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_8BE5B976-DBC3-AA70-6D2E-B798DB8BCA96″},{“descriptionPlainText”:”Take a 60 second vacation in Nepal where the stunning Himalayan mountain range is a huge draw for adventure tourists.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160224161200-60-nepal-thumb-large-169.jpg”,”title”:”Experience Nepal’s Himalayan wonders”,”videoCMSUrl”:”/video/data/3.0/video/travel/2016/02/24/travel-nepal-60-second-vacation-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/travel/2016/02/24/travel-nepal-60-second-vacation-orig.cnn”,”videoId”:”travel/2016/02/24/travel-nepal-60-second-vacation-orig.cnn”,”videoUrl”:”/videos/travel/2016/02/24/travel-nepal-60-second-vacation-orig.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_7D25486E-EAB8-9AFF-6D01-13ED18104B73″},{“descriptionPlainText”:”This journalist became the story itself as a female pig started chasing him during his live report.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191127105435-01-pig-chases-greek-reporter-grab-large-169.jpg”,”title”:”A pig crashed this journalist’s live report”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/11/27/reporter-chased-by-pig-greece-lon-orig-na.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/11/27/reporter-chased-by-pig-greece-lon-orig-na.cnn”,”videoId”:”world/2019/11/27/reporter-chased-by-pig-greece-lon-orig-na.cnn”,”videoUrl”:”/videos/world/2019/11/27/reporter-chased-by-pig-greece-lon-orig-na.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_AD29DAB7-FF86-E638-7168-AD88216282B7″},{“descriptionPlainText”:”Renovations at Montclair State University in New Jersey helped uncover a 112-year-old letter from workers who built one of the original buildings on campus.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191129154658-message-in-a-bottle-jersey-large-169.jpg”,”title”:”112-year-old message in a beer bottle found in New Jersey”,”videoCMSUrl”:”/video/data/3.0/video/us/2019/11/29/message-in-beer-bottle-new-jersey-orig-acl.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2019/11/29/message-in-beer-bottle-new-jersey-orig-acl.cnn”,”videoId”:”us/2019/11/29/message-in-beer-bottle-new-jersey-orig-acl.cnn”,”videoUrl”:”/videos/us/2019/11/29/message-in-beer-bottle-new-jersey-orig-acl.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_A311EF38-9910-2724-E298-B8E745F60D70″},{“descriptionPlainText”:”Just like commercial branding, a bold color and striking logo make recognizing a political party much easier. We take a look at the origins of the colors and symbols used by the UK’s main political parties.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191127125802-uk-politics-color-branding-restricted-large-169.jpg”,”title”:”The history of colors in British politics”,”videoCMSUrl”:”/video/data/3.0/video/design/2019/11/27/history-of-colors-in-british-politics-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/design/2019/11/27/history-of-colors-in-british-politics-lon-orig.cnn”,”videoId”:”design/2019/11/27/history-of-colors-in-british-politics-lon-orig.cnn”,”videoUrl”:”/videos/design/2019/11/27/history-of-colors-in-british-politics-lon-orig.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_2A793C94-A5F0-D972-783C-AD6343923093″},{“descriptionPlainText”:”A pedophile priest was sent to work for an aid organization helping vulnerable families in an African country.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191120203234-confrontation-2-large-169.jpg”,”title”:”CNN reveals new accusations against pedophile priest”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/11/20/catholic-predator-priest-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/11/20/catholic-predator-priest-lon-orig.cnn”,”videoId”:”world/2019/11/20/catholic-predator-priest-lon-orig.cnn”,”videoUrl”:”/videos/world/2019/11/20/catholic-predator-priest-lon-orig.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_49519B09-3D1F-5A63-A78B-8AB7A0E3E993″},{“descriptionPlainText”:”The Macy’s Thanksgiving Day Parade has had its fair share of mishaps. Mostly it’s punctured balloons causing all sorts of issues.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191125183451-macys-thanksgiving-day-parade-mishaps-large-169.jpg”,”title”:”Remember the moments when Thanksgiving parade balloons popped”,”videoCMSUrl”:”/video/data/3.0/video/us/2019/11/25/macys-thanksgiving-day-parade-balloons-mishaps-orig-jk.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2019/11/25/macys-thanksgiving-day-parade-balloons-mishaps-orig-jk.cnn”,”videoId”:”us/2019/11/25/macys-thanksgiving-day-parade-balloons-mishaps-orig-jk.cnn”,”videoUrl”:”/videos/us/2019/11/25/macys-thanksgiving-day-parade-balloons-mishaps-orig-jk.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_7C0CDF8D-8DEA-F5B8-CD5E-A4E2D29750FB”},{“descriptionPlainText”:”Nearly 200,000 people have been displaced by Turkey’s offensive. CNN’s Clarissa Ward speaks to families who have lost their homes and belongings in Syria.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191126135445-syria-displaced-kurdish-people-ward-pkg-vpx-00015313-large-169.jpg”,”title”:” Nearly 200,000 displaced by Turkey’s offensive “,”videoCMSUrl”:”/video/data/3.0/video/world/2019/11/26/syria-displaced-kurdish-people-ward-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/11/26/syria-displaced-kurdish-people-ward-pkg-vpx.cnn”,”videoId”:”world/2019/11/26/syria-displaced-kurdish-people-ward-pkg-vpx.cnn”,”videoUrl”:”/videos/world/2019/11/26/syria-displaced-kurdish-people-ward-pkg-vpx.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_A4CC56FF-3F9F-F182-FC1A-A9081CF02FFB”},{“descriptionPlainText”:”The NHS is again front and center of the UK’s election campaign. CNN’s Scott McLean speaks to a top Labour politician and asks experts whether there’s any truth to Trump’s promise to “end global freeloading” and reduce the cost of drugs to Americans.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191118170014-corbyn-johnson-split-large-169.jpg”,”title”:”Why Britain’s National Health Service is key in election”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/11/22/uk-election-boris-johnson-jeremy-corbyn-nhs-for-sale-mclean-pkg-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/11/22/uk-election-boris-johnson-jeremy-corbyn-nhs-for-sale-mclean-pkg-intl-ldn-vpx.cnn”,”videoId”:”world/2019/11/22/uk-election-boris-johnson-jeremy-corbyn-nhs-for-sale-mclean-pkg-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2019/11/22/uk-election-boris-johnson-jeremy-corbyn-nhs-for-sale-mclean-pkg-intl-ldn-vpx.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_99DBA858-C634-23E0-965E-938A52D16252″},{“descriptionPlainText”:”Footage shows dozens of young elephants taken from Zimbabwe’s Hwange National Park and locked in metal cages to fill amusement parks and zoos in China. CNN’s David McKenzie reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/191122152427-young-elephant-china-zimbabwe-cnn-exclusive-large-169.jpg”,”title”:”Exclusive: Footage shows wild elephants locked in cages”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/11/23/young-elephants-trade-cages-china-zimbabwe-hwange-mckenzie-pkg-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/11/23/young-elephants-trade-cages-china-zimbabwe-hwange-mckenzie-pkg-intl-ldn-vpx.cnn”,”videoId”:”world/2019/11/23/young-elephants-trade-cages-china-zimbabwe-hwange-mckenzie-pkg-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2019/11/23/young-elephants-trade-cages-china-zimbabwe-hwange-mckenzie-pkg-intl-ldn-vpx.cnn/video/playlists/intl-stories-worth-watching/”,”surrogateKey”:”video_5F8B224C-7ECC-734E-95B4-9800CE8D7EDC”}],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:”us/2019/12/06/anderson-cooper-kelly-ripa-cnn-heroes-sot-acfc-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-kyoee3’,videoDescriptionDivId: ‘js-video_description-kyoee3’,videoDurationDivId: ‘js-video_duration-kyoee3’,videoTitleDivId: ‘js-leaf-video_headline-kyoee3’,videoSourceDivId: ‘js-video_sourceName-kyoee3’});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(‘

Source link

LEAVE A REPLY