Retired Lt. Gen.: This would be embarrassing for both the US and Taliban

‘);$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/25/mark-hertling-afghanistan-taliban-kabul-isis-k-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/210825073445-hertling-new-day-8-25-2021-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210825073445-hertling-new-day-8-25-2021-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210825073445-hertling-new-day-8-25-2021-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210825073445-hertling-new-day-8-25-2021-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210825073445-hertling-new-day-8-25-2021-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210825073445-hertling-new-day-8-25-2021-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/210825073445-hertling-new-day-8-25-2021-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Ret. Lt. Gen. Mark Hertling explains why ISIS-K interfering in the ongoing evacuations at the Kabul airport would be an embarrassment for both the US and the Taliban.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210825073445-hertling-new-day-8-25-2021-large-169.jpg”,”title”:”Retired Lt. Gen.: This would be embarrassing for both the US and Taliban”,”videoCMSUrl”:”/videos/world/2021/08/25/mark-hertling-afghanistan-taliban-kabul-isis-k-newday-vpx.cnn”,”videoLeafUrl”:”/videos/world/2021/08/25/mark-hertling-afghanistan-taliban-kabul-isis-k-newday-vpx.cnn”,”videoId”:”world/2021/08/25/mark-hertling-afghanistan-taliban-kabul-isis-k-newday-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/25/mark-hertling-afghanistan-taliban-kabul-isis-k-newday-vpx.cnn”,”surrogateKey”:”video_AC73D8FB-F9F8-DF90-6E79-7D117316C6AF”},{“descriptionPlainText”:”Vice President Kamala Harris is in Southeast Asia and received questions about the US’ withdrawal from Afghanistan while issuing a strong warning to China over the South China Sea.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210824104958-video-thumbnail-kamala-harris-large-169.jpeg”,”title”:”Harris hits at China over South China Sea “,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/24/harris-foreign-trip-south-china-sea-afghanistan-sot-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/24/harris-foreign-trip-south-china-sea-afghanistan-sot-intl-ldn-vpx.cnn”,”videoId”:”world/2021/08/24/harris-foreign-trip-south-china-sea-afghanistan-sot-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/24/harris-foreign-trip-south-china-sea-afghanistan-sot-intl-ldn-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_3DED42A1-913B-E6B2-5DF7-7783911BC8CF”},{“descriptionPlainText”:”White House press secretary Jen Psaki told a reporter that it was “irresponsible” to say that the US is stranding Americans in Afghanistan after the Taliban took over the country.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210823172654-jen-psaki-peter-doocy-split-large-169.jpg”,”title”:”‘Irresponsible’: Psaki calls out reporter’s question”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/08/23/jen-psaki-afghanistan-stranded-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/08/23/jen-psaki-afghanistan-stranded-lead-vpx.cnn”,”videoId”:”politics/2021/08/23/jen-psaki-afghanistan-stranded-lead-vpx.cnn”,”videoUrl”:”/videos/politics/2021/08/23/jen-psaki-afghanistan-stranded-lead-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_2A93CF3D-FD34-E747-86E2-74E2673DC780″},{“descriptionPlainText”:”CNN’s Sam Kiley speaks with Qatari Foreign Minister Sheikh Mohammed bin Abdulrahman Al-Thani about the country’s role in the 2020 US-Taliban peace deal and the action they’ve taken after the group assumed power in Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210822204406-sheikh-mohammed-bin-abdulrahman-al-thani-qatar-foreign-minister-kiley-large-169.jpg”,”title”:”Qatar’s FM asked if he regrets role in 2020 US-Taliban deal. Hear his response”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/23/afghanistan-qatar-foreign-minister-kiley-intl-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/23/afghanistan-qatar-foreign-minister-kiley-intl-pkg-vpx.cnn”,”videoId”:”world/2021/08/23/afghanistan-qatar-foreign-minister-kiley-intl-pkg-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/23/afghanistan-qatar-foreign-minister-kiley-intl-pkg-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_69885900-F85B-F5AA-C048-7050478BD10B”},{“descriptionPlainText”:”CNN’s John Avlon breaks down how Trump allies’ recent criticisms of President Biden’s decision to leave Afghanistan ring hollow in light of their past statements.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210823121532-mcmaster-haley-esper-reality-check-split-vpx-large-16-9.jpg”,”title”:”Trump’s allies are now denouncing his Taliban deal”,”videoCMSUrl”:”/video/data/3.0/video/politics/2021/08/23/avlon-reality-check-afghanistan-withdrawal-trump-allies-taliban-deal-criticism-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2021/08/23/avlon-reality-check-afghanistan-withdrawal-trump-allies-taliban-deal-criticism-vpx.cnn”,”videoId”:”politics/2021/08/23/avlon-reality-check-afghanistan-withdrawal-trump-allies-taliban-deal-criticism-vpx.cnn”,”videoUrl”:”/videos/politics/2021/08/23/avlon-reality-check-afghanistan-withdrawal-trump-allies-taliban-deal-criticism-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_B86AE1E4-54C6-D126-7467-72D4385A4E6B”},{“descriptionPlainText”:”CNN’s Clarissa Ward recounts her journey out of Kabul, Afghanistan, aboard a US Air Force C-17 transporting hundreds of refugees to Doha, Qatar.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210820202350-clarris-ward-flight-out-of-afghanistan-large-169.jpg”,”title”:”Clarissa Ward recounts her journey out of Afghanistan aboard a refugee flight”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/22/clarissa-ward-flight-out-of-kabul-afghanistan-rs-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/22/clarissa-ward-flight-out-of-kabul-afghanistan-rs-vpx.cnn”,”videoId”:”world/2021/08/22/clarissa-ward-flight-out-of-kabul-afghanistan-rs-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/22/clarissa-ward-flight-out-of-kabul-afghanistan-rs-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_35956765-4D3A-2C88-0FA3-6E7AD6CAEEE9″},{“descriptionPlainText”:”Thousands of evacuees that were airlifted out of Afghanistan following the Taliban’s takeover are now safe at the Ramstein Air Base in Germany. Atika Shubert reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210823090941-army-captain-erin-brymer-large-169.jpeg”,”title”:”Nurse recounts delivering baby born aboard evacuation plane from Afghanistan”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/22/afghan-evacuees-ramstein-air-base-germany-shubert-dnt-ndwknd-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/22/afghan-evacuees-ramstein-air-base-germany-shubert-dnt-ndwknd-vpx.cnn”,”videoId”:”world/2021/08/22/afghan-evacuees-ramstein-air-base-germany-shubert-dnt-ndwknd-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/22/afghan-evacuees-ramstein-air-base-germany-shubert-dnt-ndwknd-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_C6985843-6126-96D3-1804-6DC0CAB8A4A4″},{“descriptionPlainText”:”With the Taliban in control of several access points to Kabul’s Hamid Karzai International Airport, residents desperate to flee Afghanistan have overwhelmed the airport’s north gate. Stun grenades light up the night and US troops have had to forcefully repel the gathering crowds. CNN’s Nick Paton Walsh reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210820081413-video-thumbnail-airport-chaos-large-169.jpg”,”title”:”Watch chaos unfold at Kabul airport’s north gate”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/20/kabul-airport-chaos-afghanistan-taliban-npw-dlt-intl-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/20/kabul-airport-chaos-afghanistan-taliban-npw-dlt-intl-vpx.cnn”,”videoId”:”world/2021/08/20/kabul-airport-chaos-afghanistan-taliban-npw-dlt-intl-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/20/kabul-airport-chaos-afghanistan-taliban-npw-dlt-intl-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_C5696BF9-469E-7C9F-118E-61573E264320″},{“descriptionPlainText”:”CNN’s Anderson Cooper discusses the chaos and desperation in Afghanistan after the Taliban’s takeover following the withdrawal of US troops.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210819204013-baby-kabul-airport-wall-large-169.jpg”,”title”:”Video shows baby being handed over Kabul airport wall to US troops”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/20/kth-kabul-airport-wall-baby-afghanistan-ac360-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/20/kth-kabul-airport-wall-baby-afghanistan-ac360-vpx.cnn”,”videoId”:”world/2021/08/20/kth-kabul-airport-wall-baby-afghanistan-ac360-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/20/kth-kabul-airport-wall-baby-afghanistan-ac360-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_68858080-212F-DD1C-73E9-60F3FC938486″},{“descriptionPlainText”:”CNN’s David Culver takes a closer look at the budding relationship between the Taliban and China.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210819180640-china-taliban-large-169.jpg”,”title”:”China teams up with Taliban in unlikely partnership”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/19/china-taliban-allies-culver-lead-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/19/china-taliban-allies-culver-lead-pkg-vpx.cnn”,”videoId”:”world/2021/08/19/china-taliban-allies-culver-lead-pkg-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/19/china-taliban-allies-culver-lead-pkg-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_071AFE9C-87C6-C59C-52BE-60397B5824A5″},{“descriptionPlainText”:”CNN’s Clarissa Ward reports on the hurdles Americans and Afghans are facing trying to get to Kabul’s airport as Taliban fighters attempt to block access with gunfire and violence. This video has been updated to correct an editing issue.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210818164002-clarissa-ward-taliban-fighter-kabul-airport-large-169.jpg”,”title”:”Taliban fighters accost CNN reporter and crew”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/19/afghanistan-taliban-kabul-airport-gunfire-ward-pkg-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/19/afghanistan-taliban-kabul-airport-gunfire-ward-pkg-lead-vpx.cnn”,”videoId”:”world/2021/08/19/afghanistan-taliban-kabul-airport-gunfire-ward-pkg-lead-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/19/afghanistan-taliban-kabul-airport-gunfire-ward-pkg-lead-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_A4975D09-F9BB-8E37-E8AB-5F4F46664342″},{“descriptionPlainText”:”CNN’s Fred Pleitgen reports on the international reaction to the Taliban’s takeover of Afghanistan following the withdrawal of US troops.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210818095810-03-afghanistan-0818-kabul-large-169.jpg”,”title”:”How Russia is reacting to US withdrawal from Afghanistan”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/19/afghanistan-us-withdrawal-russia-reaction-pleitgen-pkg-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/19/afghanistan-us-withdrawal-russia-reaction-pleitgen-pkg-tsr-vpx.cnn”,”videoId”:”world/2021/08/19/afghanistan-us-withdrawal-russia-reaction-pleitgen-pkg-tsr-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/19/afghanistan-us-withdrawal-russia-reaction-pleitgen-pkg-tsr-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_9DF2A21E-349C-E209-FBD8-5BD337934581″},{“descriptionPlainText”:”In an interview with CNN’s Kate Bolduan, human rights attorney Kimberley Motley talks about the voicemail she received from an Afghan interpreter pleading for help from the US and the desperation she’s hearing from people in the country as the Taliban takes over.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/150923125213-translator-afghanistan-large-169.jpg”,”title”:”‘I don’t want to be killed by the Taliban’: Afghan interpreter leaves tearful voicemail”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/19/afghan-interpreter-voicemail-taliban-kimberley-motley-intv-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/19/afghan-interpreter-voicemail-taliban-kimberley-motley-intv-ebof-vpx.cnn”,”videoId”:”world/2021/08/19/afghan-interpreter-voicemail-taliban-kimberley-motley-intv-ebof-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/19/afghan-interpreter-voicemail-taliban-kimberley-motley-intv-ebof-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_F2773A1D-2904-5DBA-EC58-5BBEB045BC4F”},{“descriptionPlainText”:”The deposed president of Afghanistan, Ashraf Ghani speaks in detail for the first time since fleeing Kabul and the Taliban. CNN’s Senior International Correspondent Arwa Damon reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210818133632-ashraf-ghani-presser-081821-large-169.jpg”,”title”:” Deposed Afghan president speaks out for first time in video message after fleeing country”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/18/afghanistan-president-speaks-arwa-damon-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/18/afghanistan-president-speaks-arwa-damon-nr-vpx.cnn”,”videoId”:”world/2021/08/18/afghanistan-president-speaks-arwa-damon-nr-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/18/afghanistan-president-speaks-arwa-damon-nr-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_AA8B9AF3-D0A0-C4F4-2E5B-5A9A8AACD2EB”},{“descriptionPlainText”:”The Taliban has opened fire in the streets of Kabul to disperse crowds as chaos ensues in the streets of Afghaistan. CNN’s Clarissa Ward reports from the ground where a chaotic scene continues to unravel as thousands of desperate Afghans remain stranded under Taliban rule.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210818073355-clarissa-ward-crowd-afghanistan-large-169.jpg”,”title”:”It’s just constant: Clarissa Ward describes gunshots fired in Taliban- controlled streets”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/18/clarissa-ward-afghanistan-shots-fired-streets-crowd-reacts-newday-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/18/clarissa-ward-afghanistan-shots-fired-streets-crowd-reacts-newday-vpx.cnn”,”videoId”:”world/2021/08/18/clarissa-ward-afghanistan-shots-fired-streets-crowd-reacts-newday-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/18/clarissa-ward-afghanistan-shots-fired-streets-crowd-reacts-newday-vpx.cnn/video/playlists/afghanistan-falls-to-the-taliban/”,”surrogateKey”:”video_911D2A25-0901-BDE4-3A27-590A5746334A”}],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/25/mark-hertling-afghanistan-taliban-kabul-isis-k-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-1j85miz’,videoDescriptionDivId: ‘js-video_description-1j85miz’,videoDurationDivId: ‘js-video_duration-1j85miz’,videoTitleDivId: ‘js-leaf-video_headline-1j85miz’,videoSourceDivId: ‘js-video_sourceName-1j85miz’});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