See ex-CIA director’s reaction to Trump’s firing

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘politics/2020/11/18/john-brennan-trump-firing-dhs-chris-krebs-election-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/201117194906-john-brennan-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/201117194906-john-brennan-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/201117194906-john-brennan-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/201117194906-john-brennan-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/201117194906-john-brennan-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/201117194906-john-brennan-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/201117194906-john-brennan-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Former CIA Director John Brennan reacts to President Trump’s latest firing of DHS official Chrs Krebs.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201117194906-john-brennan-large-169.jpg”,”title”:”See ex-CIA director’s reaction to Trump’s firing”,”videoCMSUrl”:”/videos/politics/2020/11/18/john-brennan-trump-firing-dhs-chris-krebs-election-vpx.cnn”,”videoLeafUrl”:”/videos/politics/2020/11/18/john-brennan-trump-firing-dhs-chris-krebs-election-vpx.cnn”,”videoId”:”politics/2020/11/18/john-brennan-trump-firing-dhs-chris-krebs-election-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/18/john-brennan-trump-firing-dhs-chris-krebs-election-vpx.cnn”,”surrogateKey”:”video_234DECD4-8C0C-BD8D-E2B6-D8CAD81CF154″},{“descriptionPlainText”:”CNN’s Chris Cuomo criticizes Dr. Scott Atlas, President Trump’s coronavirus adviser, for telling people to “rise up” against coronavirus safety measures.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201117070258-chris-cuomo-large-169.jpg”,”title”:”Hear Cuomo’s fiery message to Dr. Scott Atlas”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/17/scott-atlas-coronavirus-thanksgiving-cuomo-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/17/scott-atlas-coronavirus-thanksgiving-cuomo-vpx.cnn”,”videoId”:”politics/2020/11/17/scott-atlas-coronavirus-thanksgiving-cuomo-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/17/scott-atlas-coronavirus-thanksgiving-cuomo-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_A21AE6F7-B5AE-D473-0D6A-D600F38EB3FF”},{“descriptionPlainText”:”President-elect Joe Biden is building out the staff that will surround him in the White House, announcing Tuesday that he is tapping two long-time advisers for top roles and naming several other veterans of his presidential campaign to senior positions.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201117121557-biden-advisors-split-restricted-large-169.jpg”,”title”:”Biden begins to build staff despite Trump impeding transition”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/17/jen-omalley-dillon-biden-administration-staff-phillip-sot-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/17/jen-omalley-dillon-biden-administration-staff-phillip-sot-newday-vpx.cnn”,”videoId”:”politics/2020/11/17/jen-omalley-dillon-biden-administration-staff-phillip-sot-newday-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/17/jen-omalley-dillon-biden-administration-staff-phillip-sot-newday-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_62717ECA-61F2-D497-54AE-D62C40397A10″},{“descriptionPlainText”:”Former White House communications director, Anthony Scaramucci, predicts what President Trump’s endgame might be as he continues to deny the results of the 2020 presidential election.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201117000111-anthony-scaramucci-ctn-intv-11162020-large-169.jpg”,”title”:”Scaramucci predicts three pieces of Trump’s endgame”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/17/anthony-scaramucci-lists-three-pieces-trumps-endgame-ctn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/17/anthony-scaramucci-lists-three-pieces-trumps-endgame-ctn-vpx.cnn”,”videoId”:”politics/2020/11/17/anthony-scaramucci-lists-three-pieces-trumps-endgame-ctn-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/17/anthony-scaramucci-lists-three-pieces-trumps-endgame-ctn-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_107B362A-534E-E9F7-90F0-D48E65973F2F”},{“descriptionPlainText”:”CNN’s Anderson Cooper talks to New York Times correspondent David Sanger about his reporting that President Donald Trump asked his advisers about a possible offensive strike on Iran’s key nuclear site.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201027121111-donald-trump-file-large-169.jpg”,”title”:”NYT: Trump sought options for possible strike on Iran nuclear site”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/17/new-york-times-trump-options-iran-sanger-cooper-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/17/new-york-times-trump-options-iran-sanger-cooper-ac360-vpx.cnn”,”videoId”:”politics/2020/11/17/new-york-times-trump-options-iran-sanger-cooper-ac360-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/17/new-york-times-trump-options-iran-sanger-cooper-ac360-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_648F892A-C4FB-A688-5CB6-D3EB6034811B”},{“descriptionPlainText”:”President Trump held a meeting that was described by several sources as “contentious” after learning his lawyers dropped a lawsuit seeking a review of Arizona ballots. CNN’s Pamela Brown reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201116211748-pam-brown-large-169.jpg”,”title”:”Trump post-election meeting was ‘contentious’, sources say”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/17/trump-post-election-legal-meeting-detailed-brown-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/17/trump-post-election-legal-meeting-detailed-brown-ac360-vpx.cnn”,”videoId”:”politics/2020/11/17/trump-post-election-legal-meeting-detailed-brown-ac360-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/17/trump-post-election-legal-meeting-detailed-brown-ac360-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_8731D03D-21FB-54ED-9F2E-D3EF0B179CBA”},{“descriptionPlainText”:”Sen. James Lankford said that he did “step in” with the General Services Administration over the presidential transition process and seemed satisfied with the agency’s handling of the matter, although there is no indication yet that Joe Biden will start getting intelligence briefings.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180801105730-james-lankford-11302015-large-169.jpg”,”title”:”Lankford says he did ‘step in’ over Biden intelligence briefing”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/17/james-lankford-biden-intelligence-briefing-gsa-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/17/james-lankford-biden-intelligence-briefing-gsa-ac360-vpx.cnn”,”videoId”:”politics/2020/11/17/james-lankford-biden-intelligence-briefing-gsa-ac360-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/17/james-lankford-biden-intelligence-briefing-gsa-ac360-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_54520B02-2BB9-13A9-0E0A-D3FC0042DB68″},{“descriptionPlainText”:”Congresswoman-elect Cori Bush (D-MO) says that multiple Republicans on Capitol Hill mistook her for Breonna Taylor, who was fatally shot by police in Kentucky.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201116202543-cori-bush-breonna-taylor-cnntv-large-169.jpeg”,”title”:”Congresswoman-elect says Republicans mistook her for Breonna Taylor”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/17/cori-bush-republicans-breonna-taylor-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/17/cori-bush-republicans-breonna-taylor-ebof-vpx.cnn”,”videoId”:”politics/2020/11/17/cori-bush-republicans-breonna-taylor-ebof-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/17/cori-bush-republicans-breonna-taylor-ebof-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_3199846C-974C-28BE-2CB6-D3E58CAB8896″},{“descriptionPlainText”:”President-elect Joe Biden said that “more people may die” if he’s not able to coordinate a smooth transition with President Trump’s administration in order to administer a vaccine and combat the coronavirus.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201116160516-joe-biden-large-169.jpg”,”title”:”Biden: ‘More people may die’ without a smooth transition “,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/16/joe-biden-transition-of-power-coronavirus-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/16/joe-biden-transition-of-power-coronavirus-nr-vpx.cnn”,”videoId”:”politics/2020/11/16/joe-biden-transition-of-power-coronavirus-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/16/joe-biden-transition-of-power-coronavirus-nr-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_3447D9DB-AA2F-F27A-38D4-D2D003A37219″},{“descriptionPlainText”:”US military commanders are anticipating that a formal order will be given by President Donald Trump as soon as this week to begin a further withdrawal of US troops from Afghanistan and Iraq before Trump leaves office on January 20, according to two US officials familiar with the matter. CNN’s Barbara Starr reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160706103928-05-us-afghanistan-file-large-169.jpg”,”title”:”US military anticipates Trump will order troop withdrawals in Iraq and Afghanistan”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/16/trump-iraq-afghanistan-troop-drawdown-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/16/trump-iraq-afghanistan-troop-drawdown-nr-vpx.cnn”,”videoId”:”politics/2020/11/16/trump-iraq-afghanistan-troop-drawdown-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/16/trump-iraq-afghanistan-troop-drawdown-nr-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_DAC98263-DA09-1E23-34AE-D271AA9992AC”},{“descriptionPlainText”:”President Trump for the first time acknowledged President-elect Joe Biden’s election victory, tweeting, “He won because the Election was Rigged,” before continuing to blame his loss on baseless and debunked conspiracy theories about the election. He then backtracked the acknowledgement in a later tweet.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201113163942-03-trump-rose-garden-presser-1113-large-169.jpg”,”title”:”Trump backtracks after acknowledging that Biden won”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/15/trump-tweet-acknowledges-biden-win-ip-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/15/trump-tweet-acknowledges-biden-win-ip-vpx.cnn”,”videoId”:”politics/2020/11/15/trump-tweet-acknowledges-biden-win-ip-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/15/trump-tweet-acknowledges-biden-win-ip-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_E0F3A6B4-944D-898E-FE21-CC32CBFC0A20″},{“descriptionPlainText”:”CNN’s John Avlon says Republicans are showing disdain for American democracy by continuing to deny the results of the 2020 presidential election.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201116080422-john-avlon-reality-check-11162020-large-169.jpg”,”title”:”Avlon: Republicans are used to winning without majority of votes”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/16/trump-republicans-election-minority-rule-avlon-reality-check-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/16/trump-republicans-election-minority-rule-avlon-reality-check-vpx.cnn”,”videoId”:”politics/2020/11/16/trump-republicans-election-minority-rule-avlon-reality-check-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/16/trump-republicans-election-minority-rule-avlon-reality-check-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_545F181C-2C0A-864E-89F7-D12264489EE3″},{“descriptionPlainText”:”President Donald Trump has put his personal lawyer Rudy Giuliani in charge of his campaign’s long-shot post-election legal challenges, according to a tweet from the President. CNN’s Drew Griffin tells us more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/190925034820-giuliani-trump-split-large-16-9.jpg”,”title”:”A breakdown of Giuliani’s role in Trump’s post-election fight”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/16/giuliani-trump-legal-challenges-ballots-newday-griffin-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/16/giuliani-trump-legal-challenges-ballots-newday-griffin-pkg-vpx.cnn”,”videoId”:”politics/2020/11/16/giuliani-trump-legal-challenges-ballots-newday-griffin-pkg-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/16/giuliani-trump-legal-challenges-ballots-newday-griffin-pkg-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_8582F1CE-5216-69F9-ADF8-D0EA0F2A6DA9″},{“descriptionPlainText”:”In his continued attempts to delegitimize the election, President Trump tweeted that late veteran James Blalock was a victim of voter fraud. CNN affiliate WXIA’s reporter Brendan Keefe looked into this claim, finding that it was not James Blalock who voted in the 2020 election, but his wife.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201114083023-dead-voter-fraud-claim-bts-wkndnd-vpx-00002625-large-169.jpg”,”title”:”Accused ‘dead’ voter is alive and speaking out “,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/14/dead-voter-fraud-claim-bts-wkndnd-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/14/dead-voter-fraud-claim-bts-wkndnd-vpx.cnn”,”videoId”:”politics/2020/11/14/dead-voter-fraud-claim-bts-wkndnd-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/14/dead-voter-fraud-claim-bts-wkndnd-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_9CCC3D2E-D26D-3CD0-8C1C-C6E588546033″},{“descriptionPlainText”:”President Donald Trump inched closer to acknowledging he will not be president after January 20, but stopped well short of recognizing his loss when vowing his administration wouldn’t order new coronavirus lockdowns.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201113173216-donald-trump-november-13-2020-01-large-169.jpg”,”title”:”Trump doesn’t address election defeat at Rose Garden event”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/13/donald-trump-refuses-to-concede-van-jones-john-kasich-wolf-blitzer-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/13/donald-trump-refuses-to-concede-van-jones-john-kasich-wolf-blitzer-tsr-vpx.cnn”,”videoId”:”politics/2020/11/13/donald-trump-refuses-to-concede-van-jones-john-kasich-wolf-blitzer-tsr-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/13/donald-trump-refuses-to-concede-van-jones-john-kasich-wolf-blitzer-tsr-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_F2408D17-FCA8-3798-F846-C3AC3B9C6F6E”},{“descriptionPlainText”:”Former CIA Director John Brennan tells CNN’s Brianna Keilar he hopes President Trump will not divulge classified information once his presidency is over.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/201009142310-amanpour-john-brennan-large-169.jpg”,”title”:”Former CIA director: I do worry what Trump might do in the future”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/11/13/john-brennan-trump-classified-secrets-concern-keilar-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/11/13/john-brennan-trump-classified-secrets-concern-keilar-nr-vpx.cnn”,”videoId”:”politics/2020/11/13/john-brennan-trump-classified-secrets-concern-keilar-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2020/11/13/john-brennan-trump-classified-secrets-concern-keilar-nr-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_24AB681C-60B5-BC4A-D14B-C2F45A770234″}],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/2020/11/18/john-brennan-trump-firing-dhs-chris-krebs-election-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-x8jvsw’,videoDescriptionDivId: ‘js-video_description-x8jvsw’,videoDurationDivId: ‘js-video_duration-x8jvsw’,videoTitleDivId: ‘js-leaf-video_headline-x8jvsw’,videoSourceDivId: ‘js-video_sourceName-x8jvsw’});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