Deadliest recorded year for Afghan civilians

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2018/09/07/afghanistan-war-deadliest-year-for-civilians-kiley-pkg-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/180906132041-01-cnn-kabul-surgical-center-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180906132041-01-cnn-kabul-surgical-center-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180906132041-01-cnn-kabul-surgical-center-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180906132041-01-cnn-kabul-surgical-center-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180906132041-01-cnn-kabul-surgical-center-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180906132041-01-cnn-kabul-surgical-center-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180906132041-01-cnn-kabul-surgical-center-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”After 17 years of war, the number of civilian deaths in Afghanistan hit the highest recorded point this year, and children aren’t immune to the bloodshed. CNN’s Sam Kiley reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180906132041-01-cnn-kabul-surgical-center-large-169.jpg”,”title”:”Deadliest recorded year for Afghan civilians “,”videoCMSUrl”:”http://rss.cnn.com/videos/world/2018/09/07/afghanistan-war-deadliest-year-for-civilians-kiley-pkg-vpx.cnn”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2018/09/07/afghanistan-war-deadliest-year-for-civilians-kiley-pkg-vpx.cnn”,”videoId”:”world/2018/09/07/afghanistan-war-deadliest-year-for-civilians-kiley-pkg-vpx.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2018/09/07/afghanistan-war-deadliest-year-for-civilians-kiley-pkg-vpx.cnn”},{“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”:”http://rss.cnn.com/video/data/3.0/video/world/2018/03/13/taliban-militant-afghanistan-pakistan-war-soviets-orig-lon-ak.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/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”:”http://rss.cnn.com/videos/world/2018/03/13/taliban-militant-afghanistan-pakistan-war-soviets-orig-lon-ak.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”Vice President Mike Pence made an unannounced trip to Afghanistan to meet with top Afghan officials and rally US troops for his first trip to the country as vice president.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171221163449-mike-pence-large-169.jpg”,”title”:”Pence: Proud of US troops in Afghanistan”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/12/21/mike-pence-afghanistan-visit-trump-proud-lead-sot.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/12/21/mike-pence-afghanistan-visit-trump-proud-lead-sot.cnn”,”videoId”:”politics/2017/12/21/mike-pence-afghanistan-visit-trump-proud-lead-sot.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/12/21/mike-pence-afghanistan-visit-trump-proud-lead-sot.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”President Donald Trump announces that time-based strategy in Afghanistan is over, saying that conditions on the ground will guide military decisions.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170821212751-president-trump-afghanistan-war-plan-attack-we-will-sot-ac-00004908-large-169.jpg”,”title”:”Trump on Afghanistan plan: ‘Attack we will'”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/08/22/president-trump-afghanistan-war-plan-attack-we-will-sot-ac.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-afghanistan-war-plan-attack-we-will-sot-ac.cnn”,”videoId”:”politics/2017/08/22/president-trump-afghanistan-war-plan-attack-we-will-sot-ac.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-afghanistan-war-plan-attack-we-will-sot-ac.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”President Trump shared his vision for the country’s military strategy in Afghanistan during a prime-time speech.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170821211813-06-trump-afghanistan-remarks-large-169.jpg”,”title”:”The pillars of Trump’s Afghanistan strategy”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/08/22/donald-trump-afghanistan-military-strategy-orig-zw.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/donald-trump-afghanistan-military-strategy-orig-zw.cnn”,”videoId”:”politics/2017/08/22/donald-trump-afghanistan-military-strategy-orig-zw.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/donald-trump-afghanistan-military-strategy-orig-zw.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”President Trump details the future of the US military’s involvement in Afghanistan during an address at Joint Base Myer-Henderson Hall in Arlington, Virginia.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170519165315-24-war-in-afghanistan-large-169.jpg”,”title”:”Trump: US in Afghanistan to kill terrorists”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/08/22/president-trump-afghanistan-war-plan-killing-terrorists.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-afghanistan-war-plan-killing-terrorists.cnn”,”videoId”:”politics/2017/08/22/president-trump-afghanistan-war-plan-killing-terrorists.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-afghanistan-war-plan-killing-terrorists.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”President Donald Trump says the US and its allies are committed to breaking terrorists’ will, drying up their recruitment and preventing them from crossing borders to defeat them.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170822122244-08-trump-afghanistan-remarks-0821-large-169.jpg”,”title”:”Trump calls terrorists ‘losers'”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/08/22/president-trump-afghanistan-war-plan-terrorists-predators-losers-sot-ac.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-afghanistan-war-plan-terrorists-predators-losers-sot-ac.cnn”,”videoId”:”politics/2017/08/22/president-trump-afghanistan-war-plan-terrorists-predators-losers-sot-ac.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-afghanistan-war-plan-terrorists-predators-losers-sot-ac.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”President Donald Trump says the United States’ support to Afghanistan is not a “blank check” and “patience is not unlimited. “”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170821212124-07-trump-afghanistan-remarks-large-169.jpg”,”title”:”Trump: Our support is not a blank check”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/08/22/president-trump-afghanistan-war-plan-blank-check-ac.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-afghanistan-war-plan-blank-check-ac.cnn”,”videoId”:”politics/2017/08/22/president-trump-afghanistan-war-plan-blank-check-ac.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-afghanistan-war-plan-blank-check-ac.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”President Trump says he originally intended to pull out of the Iraq war, but says “decisions are much different when you sit behind the desk in the Oval Office.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170516184515-trump-afghanistan-top-large-169.jpg”,”title”:”Trump acknowledges flip-flop on Afghanistan”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/08/22/president-trump-change-in-afghanistan-war-position-ac360.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-change-in-afghanistan-war-position-ac360.cnn”,”videoId”:”politics/2017/08/22/president-trump-change-in-afghanistan-war-position-ac360.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/08/22/president-trump-change-in-afghanistan-war-position-ac360.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”During a speech on his plan in Afghanistan, President Donald Trump said, “When one part of America hurts, we all hurt.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170821210533-04-trump-afghanistan-remarks-screengrab-large-169.jpg”,”title”:”Trump: Love for America requires love for all”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/08/21/president-trump-love-for-america-unity-ac-sot.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/08/21/president-trump-love-for-america-unity-ac-sot.cnn”,”videoId”:”politics/2017/08/21/president-trump-love-for-america-unity-ac-sot.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/08/21/president-trump-love-for-america-unity-ac-sot.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”President Donald Trump addresses troops at Joint Base Myer-Henderson Hall in Arlington, Virginia.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170821211350-president-trump-afghanistan-war-plan-troop-address-00003227-large-169.jpg”,”title”:”Trump: We produce a special class of heroes”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/08/21/president-trump-afghanistan-war-plan-troop-address.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/08/21/president-trump-afghanistan-war-plan-troop-address.cnn”,”videoId”:”politics/2017/08/21/president-trump-afghanistan-war-plan-troop-address.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/08/21/president-trump-afghanistan-war-plan-troop-address.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”Questions about President Trump’s leadership come to light as he prepares to address the nation on his Afghanistan strategy. CNN’s Sara Murray reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170814112139-02-trump-wh-08-14-2017-large-169.jpg”,”title”:”Will Trump send more troops to Afghanistan?”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2017/08/21/trump-afghanistan-strategy-murray-dnt-newday.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2017/08/21/trump-afghanistan-strategy-murray-dnt-newday.cnn”,”videoId”:”politics/2017/08/21/trump-afghanistan-strategy-murray-dnt-newday.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2017/08/21/trump-afghanistan-strategy-murray-dnt-newday.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”Secretary of Defense James Mattis confirmed that a decision has been made on a new US strategy in Afghanistan and south Asia, and said he wants to wait for President Trump to announce it before disclosing the details.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170712181105-james-mattis-large-169.jpg”,”title”:”Mattis: New Afghanistan strategy decided”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/us/2017/08/20/mattis-travel-talking-afghanistan-pakistan-asia.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/us/2017/08/20/mattis-travel-talking-afghanistan-pakistan-asia.cnn”,”videoId”:”us/2017/08/20/mattis-travel-talking-afghanistan-pakistan-asia.cnn”,”videoUrl”:”http://rss.cnn.com/videos/us/2017/08/20/mattis-travel-talking-afghanistan-pakistan-asia.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”US troops have been fighting in Afghanistan since 2001, making it the longest war in American history.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/150410131239-army-soldier-salute-no-face-generic-large-169.jpg”,”title”:”US troops in Afghanistan: A history (2017)”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2017/05/12/afghanistan-us-troops-timeline-sje-orig.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2017/05/12/afghanistan-us-troops-timeline-sje-orig.cnn”,”videoId”:”world/2017/05/12/afghanistan-us-troops-timeline-sje-orig.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2017/05/12/afghanistan-us-troops-timeline-sje-orig.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”The Taliban has claimed responsibility for a car bombing in Kabul that left at least 29 people dead, as it ratchets up an offensive across Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170724044533-02-kabul-bombing-0724-large-169.jpg”,”title”:”Dozens killed in Kabul car bombing”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2017/07/24/taliban-claims-kabul-car-bombing-afghanistan-nick-paton-walsh-cnni.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2017/07/24/taliban-claims-kabul-car-bombing-afghanistan-nick-paton-walsh-cnni.cnn”,”videoId”:”world/2017/07/24/taliban-claims-kabul-car-bombing-afghanistan-nick-paton-walsh-cnni.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2017/07/24/taliban-claims-kabul-car-bombing-afghanistan-nick-paton-walsh-cnni.cnn/video/playlists/the-war-in-afghanistan/”},{“descriptionPlainText”:”Only 300 US Marines remain in Afghanistan’s Helmand province. Based on a recent tour, CNN’s Nick Paton Walsh reports that the Marines seem oddly vulnerable.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170723121246-marines-helmand-province-large-169.jpg”,”title”:”Marines remaining in Afghanistan face hardship”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/us/2017/07/23/few-marines-helmand-province-walsh-pkg.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/us/2017/07/23/few-marines-helmand-province-walsh-pkg.cnn”,”videoId”:”us/2017/07/23/few-marines-helmand-province-walsh-pkg.cnn”,”videoUrl”:”http://rss.cnn.com/videos/us/2017/07/23/few-marines-helmand-province-walsh-pkg.cnn/video/playlists/the-war-in-afghanistan/”}],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/2018/09/07/afghanistan-war-deadliest-year-for-civilians-kiley-pkg-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-m65unv’,videoDescriptionDivId: ‘js-video_description-m65unv’,videoDurationDivId: ‘js-video_duration-m65unv’,videoTitleDivId: ‘js-leaf-video_headline-m65unv’,videoSourceDivId: ‘js-video_sourceName-m65unv’});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(‘

Add a Comment

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

error: Content is protected !!