Sniper assassinates mayor during ceremony

‘);$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/07/02/sniper-shoots-philippine-mayor-during-ceremony-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/180702155210-philippines-sniper-mayor-shot-killed-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180702155210-philippines-sniper-mayor-shot-killed-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180702155210-philippines-sniper-mayor-shot-killed-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180702155210-philippines-sniper-mayor-shot-killed-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180702155210-philippines-sniper-mayor-shot-killed-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180702155210-philippines-sniper-mayor-shot-killed-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180702155210-philippines-sniper-mayor-shot-killed-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Antonio Halili, a controversial mayor in the Philippines, was shot dead by a sniper during a flag-raising ceremony.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180702155210-philippines-sniper-mayor-shot-killed-large-169.jpg”,”title”:”Sniper assassinates mayor during ceremony”,”videoCMSUrl”:”http://rss.cnn.com/videos/world/2018/07/02/sniper-shoots-philippine-mayor-during-ceremony-pkg-vpx.cnn”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2018/07/02/sniper-shoots-philippine-mayor-during-ceremony-pkg-vpx.cnn”,”videoId”:”world/2018/07/02/sniper-shoots-philippine-mayor-during-ceremony-pkg-vpx.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2018/07/02/sniper-shoots-philippine-mayor-during-ceremony-pkg-vpx.cnn”},{“descriptionPlainText”:”Two mayors in the Philippines, Ferdinand Bote and Antonio Halili, have been shot and killed on consecutive days by unknown assailants.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180702155210-philippines-sniper-mayor-shot-killed-large-169.jpg”,”title”:”Two Philippine mayors shot dead in two days”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2018/07/03/philipinnes-mayors-killed-ferdinand-bote-antonio-halili-lon-orig-ejk.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2018/07/03/philipinnes-mayors-killed-ferdinand-bote-antonio-halili-lon-orig-ejk.cnn”,”videoId”:”world/2018/07/03/philipinnes-mayors-killed-ferdinand-bote-antonio-halili-lon-orig-ejk.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2018/07/03/philipinnes-mayors-killed-ferdinand-bote-antonio-halili-lon-orig-ejk.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”Antonio Halili, a controversial mayor in the Philippines, was shot dead by a sniper during a flag-raising ceremony.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180702124925-antonio-halili-philippines-mayor-sniper-2-large-169.jpg”,”title”:”Sniper kills Philippines mayor during ceremony”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2018/07/02/sniper-kills-mayor-philippines-antonio-halili-sje-lon-orig.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2018/07/02/sniper-kills-mayor-philippines-antonio-halili-sje-lon-orig.cnn”,”videoId”:”world/2018/07/02/sniper-kills-mayor-philippines-antonio-halili-sje-lon-orig.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2018/07/02/sniper-kills-mayor-philippines-antonio-halili-sje-lon-orig.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”Under martial law, the island of Mindanao and its main city Marawi are mostly empty. CNN’s Will Ripley reports on Philippines President Rodrigo Duterte ordering martial law after deadly clashes broke out between Filipino government troops and Islamist militants.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170525144701-philippines-unrest-4-large-169.jpg”,”title”:”Martial law order creates ghost island”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2017/05/25/duterte-martial-law-mindanao-philippines-ripley-pkg.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2017/05/25/duterte-martial-law-mindanao-philippines-ripley-pkg.cnn”,”videoId”:”world/2017/05/25/duterte-martial-law-mindanao-philippines-ripley-pkg.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2017/05/25/duterte-martial-law-mindanao-philippines-ripley-pkg.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”The Philippines has held a military alliance with the United States for decades, but China’s rapidly increasing military and trade strength is putting that alliance to the test. CNN’s David McKenzie reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170518173835-china-growing-power-influencing-philippines-mckenzie-pkg-00015211-large-169.jpg”,”title”:”China influence tests US – Philippines alliance”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2017/05/18/china-growing-power-influencing-philippines-mckenzie-pkg.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2017/05/18/china-growing-power-influencing-philippines-mckenzie-pkg.cnn”,”videoId”:”world/2017/05/18/china-growing-power-influencing-philippines-mckenzie-pkg.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2017/05/18/china-growing-power-influencing-philippines-mckenzie-pkg.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”The White House canceled an upcoming meeting with Philippines President Rodrigo Duterte after he cursed President Obama’s plan to discuss how the country punishes alleged drug dealers. CNN’s Barbara Starr reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160905171000-philippines-duterte-obama-sob-starr-dnt-lead-00002106-large-169.jpg”,”title”:”White House cancels Duterte meeting after name-calling”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/us/2016/09/05/philippines-duterte-obama-sob-starr-dnt-lead.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/us/2016/09/05/philippines-duterte-obama-sob-starr-dnt-lead.cnn”,”videoId”:”us/2016/09/05/philippines-duterte-obama-sob-starr-dnt-lead.cnn”,”videoUrl”:”http://rss.cnn.com/videos/us/2016/09/05/philippines-duterte-obama-sob-starr-dnt-lead.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”Paula Hancocks profiles Rodrigo Duterte, the controversial new president of the Philippines.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/161007161248-duterte-kiss-flag-large-169.jpg”,”title”:”Who is Rodrigo Duterte?”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2016/09/07/paula-hancocks-duterte-profile-pkg.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2016/09/07/paula-hancocks-duterte-profile-pkg.cnn”,”videoId”:”world/2016/09/07/paula-hancocks-duterte-profile-pkg.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2016/09/07/paula-hancocks-duterte-profile-pkg.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”At least 10 people have been killed and 60 injured in an explosion at a market in Davao City, Philippines. The cause of the explosion is not known.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160902121928-philippines-market-explosion-ressa-bpr-00012904-large-169.jpg”,”title”:”Explosion rocks market in Philippines”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2016/09/02/philippines-market-explosion-ressa-bpr.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2016/09/02/philippines-market-explosion-ressa-bpr.cnn”,”videoId”:”world/2016/09/02/philippines-market-explosion-ressa-bpr.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2016/09/02/philippines-market-explosion-ressa-bpr.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”As CNN’s Ivan Watson reports, new Philippine President Rodrigo Duterte’s anti-drug offensive is producing results, but also facing criticism.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160818224329-philippines-duterte-war-on-drugs-watson-pkg-00032101-large-169.jpg”,”title”:”Philippines drug war sparks outrage, fear”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2016/08/19/philippines-duterte-war-on-drugs-watson-pkg.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2016/08/19/philippines-duterte-war-on-drugs-watson-pkg.cnn”,”videoId”:”world/2016/08/19/philippines-duterte-war-on-drugs-watson-pkg.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2016/08/19/philippines-duterte-war-on-drugs-watson-pkg.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”At a G20 summit press conference, US President Barack Obama addresses his upcoming meeting with the Philippines’ president.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160905122137-obama-at-g20-summit-press-conference-large-169.jpg”,”title”:”Obama on Duterte: ‘Clearly he’s a colorful guy'”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/politics/2016/09/05/obama-on-meeting-with-duterte-sot-newday.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/politics/2016/09/05/obama-on-meeting-with-duterte-sot-newday.cnn”,”videoId”:”politics/2016/09/05/obama-on-meeting-with-duterte-sot-newday.cnn”,”videoUrl”:”http://rss.cnn.com/videos/politics/2016/09/05/obama-on-meeting-with-duterte-sot-newday.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”Philippines President Rodrigo Duterte has expressed his regret for the obscene language he used against President Barack Obama. CNN’s Elise Labott and Hala Gorani report.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160905145200-obama-duterte-large-169.jpg”,”title”:”Philippine President expresses “regret” over comments “,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2016/09/06/obama-duterte-fallout-gorani-labott-segment.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2016/09/06/obama-duterte-fallout-gorani-labott-segment.cnn”,”videoId”:”world/2016/09/06/obama-duterte-fallout-gorani-labott-segment.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2016/09/06/obama-duterte-fallout-gorani-labott-segment.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”CNN’s Ivan Watson takes us inside the Quezon City Jail near Manila, packed to the brim with over 4,000 inmates.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160803131352-duterte-crime-17-large-169.jpg”,”title”:”CNN goes inside massively overcrowded jail”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2016/08/22/philippine-jail-overcrowding-ivan-watson-pkg.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2016/08/22/philippine-jail-overcrowding-ivan-watson-pkg.cnn”,”videoId”:”world/2016/08/22/philippine-jail-overcrowding-ivan-watson-pkg.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2016/08/22/philippine-jail-overcrowding-ivan-watson-pkg.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”CNN’s Ivan Watson visits a Philippines jail that is overflowing with men arrested in President Duterte’s new War on Drugs.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160819141235-philippine-jail-watson-stevens-newsstream-segment-00022913-large-169.jpg”,”title”:”CNN goes inside Philippines’ overcrowded jails”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2016/08/19/philippine-jail-watson-stevens-newsstream-segment.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2016/08/19/philippine-jail-watson-stevens-newsstream-segment.cnn”,”videoId”:”world/2016/08/19/philippine-jail-watson-stevens-newsstream-segment.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2016/08/19/philippine-jail-watson-stevens-newsstream-segment.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”The president of the Philippines is showing no mercy in his war on drugs, but some say he may have gone too far, as CNN’s Ivan Watson reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160818224329-philippines-duterte-war-on-drugs-watson-pkg-00002607-large-169.jpg”,”title”:”A brutal war on drugs in the Philippines”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2016/08/19/philippines-rodrigo-duterte-the-strongman-watson-pkg.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2016/08/19/philippines-rodrigo-duterte-the-strongman-watson-pkg.cnn”,”videoId”:”world/2016/08/19/philippines-rodrigo-duterte-the-strongman-watson-pkg.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2016/08/19/philippines-rodrigo-duterte-the-strongman-watson-pkg.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”The bodies pile up in the new Filipino president’s war on illegal drugs. CNN’s Ivan Watson reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160601103132-rodrigo-duterte-large-169.jpg”,”title”:”Philippines drug war sparks outrage and fear”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2016/08/18/duertes-war-on-drugs-watson-pkg.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2016/08/18/duertes-war-on-drugs-watson-pkg.cnn”,”videoId”:”world/2016/08/18/duertes-war-on-drugs-watson-pkg.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2016/08/18/duertes-war-on-drugs-watson-pkg.cnn/video/playlists/philippines/”},{“descriptionPlainText”:”How about Filipino President Rodrigo Duterte came to power promising to crack down on crime, especially drugs. But after hundreds of suspects have been killed in his first month in office, many are questioning his methods.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160804020917-phillippines-duterte-drug-war-watson-pkg-00011921-large-169.jpg”,”title”:”Death toll rising in Philippines’ war on drugs”,”videoCMSUrl”:”http://rss.cnn.com/video/data/3.0/video/world/2016/08/04/phillippines-duterte-drug-war-watson-pkg.cnn/index.xml”,”videoLeafUrl”:”http://rss.cnn.com/videos/world/2016/08/04/phillippines-duterte-drug-war-watson-pkg.cnn”,”videoId”:”world/2016/08/04/phillippines-duterte-drug-war-watson-pkg.cnn”,”videoUrl”:”http://rss.cnn.com/videos/world/2016/08/04/phillippines-duterte-drug-war-watson-pkg.cnn/video/playlists/philippines/”}],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/07/02/sniper-shoots-philippine-mayor-during-ceremony-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-1tvzz5f’,videoDescriptionDivId: ‘js-video_description-1tvzz5f’,videoDurationDivId: ‘js-video_duration-1tvzz5f’,videoTitleDivId: ‘js-leaf-video_headline-1tvzz5f’,videoSourceDivId: ‘js-video_sourceName-1tvzz5f’});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.

*

code

error: Content is protected !!