Sen. Bernie Sanders: Trump was right about this

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘politics/2021/04/14/bernie-sanders-afghanistan-withdrawal-sot-tsr-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/210414191028-bernie-sanders-tsr-small-169.jpeg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210414191028-bernie-sanders-tsr-medium-plus-169.jpeg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210414191028-bernie-sanders-tsr-large-169.jpeg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210414191028-bernie-sanders-tsr-exlarge-169.jpeg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210414191028-bernie-sanders-tsr-super-169.jpeg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210414191028-bernie-sanders-tsr-full-169.jpeg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210414191028-bernie-sanders-tsr-small-11.jpeg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Sen. Bernie Sanders (I-VT) reacts to President Joe Biden’s plan to withdraw all troops from Afghanistan by September 11, saying it was one thing former President Trump was right about.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210414191028-bernie-sanders-tsr-large-169.jpeg”,”title”:”Sen. Bernie Sanders: Trump was right about this”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/14/bernie-sanders-afghanistan-withdrawal-sot-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/14/bernie-sanders-afghanistan-withdrawal-sot-tsr-vpx.cnn”,”videoId”:”politics/2021/04/14/bernie-sanders-afghanistan-withdrawal-sot-tsr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/14/bernie-sanders-afghanistan-withdrawal-sot-tsr-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_6B4A6C20-2601-3903-E874-D29B1562085E”},{“descriptionPlainText”:”Rep. Matt Gaetz of Florida attended parties which frequently involved drug use and sex and after which money was sometimes exchanged, according to two women in attendance who spoke to CNN in recent days.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210414153348-02-matt-gaetz-0414-large-169.jpg”,”title”:”Women detail late-night parties with Gaetz”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/14/matt-gaetz-parties-women-payments-pkg-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/14/matt-gaetz-parties-women-payments-pkg-ebof-vpx.cnn”,”videoId”:”politics/2021/04/14/matt-gaetz-parties-women-payments-pkg-ebof-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/14/matt-gaetz-parties-women-payments-pkg-ebof-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_DE79B6B7-8008-87F6-7E28-D1C7249CFD4C”},{“descriptionPlainText”:”CNN’s John Avlon puts into perspective the likelihood of suffering from rare blood clots that have been reported in only six of the 6.8 million Johnson & Johnson Covid-19 vaccine recipients in the US.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210413082523-us-covid-19-vaccine-doses-johnson–johnson-0325-large-169.jpg”,”title”:”These unlikely events are still more likely than a blood clot after the J&J vaccine”,”videoCMSUrl”:”/video/data/3.0/video/health/2021/04/14/reality-check-johnson–johnson-vaccine-pause-covid-19-avlon-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2021/04/14/reality-check-johnson–johnson-vaccine-pause-covid-19-avlon-newday-vpx.cnn”,”videoId”:”health/2021/04/14/reality-check-johnson–johnson-vaccine-pause-covid-19-avlon-newday-vpx.cnn”,”videoUrl”:”/videos/health/2021/04/14/reality-check-johnson–johnson-vaccine-pause-covid-19-avlon-newday-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_B264ED29-844C-9595-A399-D205CE1FD22B”},{“descriptionPlainText”:”President Joe Biden plans to announce a withdrawal of US troops from Afghanistan by the upcoming twentieth anniversary of the September 11 terrorist attacks, according to three people familiar with the plans. The withdrawal extends the US troop presence past a May 1 deadline set by the Trump administration in an agreement with the Taliban, but only by a matter of months. CNN’s Nick Paton Walsh reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210413121156-01-us-troops-afghanistan-file-large-169.jpg”,”title”:”Biden to announce Afghanistan withdrawal by September 11″,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/13/biden-afghanistan-withdrawal-september-11-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/13/biden-afghanistan-withdrawal-september-11-vpx.cnn”,”videoId”:”politics/2021/04/13/biden-afghanistan-withdrawal-september-11-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/13/biden-afghanistan-withdrawal-september-11-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_6B4A6C20-2601-3903-E874-D29B1562085E”},{“descriptionPlainText”:”CNN’s Jim Sciutto speaks with Sen. Roger Wicker (R-MS) about the bipartisan negotiations involved with financing President Joe Biden’s infrastructure plan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210413091600-roger-wicker-large-169.jpg”,”title”:”Sen. Wicker on Biden’s infrastructure plan: Not ruling out tax hike”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/13/roger-wicker-infrastructure-taxes-biden-sciutto-intv-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/13/roger-wicker-infrastructure-taxes-biden-sciutto-intv-nr-vpx.cnn”,”videoId”:”politics/2021/04/13/roger-wicker-infrastructure-taxes-biden-sciutto-intv-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/13/roger-wicker-infrastructure-taxes-biden-sciutto-intv-nr-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_B7B1F35F-9F56-4EE5-378F-D2C45533CF51″},{“descriptionPlainText”:”Rep. Matt Gaetz (R-FL), who’s facing a federal investigation into sex trafficking allegations, was recently denied a meeting with Donald Trump at his Mar-a-Lago estate, sources tell CNN.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210331140547-01-matt-gaetz-file-2020-large-169.jpg”,”title”:”Sources say Gaetz was denied meeting with Trump”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/12/matt-gaetz-trump-meeting-denied-sources-johns-tsr-dnt-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/12/matt-gaetz-trump-meeting-denied-sources-johns-tsr-dnt-vpx.cnn”,”videoId”:”politics/2021/04/12/matt-gaetz-trump-meeting-denied-sources-johns-tsr-dnt-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/12/matt-gaetz-trump-meeting-denied-sources-johns-tsr-dnt-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_FE940A9A-2725-8F15-467A-D020EA973FF0″},{“descriptionPlainText”:”CNN’s Pamela Brown presses Republican Texas State Senator Bryan Hughes on the bill he authored that will tighten voting restrictions in his state.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210411201353-pam-brown-bryan-hughes-split-vpx-large-169.jpg”,”title”:”CNN anchor pushes back on Texas state lawmaker’s defense of voting bill”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/12/texas-voting-bill-bryan-hughes-intv-brown-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/12/texas-voting-bill-bryan-hughes-intv-brown-nr-vpx.cnn”,”videoId”:”politics/2021/04/12/texas-voting-bill-bryan-hughes-intv-brown-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/12/texas-voting-bill-bryan-hughes-intv-brown-nr-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_1C6F92D4-9BFB-54F2-89E3-CBFAAD1A8CDC”},{“descriptionPlainText”:”Transportation Sec. Pete Buttigieg talks to CNN’s Jake Tapper about the potential timeline for President Joe Biden’s infrastructure plan to pass.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210411105011-pete-buttigieg-large-169.jpg”,”title”:”Tapper asks Buttigieg for infrastructure plan timeline”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/11/pete-buttigieg-infrastructure-plan-timeline-tapper-sotu-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/11/pete-buttigieg-infrastructure-plan-timeline-tapper-sotu-sot-vpx.cnn”,”videoId”:”politics/2021/04/11/pete-buttigieg-infrastructure-plan-timeline-tapper-sotu-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/11/pete-buttigieg-infrastructure-plan-timeline-tapper-sotu-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_901E16DD-00C6-7245-DE42-CB93F6836283″},{“descriptionPlainText”:”Arkansas Republican Governor Asa Hutchinson reacted to former President Donald Trump’s attacks on top party leaders in his RNC spring retreat address, saying his remarks are “divisive” for elected GOP officials around the country.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210411104648-gov-asa-hutchinson-sotu-0411-vpx-large-169.jpeg”,”title”:”GOP governor calls Trump’s RNC remarks ‘divisive'”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/11/hutchinson-on-trump-rnc-donors-spring-retreat-remarks-intv-tapper-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/11/hutchinson-on-trump-rnc-donors-spring-retreat-remarks-intv-tapper-sotu-vpx.cnn”,”videoId”:”politics/2021/04/11/hutchinson-on-trump-rnc-donors-spring-retreat-remarks-intv-tapper-sotu-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/11/hutchinson-on-trump-rnc-donors-spring-retreat-remarks-intv-tapper-sotu-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_F8CD20DB-C0B1-1935-90D7-C85ED2D26751″},{“descriptionPlainText”:”The Supreme Court by a 5-4 vote blocked another state Covid-19 restriction on religious services, with another late-night order, over protests from California officials that the limits affecting some Bible study sessions did not impinge on religious rights and were to be lifted within days.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210129144107-05-scotus-exterior-file-large-169.jpg”,”title”:”SCOTUS blocks California Covid restriction on religious activities”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/10/supreme-court-california-covid-restrictions-religious-activities-biskupic-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/10/supreme-court-california-covid-restrictions-religious-activities-biskupic-vpx.cnn”,”videoId”:”politics/2021/04/10/supreme-court-california-covid-restrictions-religious-activities-biskupic-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/10/supreme-court-california-covid-restrictions-religious-activities-biskupic-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_2EBC3292-A0C2-E1B6-E764-C36465194C62″},{“descriptionPlainText”:”Rep. Jim Clyburn (D-SC) tells CNN’s Jake Tapper why he thinks Georgia’s new voting law represents ‘new Jim Crow.'”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210411103039-rep-jim-clyburn-georgia-voting-law-jim-crow-sot-sotu-vpx-00000000-large-169.jpg”,”title”:”Rep. Clyburn blasts GA voting law: It’s the ‘new Jim Crow'”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/11/rep-jim-clyburn-georgia-voting-law-jim-crow-sot-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/11/rep-jim-clyburn-georgia-voting-law-jim-crow-sot-sotu-vpx.cnn”,”videoId”:”politics/2021/04/11/rep-jim-clyburn-georgia-voting-law-jim-crow-sot-sotu-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/11/rep-jim-clyburn-georgia-voting-law-jim-crow-sot-sotu-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_CB30630A-0B09-E62A-C028-C1AB286E75C3″},{“descriptionPlainText”:”CNN’s Sunlen Serfaty takes a look at Rep. Matt Gaetz’s (R-FL) political career.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210408164153-06-gaetz-file-2019-large-169.jpg”,”title”:”‘Bombastic, antagonistic, unapologetic’: A look at Gaetz’s political career”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/08/matt-gaetz-political-career-serfaty-tsr-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/08/matt-gaetz-political-career-serfaty-tsr-pkg-vpx.cnn”,”videoId”:”politics/2021/04/08/matt-gaetz-political-career-serfaty-tsr-pkg-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/08/matt-gaetz-political-career-serfaty-tsr-pkg-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_5F2AE27C-D6D1-21AD-01CA-C17DE5E8DE28″},{“descriptionPlainText”:”John Boehner, former Republican House Speaker, reflects on his tenure in office in his new book, “On the House: A Washington Memoir.” CNN’s Brian Todd breaks down some key stories from the book, including the time Alaska Rep. Don Young held a knife to his throat.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210407094117-john-boehner-file-2019-large-169.jpg”,”title”:”Boehner says Republican colleague held 10-inch knife to his throat outside House floor”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/08/john-boehner-book-gop-todd-pkg-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/08/john-boehner-book-gop-todd-pkg-tsr-vpx.cnn”,”videoId”:”politics/2021/04/08/john-boehner-book-gop-todd-pkg-tsr-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/08/john-boehner-book-gop-todd-pkg-tsr-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_547AEC24-354F-AA03-6F68-BE064EBBDB9A”},{“descriptionPlainText”:”President Joe Biden used his personal experience with his son Beau, who served in Iraq, to underscore the generational impact of the the US war in Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210414150949-06-biden-afghanistan-remarks-0414-large-169.jpg”,”title”:”Biden: It’s time to end the forever war”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/14/joe-biden-beau-biden-its-time-to-end-this-forever-war-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/14/joe-biden-beau-biden-its-time-to-end-this-forever-war-sot-vpx.cnn”,”videoId”:”politics/2021/04/14/joe-biden-beau-biden-its-time-to-end-this-forever-war-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/14/joe-biden-beau-biden-its-time-to-end-this-forever-war-sot-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_F460E007-FB76-D52D-C7D0-C14B53A86893″},{“descriptionPlainText”:”Rep. Adam Kinzinger (R-IL) tells CNN’s Jake Tapper why he opposes President Joe Biden’s decision to withdraw US troops in Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210414161850-kinzinger-large-169.jpg”,”title”:”What Republican lawmaker fears after US troops leave Afghanistan”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/04/14/kinzinger-on-afghanistan-withdrawal-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/04/14/kinzinger-on-afghanistan-withdrawal-vpx.cnn”,”videoId”:”politics/2021/04/14/kinzinger-on-afghanistan-withdrawal-vpx.cnn”,”videoUrl”:”/videos/politics/2021/04/14/kinzinger-on-afghanistan-withdrawal-vpx.cnn/video/playlists/this-week-in-politics/”,”surrogateKey”:”video_DF3A739A-75CB-C4C2-22A4-B393EA9024BB”}],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/2021/04/14/bernie-sanders-afghanistan-withdrawal-sot-tsr-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-fepluf’,videoDescriptionDivId: ‘js-video_description-fepluf’,videoDurationDivId: ‘js-video_duration-fepluf’,videoTitleDivId: ‘js-leaf-video_headline-fepluf’,videoSourceDivId: ‘js-video_sourceName-fepluf’});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