See chaos at Kabul airport after Taliban capture Afghan capital

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.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/210815191545-kabul-airport-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210815191545-kabul-airport-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210815191545-kabul-airport-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210815191545-kabul-airport-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210815191545-kabul-airport-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210815191545-kabul-airport-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210815191545-kabul-airport-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”New videos show panicked mobs at Kabul International Airport as hundreds try to flee the besieged Afghan capital as Taliban forces move in.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815191545-kabul-airport-large-169.jpg”,”title”:”Chaos at Kabul airport as Taliban take over Afghan capital”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.cnn”,”videoId”:”world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.cnn”,”videoUrl”:”/videos/world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_C0977EBA-A594-084B-314D-4C08E2C2D586″},{“descriptionPlainText”:”The fall of Kabul into the hands of the Taliban is drawing comparisons to the fall of Saigon in the final days of the Vietnam War.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815041320-01-kabul-afghanistan-0815-us-helicopters-large-169.jpg”,”title”:”‘That’s what the world thinks this is’: Reporter discusses Kabul comparisons to Saigon”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/saigon-kabul-comparisons-afghanistan-sot-vpx-nr.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/saigon-kabul-comparisons-afghanistan-sot-vpx-nr.cnn”,”videoId”:”world/2021/08/15/saigon-kabul-comparisons-afghanistan-sot-vpx-nr.cnn”,”videoUrl”:”/videos/world/2021/08/15/saigon-kabul-comparisons-afghanistan-sot-vpx-nr.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_04208FDB-3BA0-16FE-5147-4B820F1F9F6F”},{“descriptionPlainText”:”It’s been nearly twenty years since 9/11 but the US has been involved in Afghanistan for far longer. Here’s a look at how five presidents and five very different strategies have shaped the US’ role in Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/150410131239-army-soldier-salute-no-face-generic-large-169.jpg”,”title”:”Five presidents, five strategies: The US’ wars in Afghanistan”,”videoCMSUrl”:”/video/data/3.0/video/world/2019/08/16/afghanistan-us-american-presidents-reagan-bush-obama-trump-jba-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2019/08/16/afghanistan-us-american-presidents-reagan-bush-obama-trump-jba-lon-orig.cnn”,”videoId”:”world/2019/08/16/afghanistan-us-american-presidents-reagan-bush-obama-trump-jba-lon-orig.cnn”,”videoUrl”:”/videos/world/2019/08/16/afghanistan-us-american-presidents-reagan-bush-obama-trump-jba-lon-orig.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_2A0D5C8A-D79B-6806-640A-4C8884519A80″},{“descriptionPlainText”:”CNN’s Kylie Atwood reports that the US Embassy in Kabul has been evacuated, culminating in the American flag being taken down from the building.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815141343-kabul-helicopter-screengrab-for-video-large-169.jpg”,”title”:”Video shows helicopters over Kabul as US Embassy evacuated”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/afghanistan-us-embassy-evacuated-atwood-nr-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/afghanistan-us-embassy-evacuated-atwood-nr-sot-vpx.cnn”,”videoId”:”world/2021/08/15/afghanistan-us-embassy-evacuated-atwood-nr-sot-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/15/afghanistan-us-embassy-evacuated-atwood-nr-sot-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_C0977EBA-A594-084B-314D-4C08E2C2D586″},{“descriptionPlainText”:”A former US military base is now in the hands of the Taliban as the future of Afghanistan is unclear. CNN’s Clarissa Ward reports exclusively from what remains of Combat Outpost Andar in Afghanistan’s Ghazni province.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210813164607-taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx-00025413-large-169.jpeg”,”title”:”CNN gets access to US military base seized by the Taliban”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/13/taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/13/taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx.cnn”,”videoId”:”world/2021/08/13/taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/13/taliban-former-us-military-base-afghanistan-ghazni-province-ward-dnt-lead-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_C00BB8E3-7FC8-8F37-74F6-4B903822D587″},{“descriptionPlainText”:”US Secretary of State Antony Blinken denies that the withdrawal from Kabul is similar to the one in Saigon at the close of the Vietnam War because the US has completed its mission in bringing the perpetrators of the September 11 terrorist attacks to justice in Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210816143128-screengrab-saigon-kabul-split-large-169.jpg”,”title”:”‘This is not Saigon’: Blinken says Afghanistan is different than Vietnam”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/antony-blinken-afghanistan-is-not-saigon-sot-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/antony-blinken-afghanistan-is-not-saigon-sot-sotu-vpx.cnn”,”videoId”:”world/2021/08/15/antony-blinken-afghanistan-is-not-saigon-sot-sotu-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/15/antony-blinken-afghanistan-is-not-saigon-sot-sotu-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_1828F649-B5EA-19AC-ED9A-9ABF43C53EF6″},{“descriptionPlainText”:”CNN’s Michael Holmes speaks to journalist Ali Latifi about what life is like in Afghanistan’s capital Kabul after the Taliban’s takeover of Kandahar and Herat, the country’s second and third largest cities, respectively.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210813104253-ali-latifi-afghanistan-taliban-kandahar-herat-large-169.jpg”,”title”:”Afghan journalist in Kabul explains why Taliban takeover of major cities matters”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/13/afghanistan-taliban-kabul-herat-kandahar-latifi-intv-holmes-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/13/afghanistan-taliban-kabul-herat-kandahar-latifi-intv-holmes-intl-ldn-vpx.cnn”,”videoId”:”world/2021/08/13/afghanistan-taliban-kabul-herat-kandahar-latifi-intv-holmes-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/13/afghanistan-taliban-kabul-herat-kandahar-latifi-intv-holmes-intl-ldn-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_96D5B093-C903-F65B-8FC4-4AF8FAFA1417″},{“descriptionPlainText”:”Rep. Michael McCaul (R-TX), the top Republican on the House Foreign Affairs Committee, slammed the Biden administration’s withdrawal from Afghanistan, saying that it will be a stain on Biden’s presidency.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815105128-michael-mccaul-joe-biden-split-for-video-large-169.jpg”,”title”:”‘Blood on his hands’: Republican rips Biden over Afghanistan”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/08/15/michael-mccaul-biden-afghanistan-blood-on-his-hands-sot-sotu-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/08/15/michael-mccaul-biden-afghanistan-blood-on-his-hands-sot-sotu-vpx.cnn”,”videoId”:”politics/2021/08/15/michael-mccaul-biden-afghanistan-blood-on-his-hands-sot-sotu-vpx.cnn”,”videoUrl”:”/videos/politics/2021/08/15/michael-mccaul-biden-afghanistan-blood-on-his-hands-sot-sotu-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_D273A9F2-BAF3-8047-7DCE-41174D9737BB”},{“descriptionPlainText”:”CNN’s Jim Acosta presses Pentagon press secretary John Kirby about the decision to send more than 3,000 US troops to Afghanistan as the Taliban has made rapid gains.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210813180803-jim-acosta-john-kirby-vpx-large-169.jpg”,”title”:”‘Am I wrong?’: Jim Acosta presses Pentagon spokesperson”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/13/john-kirby-pentagon-afghanistan-taliban-acosta-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/13/john-kirby-pentagon-afghanistan-taliban-acosta-tsr-vpx.cnn”,”videoId”:”world/2021/08/13/john-kirby-pentagon-afghanistan-taliban-acosta-tsr-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/13/john-kirby-pentagon-afghanistan-taliban-acosta-tsr-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_B9F170C1-B0F7-5BD5-53C4-4A24E85D1823″},{“descriptionPlainText”:”CNN’s Peter Bergen says that the collapse of the Afghan army against the Taliban was an “unforced error” by the Biden administration and predicts that President Biden will have to send a military presence back into Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210814121927-bergen-smerconish-vpx-large-169.jpg”,”title”:”Bergen: Afghanistan an unforced error blowing up on Biden’s watch”,”videoCMSUrl”:”/video/data/3.0/video/tv/2021/08/14/was-it-a-mistake-for-u-s-to-leave-afghanistan.cnn/index.xml”,”videoLeafUrl”:”/videos/tv/2021/08/14/was-it-a-mistake-for-u-s-to-leave-afghanistan.cnn”,”videoId”:”tv/2021/08/14/was-it-a-mistake-for-u-s-to-leave-afghanistan.cnn”,”videoUrl”:”/videos/tv/2021/08/14/was-it-a-mistake-for-u-s-to-leave-afghanistan.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_7FCD4231-52CC-45A4-323C-3ED7335268B7″},{“descriptionPlainText”:”Journalist Ali Latifi discusses the scene in the capital and largest city of Afghanistan, Kabul, after the blast from the Taliban.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210804162548-ali-latifi-large-169.jpg”,”title”:”Journalist was at a cafe when Taliban attacked. Hear his story”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/04/ali-latifi-afghanistan-chants-taliban-attack-oneworld-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/04/ali-latifi-afghanistan-chants-taliban-attack-oneworld-vpx.cnn”,”videoId”:”world/2021/08/04/ali-latifi-afghanistan-chants-taliban-attack-oneworld-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/04/ali-latifi-afghanistan-chants-taliban-attack-oneworld-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_3E277B99-5BB7-B816-4E87-4A359CF63BD5″},{“descriptionPlainText”:”The US has been fighting the Taliban in Afghanistan since 2001. But the group is gaining ground in the country. Who are the Taliban and what does the group want?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180313143747-taliban-fighters-are-handcuffed-in-jalalabad-large-169.jpg”,”title”:”The Taliban: How it began, and what it wants”,”videoCMSUrl”:”/video/data/3.0/video/world/2018/03/13/taliban-militant-afghanistan-pakistan-war-soviets-orig-lon-ak.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2018/03/13/taliban-militant-afghanistan-pakistan-war-soviets-orig-lon-ak.cnn”,”videoId”:”world/2018/03/13/taliban-militant-afghanistan-pakistan-war-soviets-orig-lon-ak.cnn”,”videoUrl”:”/videos/world/2018/03/13/taliban-militant-afghanistan-pakistan-war-soviets-orig-lon-ak.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_A29BB542-4048-57AA-56E8-417FFE3C0BCB”},{“descriptionPlainText”:”Afghanistan’s swift descent into violence following the withdrawal of US and NATO troops supporting the government has shocked many. Afghan commandos gave CNN’s Clarissa Ward exclusive access to one of their bases along Kandahar’s front line amid fears it, with other provincial capitals, will fall.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210806180819-afghanistan-kandahar-frontline-taliban-threat-ward-dnt-tsr-vpx-00002720-large-169.jpg”,”title”:”This is what the frontline of Taliban’s advance looks like”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/06/afghanistan-kandahar-frontline-taliban-threat-ward-dnt-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/06/afghanistan-kandahar-frontline-taliban-threat-ward-dnt-tsr-vpx.cnn”,”videoId”:”world/2021/08/06/afghanistan-kandahar-frontline-taliban-threat-ward-dnt-tsr-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/06/afghanistan-kandahar-frontline-taliban-threat-ward-dnt-tsr-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_353F687D-1598-F83A-2FA0-44424811626D”},{“descriptionPlainText”:”The presidential palace in Kabul has been “handed over” to the Taliban, vacated by government officials, including former President Ashraf Ghani who has fled the country. CNN’s Nick Paton Walsh reports a Taliban member present for the “handover” spoke briefly in English to say he had formerly been held by the US in Guantanamo.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815164748-taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx-00020603-large-169.jpg”,”title”:”Video appears to show Taliban inside presidential palace”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/15/taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/15/taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx.cnn”,”videoId”:”world/2021/08/15/taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/15/taliban-presidential-palace-kabul-afghanistan-paton-walsh-nr-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_21232409-375D-78E9-B397-12B8D80E57F5″},{“descriptionPlainText”:”Kristen Rouse, a US Army veteran who served in Afghanistan, describes the messages she and other veterans have received from Afghan interpreters who are unable find safety as the Taliban besiege the country.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210815212625-kristen-rouse-large-169.jpeg”,”title”:”‘I am about to die’: Afghan interpreter’s message to US veteran”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/08/16/us-veteran-afghanistan-interpreters-sot-vpx-nr.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/08/16/us-veteran-afghanistan-interpreters-sot-vpx-nr.cnn”,”videoId”:”us/2021/08/16/us-veteran-afghanistan-interpreters-sot-vpx-nr.cnn”,”videoUrl”:”/videos/us/2021/08/16/us-veteran-afghanistan-interpreters-sot-vpx-nr.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_0A09AF5B-A127-3205-9B85-1FA20E4254FB”}],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:”world/2021/08/15/kabul-afghanistan-airport-taliban-sot-vpx-nr.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-20w5kvp’,videoDescriptionDivId: ‘js-video_description-20w5kvp’,videoDurationDivId: ‘js-video_duration-20w5kvp’,videoTitleDivId: ‘js-leaf-video_headline-20w5kvp’,videoSourceDivId: ‘js-video_sourceName-20w5kvp’});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