Three people dead after train derails in Scotland

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2020/08/12/scotland-aberdeenshire-train-derailment-intl-ldn-vpx.cnn’,width: ‘100%’,height: ‘100%’,section: ‘international’,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/200812080510-01-scotland-train-derailment-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200812080510-01-scotland-train-derailment-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200812080510-01-scotland-train-derailment-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200812080510-01-scotland-train-derailment-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200812080510-01-scotland-train-derailment-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200812080510-01-scotland-train-derailment-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200812080510-01-scotland-train-derailment-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Three people have died after a passenger train derailed in Aberdeenshire, northeast Scotland, following heavy rain and a landslip in the area. CNN’s Max Foster reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200812080510-01-scotland-train-derailment-large-169.jpg”,”title”:”Three people dead after train derails in Scotland”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/12/scotland-aberdeenshire-train-derailment-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/12/scotland-aberdeenshire-train-derailment-intl-ldn-vpx.cnn”,”videoId”:”world/2020/08/12/scotland-aberdeenshire-train-derailment-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/12/scotland-aberdeenshire-train-derailment-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_3B6720C6-68CD-B435-5932-E2B42FF15B98″},{“descriptionPlainText”:”Mauritius is facing an environmental catastrophe after a stricken Japanese-owned ship began leaking oil into the ocean.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200809113715-01-mauritius-oil-spill-large-169.jpg”,”title”:”Video shows enormous oil leak in pristine lagoon”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/12/mauritius-oil-spill-lon-orig-bks.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/12/mauritius-oil-spill-lon-orig-bks.cnn”,”videoId”:”world/2020/08/12/mauritius-oil-spill-lon-orig-bks.cnn”,”videoUrl”:”/videos/world/2020/08/12/mauritius-oil-spill-lon-orig-bks.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_C91D7BAA-8D44-DE71-1C84-E289558FE09C”},{“descriptionPlainText”:”One man in Canada, sitting at his kitchen table with just a laptop and a phone with limited airtime, accomplished what the South African government failed to — organize a repatriation flight for a group of South Africans stranded for six months in Wuhan because of Covid-19. CNN’s David McKenzie reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200811151514-man-organizes-south-africa-repatriation-large-169.jpg”,”title”:”A group of South Africans were stuck in China. See how this man helped”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/11/south-africans-coronavirus-covid-19-stranded-wuhan-flight-mckenzie-intl-hnk-pkg-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/11/south-africans-coronavirus-covid-19-stranded-wuhan-flight-mckenzie-intl-hnk-pkg-vpx.cnn”,”videoId”:”world/2020/08/11/south-africans-coronavirus-covid-19-stranded-wuhan-flight-mckenzie-intl-hnk-pkg-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/11/south-africans-coronavirus-covid-19-stranded-wuhan-flight-mckenzie-intl-hnk-pkg-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_0980C433-DBB2-A67D-08E7-E06BDBBADC28″},{“descriptionPlainText”:”Russian President Vladimir Putin announced the approval of a coronavirus vaccine called Sputnik-V, claiming it as a “world first,” amid continued concern and unanswered questions over its safety and effectiveness.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200811141543-putin-vaccine-grab-large-169.jpg”,”title”:”Putin announces approval of coronavirus vaccine, amid skepticism “,”videoCMSUrl”:”/video/data/3.0/video/business/2020/08/11/russia-coronavirus-vaccine-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/08/11/russia-coronavirus-vaccine-intl-ldn-vpx.cnn”,”videoId”:”business/2020/08/11/russia-coronavirus-vaccine-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/business/2020/08/11/russia-coronavirus-vaccine-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_E256EB1C-7183-234B-1886-B8A5BE756DDD”},{“descriptionPlainText”:”Protests erupted across Belarus following a presidential election as preliminary results showed President Alexander Lukashenko re-elected with 80% of the vote, according to the country’s Central Election Commission. CNN’s Frederik Pleitgen reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200810100030-belarus-protest-tear-gas-0809-large-169.jpg”,”title”:”‘Unprecedented’ protests erupt in Belarus following election”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/10/belarus-protests-presidential-election-lukashenko-pleigten-intl-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/10/belarus-protests-presidential-election-lukashenko-pleigten-intl-hnk-vpx.cnn”,”videoId”:”world/2020/08/10/belarus-protests-presidential-election-lukashenko-pleigten-intl-hnk-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/10/belarus-protests-presidential-election-lukashenko-pleigten-intl-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_3B6720C6-68CD-B435-5932-E2B42FF15B98″},{“descriptionPlainText”:”Michelle hasn’t slept for three nights. Her husband Joe worked at the Beirut port but she hasn’t heard from him since the blast. CNN’s Arwa Damon meets Michelle, her two small daughters and a family fearing the worst.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200810093503-beirut-lebanon-blast-port-explosion-search-rescue-damon-pkg-intl-ldn-vpx-00000411-large-169.jpg”,”title”:”A family’s search for a loved one after Beirut port explosion”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/10/beirut-lebanon-blast-port-explosion-search-rescue-damon-pkg-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/10/beirut-lebanon-blast-port-explosion-search-rescue-damon-pkg-intl-ldn-vpx.cnn”,”videoId”:”world/2020/08/10/beirut-lebanon-blast-port-explosion-search-rescue-damon-pkg-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/10/beirut-lebanon-blast-port-explosion-search-rescue-damon-pkg-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_D0649AE3-36F5-F830-F112-E2CC9D25D84E”},{“descriptionPlainText”:”CNN’s Arwa Damon is in Beirut, Lebanon, where rescue crews are undertaking a bleak search for missing persons and beginning the long cleanup process after a massive explosion devastated the city.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200809121349-arwa-damon-reports-from-the-site-of-the-explosion-in-beirut-large-169.jpg”,”title”:”CNN’s Arwa Damon reports from the site of the explosion in Beirut “,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/09/beirut-blast-aftermath-damon-dnt-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/09/beirut-blast-aftermath-damon-dnt-vpx.cnn”,”videoId”:”world/2020/08/09/beirut-blast-aftermath-damon-dnt-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/09/beirut-blast-aftermath-damon-dnt-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_0E6FDAEB-1DA7-1860-3D1F-DBA61379DD29″},{“descriptionPlainText”:”Widely regarded as the greatest ever Asian basketball player, Fadi El Khatib is weeping for Lebanon. The former pro basketball player faces ruin after the port explosion in Beirut on August 4. The father of four has lost his home and business, both shattered and damaged due to the incident.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200807083450-03-fadi-el-khatib-file-large-169.jpg”,”title”:”The ‘Lebanese Tiger’ on Beirut blast: What you see on TV is nothing compared to reality”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/08/07/fadi-el-khatib-basketball-hero-lebanon-beirut-explosion-charity-spt-intl-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/08/07/fadi-el-khatib-basketball-hero-lebanon-beirut-explosion-charity-spt-intl-lon-orig.cnn”,”videoId”:”sports/2020/08/07/fadi-el-khatib-basketball-hero-lebanon-beirut-explosion-charity-spt-intl-lon-orig.cnn”,”videoUrl”:”/videos/sports/2020/08/07/fadi-el-khatib-basketball-hero-lebanon-beirut-explosion-charity-spt-intl-lon-orig.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_E67B6238-1746-0DA5-210D-DDA282101C0E”},{“descriptionPlainText”:”After a deadly explosion shook Beirut, Lebanon, killing at least 154 people and injuring at least 5,000, protesters gathered in the city to demand help, answers and accountability from the government.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200808095012-05-beirut-protest-0808-large-169.jpg”,”title”:”See the scene in Beirut as protesters call for a ‘revolution’ “,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/08/protesters-in-beirut-wedeman-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/08/protesters-in-beirut-wedeman-vpx.cnn”,”videoId”:”world/2020/08/08/protesters-in-beirut-wedeman-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/08/protesters-in-beirut-wedeman-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_E675355F-1832-03C9-13C4-D737C1F39676″},{“descriptionPlainText”:”An Air India Express flight skidded off the runway at Kozhikode Calicut International Airport, officials said.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200807121911-02-calicut-india-plane-crash-large-169.jpg”,”title”:”Plane overshoots runway and crashes in southern India”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/07/plane-crash-kozhikode-international-airport-air-india-express-vedika-sud-intl-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/07/plane-crash-kozhikode-international-airport-air-india-express-vedika-sud-intl-vpx.cnn”,”videoId”:”world/2020/08/07/plane-crash-kozhikode-international-airport-air-india-express-vedika-sud-intl-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/07/plane-crash-kozhikode-international-airport-air-india-express-vedika-sud-intl-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_72095C94-8CE7-8AB7-0780-D776FB67C979″},{“descriptionPlainText”:”Surveillance footage from a museum in Italy shows a tourist sitting on a 200-year old statue and breaking three of its toes off.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200804081153-02-canova-statue-damage-tourist-scli-intl-large-169.jpg”,”title”:”Watch posing tourist snap toes off 19th-century statue”,”videoCMSUrl”:”/video/data/3.0/video/arts/2020/08/04/tourist-breaks-statue-italy-orig-mrg.cnn/index.xml”,”videoLeafUrl”:”/videos/arts/2020/08/04/tourist-breaks-statue-italy-orig-mrg.cnn”,”videoId”:”arts/2020/08/04/tourist-breaks-statue-italy-orig-mrg.cnn”,”videoUrl”:”/videos/arts/2020/08/04/tourist-breaks-statue-italy-orig-mrg.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_DDA2B818-512E-A6C4-4F22-D42F0E6DBF10″},{“descriptionPlainText”:”CNN’s Arwa Damon explains the significance of the Beirut blast and why it’s so different from everything else that Lebanon has been through.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200806171151-beirut-blast-arwa-damon-dv-cover-large-169.jpg”,”title”:”This shook Lebanon like nothing before”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/06/beirut-explosion-arwa-damon-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/06/beirut-explosion-arwa-damon-lon-orig.cnn”,”videoId”:”world/2020/08/06/beirut-explosion-arwa-damon-lon-orig.cnn”,”videoUrl”:”/videos/world/2020/08/06/beirut-explosion-arwa-damon-lon-orig.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_4ECE6F09-E313-80BC-6760-CA7849767885″},{“descriptionPlainText”:”Volunteer efforts on the ground in Beirut, Lebanon, are filling the void left by the state, which has allocated just $66 million to estimated damage worth $5 billion, according to the government of Beirut. CNN’s Ben Wedeman reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200812133634-beirut-lebanon-volunteers-ben-wedeman-pkg-intl-ldn-vpx-00014414-large-169.jpg”,”title”:”Volunteers pick up the pieces as Beirut cries out for help rebuilding”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/12/beirut-lebanon-volunteers-ben-wedeman-pkg-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/12/beirut-lebanon-volunteers-ben-wedeman-pkg-intl-ldn-vpx.cnn”,”videoId”:”world/2020/08/12/beirut-lebanon-volunteers-ben-wedeman-pkg-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/12/beirut-lebanon-volunteers-ben-wedeman-pkg-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_6DB72E58-7E7C-1467-8C58-CE730ACAE701″},{“descriptionPlainText”:”Mauritius continues to clean up the tons of oil spilled into the sea from a wrecked Japanese ship off its shore. The crack in the stranded tanker is widening and risks splitting into two. Journalist Kaori Enjoji reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200812105214-mauritius-oil-spill-screenshot-large-169.jpg”,”title”:”Oil spill creates ‘deluge of black slick’ off Mauritius shore”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/12/mauritius-oil-spill-japanese-tanker-enjoji-lkl-intl-hnk-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/12/mauritius-oil-spill-japanese-tanker-enjoji-lkl-intl-hnk-vpx.cnn”,”videoId”:”world/2020/08/12/mauritius-oil-spill-japanese-tanker-enjoji-lkl-intl-hnk-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/12/mauritius-oil-spill-japanese-tanker-enjoji-lkl-intl-hnk-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_EC9D3921-F176-2091-6E99-C9CEEB432E4E”},{“descriptionPlainText”:”The impact of Covid-19 is being felt in London, where previously bustling streets are now often deserted and some shops are still shuttered. But the British capital has a long history of enduring hardship. CNN’s Phil Black reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200804100515-london-uk-coronavirus-covid-19-pandemic-work-from-home-black-pkg-intl-ldn-vpx-00025826-large-169.jpg”,”title”:”London endured plagues, fires and wars. Will it weather Covid-19?”,”videoCMSUrl”:”/video/data/3.0/video/world/2020/08/04/london-uk-coronavirus-covid-19-pandemic-work-from-home-black-pkg-intl-ldn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2020/08/04/london-uk-coronavirus-covid-19-pandemic-work-from-home-black-pkg-intl-ldn-vpx.cnn”,”videoId”:”world/2020/08/04/london-uk-coronavirus-covid-19-pandemic-work-from-home-black-pkg-intl-ldn-vpx.cnn”,”videoUrl”:”/videos/world/2020/08/04/london-uk-coronavirus-covid-19-pandemic-work-from-home-black-pkg-intl-ldn-vpx.cnn/video/playlists/around-the-world/”,”surrogateKey”:”video_EF16AC20-A33B-8D54-9424-BB17A61BA1AD”}],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/2020/08/12/scotland-aberdeenshire-train-derailment-intl-ldn-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-17bhcrm’,videoDescriptionDivId: ‘js-video_description-17bhcrm’,videoDurationDivId: ‘js-video_duration-17bhcrm’,videoTitleDivId: ‘js-leaf-video_headline-17bhcrm’,videoSourceDivId: ‘js-video_sourceName-17bhcrm’});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(‘


Source : Cnn