Adviser to 4 presidents says Biden and Trump shouldn’t run

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘politics/2022/05/11/biden-trump-older-political-leaders-david-gergen-newday-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/220211190030-biden-trump-split-2021-small-169.jpg”,”height”:124},”xsmall”:{“width”:300,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220211190030-biden-trump-split-2021-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220211190030-biden-trump-split-2021-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220211190030-biden-trump-split-2021-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220211190030-biden-trump-split-2021-super-169.jpg”,”height”:619},”full16x9″:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220211190030-biden-trump-split-2021-full-169.jpg”,”height”:259},”mini1x1″:{“width”:100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/220211190030-biden-trump-split-2021-small-11.jpg”,”height”:100}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”CNN senior political analyst David Gergen explains why he thinks President Biden and former President Trump shouldn’t run for the presidency due to their age.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220211190030-biden-trump-split-2021-large-169.jpg”,”title”:”Adviser to 4 presidents says Biden and Trump shouldn’t run again”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/11/biden-trump-older-political-leaders-david-gergen-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/11/biden-trump-older-political-leaders-david-gergen-newday-vpx.cnn”,”videoId”:”politics/2022/05/11/biden-trump-older-political-leaders-david-gergen-newday-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/11/biden-trump-older-political-leaders-david-gergen-newday-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_210FDF1C-87FF-E20E-676D-B336F37EA0BD”},{“descriptionPlainText”:”Former President Donald Trump’s preferred candidates had mixed success in Republican primaries in West Virginia and Nebraska. CNN’s Harry Enten examines how effective his endorsements have been this political season.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220509145415-trump-0507-large-169.jpg”,”title”:”How effective are Trump’s endorsements?”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/11/trump-endorsement-analysis-enten-sot-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/11/trump-endorsement-analysis-enten-sot-newday-vpx.cnn”,”videoId”:”politics/2022/05/11/trump-endorsement-analysis-enten-sot-newday-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/11/trump-endorsement-analysis-enten-sot-newday-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_7A1EBB42-E741-E9DD-05EF-B34160240BD4″},{“descriptionPlainText”:”CNN’s Jeffery Toobin looks at how Justice Clarence Thomas’ gained more power on the Supreme Court.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220324144627-03-clarence-thomas-2021-large-169.jpg”,”title”:”Toobin identifies 4 issues Clarence Thomas could change next”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/11/clarence-thomas-roe-v-wade-supreme-court-toobin-nd-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/11/clarence-thomas-roe-v-wade-supreme-court-toobin-nd-vpx.cnn”,”videoId”:”politics/2022/05/11/clarence-thomas-roe-v-wade-supreme-court-toobin-nd-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/11/clarence-thomas-roe-v-wade-supreme-court-toobin-nd-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_210FDF1C-87FF-E20E-676D-B336F37EA0BD”},{“descriptionPlainText”:”New York Times reporters and CNN political analysts Alex Burns and Jonathan Martin join CNN’s Anderson Cooper to discuss new audio of Senator Lindsey Graham (R-SC) talking about his personal beliefs involving former President Trump and his behavior during the January 6 attack.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210802175053-02-lindsey-graham-0730-large-169.jpg”,”title”:”Audio of Sen. Lindsey Graham: Pres. Biden ‘best person to have’ after January 6 “,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/11/senator-lindsey-graham-new-york-times-audio-january-6-attack-sot-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/11/senator-lindsey-graham-new-york-times-audio-january-6-attack-sot-ac360-vpx.cnn”,”videoId”:”politics/2022/05/11/senator-lindsey-graham-new-york-times-audio-january-6-attack-sot-ac360-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/11/senator-lindsey-graham-new-york-times-audio-january-6-attack-sot-ac360-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_658687F1-AA5C-1DF6-CFF8-B34840CA80CF”},{“descriptionPlainText”:”CNN projects Trump-backed Alex Mooney will win the GOP primary in West Virginia’s 2nd District. John King says this is more evidence that Donald Trump will not be going away.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220509145415-trump-0507-large-169.jpg”,”title”:”King: This is why we have to cover Donald Trump”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/11/west-virginia-projection-trump-king-ctn-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/11/west-virginia-projection-trump-king-ctn-sot-vpx.cnn”,”videoId”:”politics/2022/05/11/west-virginia-projection-trump-king-ctn-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/11/west-virginia-projection-trump-king-ctn-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_4CEF6444-4EBA-9DF8-41E5-B2DE9033F236″},{“descriptionPlainText”:”Some Republicans are plotting to launch an impeachment against President Joe Biden if they win a majority of seats in the House in 2022 elections. CNN’s Melanie Zamora reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211021064421-jim-jordan-072121-large-169.jpg”,”title”:”CNN reporter explains what GOP is plotting if they win majority”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/01/13/gop-investigations-impeachment-biden-2022-elections-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/01/13/gop-investigations-impeachment-biden-2022-elections-newday-vpx.cnn”,”videoId”:”politics/2022/01/13/gop-investigations-impeachment-biden-2022-elections-newday-vpx.cnn”,”videoUrl”:”/videos/politics/2022/01/13/gop-investigations-impeachment-biden-2022-elections-newday-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_22D6476B-B0CC-A251-0C0E-B0858C185663″},{“descriptionPlainText”:”Mark Esper, who served as defense secretary in the Trump administration, claims that he saw an evolution in then-President Donald Trump after he wasn’t removed from office after being impeached, and that Trump wanted to use the military to shoot protesters demonstrating in the wake of George Floyd’s death.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220510003250-mark-esper-ac360-may-19-2022-large-169.jpg”,”title”:”Trump’s defense secretary ‘dumbfounded’ by suggestion to shoot protesters”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/10/mark-esper-trump-evolution-shoot-protesters-sot-ac-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/10/mark-esper-trump-evolution-shoot-protesters-sot-ac-vpx.cnn”,”videoId”:”politics/2022/05/10/mark-esper-trump-evolution-shoot-protesters-sot-ac-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/10/mark-esper-trump-evolution-shoot-protesters-sot-ac-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_CA2F51F2-607D-A7E8-ED5D-B0BDB19002BC”},{“descriptionPlainText”:”In today’s episode of The Point, CNN’s Chris Cillizza breaks down former President Donald Trump’s hold on the Republican Party and why it seems like he’s not going anywhere.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220510092905-trump-gop-owner-the-point-large-169.jpg”,”title”:”Ohio just proved Trump’s stranglehold on the Republican Party”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/10/trump-republican-party-cillizza-the-point-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/10/trump-republican-party-cillizza-the-point-orig.cnn”,”videoId”:”politics/2022/05/10/trump-republican-party-cillizza-the-point-orig.cnn”,”videoUrl”:”/videos/politics/2022/05/10/trump-republican-party-cillizza-the-point-orig.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_1031FEDF-7E0B-D77D-C97A-53B2F0D2FDBA”},{“descriptionPlainText”:”CNN reporter Daniel Dale explains why experts are calling out President Biden’s claim that he is personally responsible for reducing the federal deficit.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220504203619-joe-biden-economy-050422-large-169.jpg”,”title”:”Fact-checking Biden’s claim he personally reduced the federal deficit”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/09/biden-deficit-reduction-claim-fact-check-newday-dale-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/09/biden-deficit-reduction-claim-fact-check-newday-dale-vpx.cnn”,”videoId”:”politics/2022/05/09/biden-deficit-reduction-claim-fact-check-newday-dale-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/09/biden-deficit-reduction-claim-fact-check-newday-dale-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_777807DE-7406-3DB2-FD78-AC372CCAD939″},{“descriptionPlainText”:”Supreme Court Justices may be familiar with chanting protesters at work, but after a draft opinion taking aim at the federal right to abortion leaked, protesters are showing up at their family homes in Maryland and Virginia.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220508175105-abortion-protests-kavanaugh-house-orig-thumb-large-169.jpg”,”title”:”Abortion rights supporters chant outside Supreme Court Justices’ homes “,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/08/abortion-protests-supreme-court-houses-maryland-brett-kavanaugh-john-roberts-orig-kj.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/08/abortion-protests-supreme-court-houses-maryland-brett-kavanaugh-john-roberts-orig-kj.cnn”,”videoId”:”politics/2022/05/08/abortion-protests-supreme-court-houses-maryland-brett-kavanaugh-john-roberts-orig-kj.cnn”,”videoUrl”:”/videos/politics/2022/05/08/abortion-protests-supreme-court-houses-maryland-brett-kavanaugh-john-roberts-orig-kj.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_E0272C36-5CE9-735C-6911-AE28D4D29216″},{“descriptionPlainText”:”CNN’s Jake Tapper presses Mississippi Gov. Tate Reeves about a 2007 state trigger law that would force female victims impregnated by incest to carry children to term if the Supreme Court overturns Roe v. Wade.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220508095720-jake-tapper-tate-reeves-split-large-169.jpg”,”title”:”Tapper presses GOP governor on potential abortion law”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/08/mississippi-abortion-law-roe-wade-governor-tate-reeves-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/08/mississippi-abortion-law-roe-wade-governor-tate-reeves-sotu-vpx.cnn”,”videoId”:”politics/2022/05/08/mississippi-abortion-law-roe-wade-governor-tate-reeves-sotu-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/08/mississippi-abortion-law-roe-wade-governor-tate-reeves-sotu-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_196C10BC-C88C-9DBA-CF64-A8F800C460C3″},{“descriptionPlainText”:”First Lady Jill Biden made a surprise trip to Ukraine and met the country’s First Lady Olena Zelenska. US Ambassador to the United Nations, Linda Thomas-Greenfield, talks to CNN’s Jake Tapper about the significance of the visit.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220508094137-02-jill-biden-ukraine-0508-large-169.jpg”,”title”:”See Jill Biden meet Ukraine’s first lady”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/08/jill-biden-ukraine-trip-first-lady-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/08/jill-biden-ukraine-trip-first-lady-sotu-vpx.cnn”,”videoId”:”politics/2022/05/08/jill-biden-ukraine-trip-first-lady-sotu-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/08/jill-biden-ukraine-trip-first-lady-sotu-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_60FF5D37-93D2-0A7F-851E-A5A4AC0E8796″},{“descriptionPlainText”:”Ohio Republican nominee for Congress J.R. Majewski first gained notoriety for his outspoken support of President Trump in 2020, and has since been spotted wearing and sharing material in support of QAnon.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220507171446-majewski-qanon-orig-thumb-large-169.jpg”,”title”:”J.R. Majewski shared pro-QAnon material online. Now, he’s running for Congress”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/07/jr-majewski-qanon-ohio-gop-congress-nominee-orig-mh-kj.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/07/jr-majewski-qanon-ohio-gop-congress-nominee-orig-mh-kj.cnn”,”videoId”:”politics/2022/05/07/jr-majewski-qanon-ohio-gop-congress-nominee-orig-mh-kj.cnn”,”videoUrl”:”/videos/politics/2022/05/07/jr-majewski-qanon-ohio-gop-congress-nominee-orig-mh-kj.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_4E871F04-964F-A9DE-7D76-A3E66A494281″},{“descriptionPlainText”:”CNN asked, how do you feel about the fight over abortion rights? Listen to the emotional and divided responses we received from callers across the country.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220506122557-abortion-protest-large-169.jpg”,”title”:”Hear these anonymous CNN viewers share their personal stories and opinions of abortion”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/06/roe-v-wade-abortion-voicemails-orig-mss-me-jk.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/06/roe-v-wade-abortion-voicemails-orig-mss-me-jk.cnn”,”videoId”:”politics/2022/05/06/roe-v-wade-abortion-voicemails-orig-mss-me-jk.cnn”,”videoUrl”:”/videos/politics/2022/05/06/roe-v-wade-abortion-voicemails-orig-mss-me-jk.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_31427280-0E8C-23B9-7678-A40E86368ADC”},{“descriptionPlainText”:”Former Secretary of State Mike Pompeo, who served in former President Trump’s administration, criticized Trump’s endorsed Senate candidate in Pennsylvania, Mehmet Oz.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201219133818-donald-trump-mike-pompeo-split-large-169.jpg”,”title”:”GOP strategist breaks down Pompeo’s move against Trump”,”videoCMSUrl”:”/video/data/3.0/video/politics/2022/05/07/mike-pompeo-trump-mehmet-oz-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2022/05/07/mike-pompeo-trump-mehmet-oz-ebof-vpx.cnn”,”videoId”:”politics/2022/05/07/mike-pompeo-trump-mehmet-oz-ebof-vpx.cnn”,”videoUrl”:”/videos/politics/2022/05/07/mike-pompeo-trump-mehmet-oz-ebof-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_E27B2B63-6B1D-25A4-4399-A05FB7787575″},{“descriptionPlainText”:”The Consumer Price Index was up 8.3% in the 12 months ending in April – the first decrease since August. CNN’s Christine Romans reports on where prices are still going up.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/220510152345-grocery-store-shopping-file-large-169.jpg”,”title”:”‘Prices are still rising, but not as quickly’: Romans breaks down inflation data”,”videoCMSUrl”:”/video/data/3.0/video/business/2022/05/11/inflation-consumer-price-index-april-romans-newsroom-vpx.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2022/05/11/inflation-consumer-price-index-april-romans-newsroom-vpx.cnnbusiness”,”videoId”:”business/2022/05/11/inflation-consumer-price-index-april-romans-newsroom-vpx.cnnbusiness”,”videoUrl”:”/videos/business/2022/05/11/inflation-consumer-price-index-april-romans-newsroom-vpx.cnnbusiness/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_9472D654-FF3B-DC68-DDB1-9A2EBA2AB62B”}],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:”politics/2022/05/11/biden-trump-older-political-leaders-david-gergen-newday-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-7pavzj’,videoDescriptionDivId: ‘js-video_description-7pavzj’,videoDurationDivId: ‘js-video_duration-7pavzj’,videoTitleDivId: ‘js-leaf-video_headline-7pavzj’,videoSourceDivId: ‘js-video_sourceName-7pavzj’});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(‘

Loading

Leave a Reply

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

Follow by Email
Pinterest
LinkedIn
Share