Hear Boris Johnson’s words after Amess’ death

‘);$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/10/15/david-amess-lawmaker-death-boris-johnson-uk-vpx.itn’,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/211015124501-boris-johnson-on-david-amess-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211015124501-boris-johnson-on-david-amess-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211015124501-boris-johnson-on-david-amess-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211015124501-boris-johnson-on-david-amess-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211015124501-boris-johnson-on-david-amess-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211015124501-boris-johnson-on-david-amess-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/211015124501-boris-johnson-on-david-amess-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”British Prime Minister Boris Johnson speaks after a British lawmaker, Conservative MP Sir David Amess, died after being stabbed several times at a constituency meeting east of London.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211015124501-boris-johnson-on-david-amess-large-169.jpg”,”title”:”Hear Boris Johnson’s words after Amess’ death”,”videoCMSUrl”:”/videos/world/2021/10/15/david-amess-lawmaker-death-boris-johnson-uk-vpx.itn”,”videoLeafUrl”:”/videos/world/2021/10/15/david-amess-lawmaker-death-boris-johnson-uk-vpx.itn”,”videoId”:”world/2021/10/15/david-amess-lawmaker-death-boris-johnson-uk-vpx.itn”,”videoUrl”:”/videos/world/2021/10/15/david-amess-lawmaker-death-boris-johnson-uk-vpx.itn”,”surrogateKey”:”video_A213ED57-7F6A-386D-67AA-84CCD43060BA”},{“descriptionPlainText”:”Tensions are high between between Taiwan and mainland China as state media shows Beijing training for an invasion in a new propaganda video.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211014212528-taiwan-china-propaganda-video-cctv-ripley-vpx-large-169.jpeg”,”title”:”China sends warning to US in military training propaganda video”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/15/taiwan-china-independence-warning-video-us-ripley-dnt-intl-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/15/taiwan-china-independence-warning-video-us-ripley-dnt-intl-ebof-vpx.cnn”,”videoId”:”world/2021/10/15/taiwan-china-independence-warning-video-us-ripley-dnt-intl-ebof-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/15/taiwan-china-independence-warning-video-us-ripley-dnt-intl-ebof-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_9D1DFFFE-5D67-4903-2DD9-8169C9673027″},{“descriptionPlainText”:”Abdulrazak Gurnah won the Nobel Prize for Literature and speaks to One World about the fact the award has historically been awarded to novelists in the West. Gurnah believes the lack of access to English translation limits some African authors from being considered.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211007073945-01-abdulrazak-gurnah-file-large-169.jpg”,”title”:”Nobel Prize winner explains one big issue for novelists”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/14/nobel-prize-literature-abdulrazak-gurnah-oneworld-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/14/nobel-prize-literature-abdulrazak-gurnah-oneworld-vpx.cnn”,”videoId”:”world/2021/10/14/nobel-prize-literature-abdulrazak-gurnah-oneworld-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/14/nobel-prize-literature-abdulrazak-gurnah-oneworld-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_BCFDF76C-DBC4-1666-0C09-804362C4E8B3″},{“descriptionPlainText”:”At least 46 people died and dozens were injured in a fire that started in a 13-story commercial and residential building in Taiwan. The blaze was extinguished but rescue teams are still searching for people that may be trapped inside the building.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211014034123-01-taiwan-building-fire-1014-large-169.jpg”,”title”:”Footage from the ground shows rescue operation after Taiwan fire”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/14/taiwan-building-fire-lon-orig-tp.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/14/taiwan-building-fire-lon-orig-tp.cnn”,”videoId”:”world/2021/10/14/taiwan-building-fire-lon-orig-tp.cnn”,”videoUrl”:”/videos/world/2021/10/14/taiwan-building-fire-lon-orig-tp.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_19F1B7DA-5939-824D-4E74-7E6BF876FCF7″},{“descriptionPlainText”:”At least six people in Beirut, Lebanon were killed when gunfire broke out at a protest called by Hezbollah. Fierce gun battles were ongoing for hours in the worst violence the Lebanese capital has witnessed in more than a decade.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211014062317-03-beirut-protest-gunfire-1014-large-169.jpg”,”title”:”6 dead in Beirut as violence breaks out over protest”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/14/lebanon-beirut-violence-protests-ctw-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/14/lebanon-beirut-violence-protests-ctw-vpx.cnn”,”videoId”:”world/2021/10/14/lebanon-beirut-violence-protests-ctw-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/14/lebanon-beirut-violence-protests-ctw-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_F10D3EBD-228D-74C6-40D9-7F657B7B0D9C”},{“descriptionPlainText”:”Norwegian police have named the suspect in the bow-and-arrow attack that killed five people and injured three others as 37-year-old Espen Andersen Bråthen. Earlier, police said they were treating the attack as an act of terror after officers revealed the suspect had converted to Islam and that they had concerns about his radicalization. CNN’s Salma Abdelaziz reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211014152327-screengrab-norway-police-bow-arrow-attack-large-169.jpg”,”title”:”Hear from Norwegian police as they identify suspect in deadly attack”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/14/norway-terror-attack-update-suspect-identified-abdelaziz-ctw-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/14/norway-terror-attack-update-suspect-identified-abdelaziz-ctw-intl-ldn-vpx.cnn”,”videoId”:”world/2021/10/14/norway-terror-attack-update-suspect-identified-abdelaziz-ctw-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/14/norway-terror-attack-update-suspect-identified-abdelaziz-ctw-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_FB25FBEB-B7F3-9091-F269-7F1BBA7A7552″},{“descriptionPlainText”:”On the 60th anniversary of Nazi Adolf Eichmann’s trial, CNN’s Elie Honig speaks to deputy prosecutor Gabriel Bach and investigator Michael Goldmann-Gilead about their memories of the case and the legacy of the trial.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/210809151546-01-adolph-eichmann-trial-file-1961-large-169.jpg”,”title”:”Behind the trial of one of the world’s most notorious war criminals”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/08/16/adolf-eichmann-60th-anniversary-trial-honig-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/08/16/adolf-eichmann-60th-anniversary-trial-honig-pkg-vpx.cnn”,”videoId”:”world/2021/08/16/adolf-eichmann-60th-anniversary-trial-honig-pkg-vpx.cnn”,”videoUrl”:”/videos/world/2021/08/16/adolf-eichmann-60th-anniversary-trial-honig-pkg-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_68FCAB62-EAA6-827B-D4C4-4C4BF01D6A70″},{“descriptionPlainText”:”An Israeli aid group, officials of the UAE and a Jewish financier — an unusual mix of people have worked together and pulled off a rescue mission that helped 125 vulnerable Afghans flee the Taliban rule. CNN’s Hadas Gold reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211013175057-screengrab-afghan-rescue-large-169.jpg”,”title”:”How Jews and Arabs worked together to pull off an impossible rescue mission”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/13/israeli-aid-group-rescue-afghans-uae-gold-pkg-intl-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/13/israeli-aid-group-rescue-afghans-uae-gold-pkg-intl-hnk-vpx.cnn”,”videoId”:”world/2021/10/13/israeli-aid-group-rescue-afghans-uae-gold-pkg-intl-hnk-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/13/israeli-aid-group-rescue-afghans-uae-gold-pkg-intl-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_FBCD8DD5-914E-26F2-3299-78F8CF5955A8″},{“descriptionPlainText”:”CNN’s Ivan Watson speaks to two men who turned against Myanmar’s military regime amid a wave of popular outrage following the military coup that ousted the elected government eight months ago.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211013152538-screengrab-myanmar-protest-crowd-tear-gas-large-169.jpg”,”title”:”They made signs, now they’re making explosives. Myanmar’s resistance movement on the rise”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/13/myanmar-coup-junta-resistance-watson-intl-ovn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/13/myanmar-coup-junta-resistance-watson-intl-ovn-vpx.cnn”,”videoId”:”world/2021/10/13/myanmar-coup-junta-resistance-watson-intl-ovn-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/13/myanmar-coup-junta-resistance-watson-intl-ovn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_B68B6CF0-76D2-C8E8-EF22-77AB8E391559″},{“descriptionPlainText”:”South Korean series ‘Squid Game’ has become the biggest hit in the history of Netflix, with the challenges featured in the drama also gaining popularity around the globe. CNN’s Selina Wang reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211013133751-screengrab-squid-game-candy-large-169.jpg”,”title”:”Fans around the world are taking up ‘Squid Game’ challenges “,”videoCMSUrl”:”/video/data/3.0/video/media/2021/10/13/squid-game-challenges-icu-wang-pkg-ovn-intl-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2021/10/13/squid-game-challenges-icu-wang-pkg-ovn-intl-hnk-vpx.cnn”,”videoId”:”media/2021/10/13/squid-game-challenges-icu-wang-pkg-ovn-intl-hnk-vpx.cnn”,”videoUrl”:”/videos/media/2021/10/13/squid-game-challenges-icu-wang-pkg-ovn-intl-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_773A6F17-5B8C-BD65-1C29-77E3E55095AD”},{“descriptionPlainText”:”CNN’s Brian Todd looks at a recent weapons display put on by Kim Jong Un that has analysts and experts concerned.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211012005521-02-north-korea-defence-development-exhibition-1011-large-169.jpg”,”title”:”‘Never seen anything like this before’: Experts worry about North Korea’s latest move”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/12/kim-jong-un-military-north-korea-todd-pkg-tsr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/12/kim-jong-un-military-north-korea-todd-pkg-tsr-vpx.cnn”,”videoId”:”world/2021/10/12/kim-jong-un-military-north-korea-todd-pkg-tsr-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/12/kim-jong-un-military-north-korea-todd-pkg-tsr-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_3F89401C-C785-E5EF-01CF-76CA49AD2D0E”},{“descriptionPlainText”:”Queen Elizabeth, 95, was recorded using a walking stick for what is believed to be the first time at a major public event.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211012132936-01-qe2-cane-1012-large-169.jpg”,”title”:”Watch: Queen Elizabeth seen using walking stick at major event”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/12/queen-elizabeth-uses-walking-stick-mh-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/12/queen-elizabeth-uses-walking-stick-mh-orig.cnn”,”videoId”:”world/2021/10/12/queen-elizabeth-uses-walking-stick-mh-orig.cnn”,”videoUrl”:”/videos/world/2021/10/12/queen-elizabeth-uses-walking-stick-mh-orig.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_3B98B14E-EF87-2FE8-921D-7699FBC227F1″},{“descriptionPlainText”:”CNN’s Will Ripley breaks down the decades-old complex relationship between mainland China and Taiwan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211012130640-china-taiwan-flags-large-169.jpg”,”title”:”China and Taiwan’s relationship explained”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/12/china-taiwan-tensions-explainer-ripley-ctw-intl-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/12/china-taiwan-tensions-explainer-ripley-ctw-intl-vpx.cnn”,”videoId”:”world/2021/10/12/china-taiwan-tensions-explainer-ripley-ctw-intl-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/12/china-taiwan-tensions-explainer-ripley-ctw-intl-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_BCFF6447-92D6-F264-1087-757311F61B96″},{“descriptionPlainText”:”The last four of eight cooling towers at the former coal-fired Eggborough Power Station were demolished in a controlled implosion on October 10.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211012125918-screengrab-eggborough-cooling-towers-demolition-large-169.jpg”,”title”:” See moment cooling towers get demolished in UK”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/12/eggborough-cooling-towers-demolition-lon-orig-tp.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/12/eggborough-cooling-towers-demolition-lon-orig-tp.cnn”,”videoId”:”world/2021/10/12/eggborough-cooling-towers-demolition-lon-orig-tp.cnn”,”videoUrl”:”/videos/world/2021/10/12/eggborough-cooling-towers-demolition-lon-orig-tp.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_6750BB26-BABB-B226-3910-745C0CB320DB”},{“descriptionPlainText”:”The FBI has arrested and charged a Maryland couple with attempting to sell US nuclear secrets to another country in exchange for cryptocurrency, according to a Department of Justice statement. CNN’s Jessica Schneider reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211012130204-screengrab-us-nuclear-submarine-large-169.jpg”,”title”:”Couple accused of trying to sell nuclear secrets hidden in peanut butter sandwich”,”videoCMSUrl”:”/video/data/3.0/video/us/2021/10/11/us-navy-nuclear-submarine-secrets-ovn-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2021/10/11/us-navy-nuclear-submarine-secrets-ovn-hnk-vpx.cnn”,”videoId”:”us/2021/10/11/us-navy-nuclear-submarine-secrets-ovn-hnk-vpx.cnn”,”videoUrl”:”/videos/us/2021/10/11/us-navy-nuclear-submarine-secrets-ovn-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_C8E27688-3339-DE53-E2E1-6E38A3EE6E6B”},{“descriptionPlainText”:”CNN’s Clarissa Ward reports from Ghazni, Afghanistan, on the reality of the Taliban’s new regime of justice in Afghanistan.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/211011151016-video-thumbnail-clarissa-ward-pkg-large-169.jpeg”,”title”:”The Taliban have Afghanistan’s justice system in their hands. CNN shows what it’s like”,”videoCMSUrl”:”/video/data/3.0/video/world/2021/10/11/afghanistan-brutal-justice-ghazni-clarissa-ward-pkg-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2021/10/11/afghanistan-brutal-justice-ghazni-clarissa-ward-pkg-intl-ldn-vpx.cnn”,”videoId”:”world/2021/10/11/afghanistan-brutal-justice-ghazni-clarissa-ward-pkg-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2021/10/11/afghanistan-brutal-justice-ghazni-clarissa-ward-pkg-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_1B2E0E9E-6B0E-AB69-428B-6E3AB3B92671″}],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/10/15/david-amess-lawmaker-death-boris-johnson-uk-vpx.itn”, 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-2b7iox’,videoDescriptionDivId: ‘js-video_description-2b7iox’,videoDurationDivId: ‘js-video_duration-2b7iox’,videoTitleDivId: ‘js-leaf-video_headline-2b7iox’,videoSourceDivId: ‘js-video_sourceName-2b7iox’});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