11-year-old skateboarder posts video of horrific fall

0
6

‘);$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/06/02/sky-brown-skateboard-fall-hospital-mh-orig.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/200602160957-sky-brown-tease-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200602160957-sky-brown-tease-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200602160957-sky-brown-tease-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200602160957-sky-brown-tease-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200602160957-sky-brown-tease-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200602160957-sky-brown-tease-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200602160957-sky-brown-tease-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Sky Brown, an 11-year-old British skateboarder, fell from the top of a half pipe while training. Brown hopes to participate in the 2020 Olympics on Great Britain’s first skateboarding team.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200602160957-sky-brown-tease-large-169.jpg”,”title”:”11-year-old skateboarder posts video of horrific fall”,”videoCMSUrl”:”/videos/world/2020/06/02/sky-brown-skateboard-fall-hospital-mh-orig.cnn”,”videoLeafUrl”:”/videos/world/2020/06/02/sky-brown-skateboard-fall-hospital-mh-orig.cnn”,”videoId”:”world/2020/06/02/sky-brown-skateboard-fall-hospital-mh-orig.cnn”,”videoUrl”:”/videos/world/2020/06/02/sky-brown-skateboard-fall-hospital-mh-orig.cnn”,”surrogateKey”:”video_FF07F5E5-B267-6B1B-1A53-76A012F842D7″},{“descriptionPlainText”:”The world’s first 24-hour news network came to life on June 1, 1980. Watch a behind the scenes look at what CNN looked like on its first day.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200529152426-vault-by-cnn-first-day-on-air-2-large-169.jpg”,”title”:”Watch CNN’s very first day on air in 1980″,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/29/cnn-first-day-on-air-vault-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/29/cnn-first-day-on-air-vault-orig.cnn-business”,”videoId”:”business/2020/05/29/cnn-first-day-on-air-vault-orig.cnn-business”,”videoUrl”:”/videos/business/2020/05/29/cnn-first-day-on-air-vault-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_ED311A98-56EF-955C-9585-61BACB434C38″},{“descriptionPlainText”:”US astronauts Robert Behnken and Douglas Hurley have successfully disembarked the SpaceX Crew Dragon capsule and entered the International Space Station.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200531135834-05-spacex-crew-dragon-arrival-0531-screengrab-large-169.jpg”,”title”:”US astronauts welcomed aboard International Space Station”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/31/spacex-crew-dragon-astronauts-space-station-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/31/spacex-crew-dragon-astronauts-space-station-sot-vpx.cnn”,”videoId”:”business/2020/05/31/spacex-crew-dragon-astronauts-space-station-sot-vpx.cnn”,”videoUrl”:”/videos/business/2020/05/31/spacex-crew-dragon-astronauts-space-station-sot-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_E4C83833-EF24-5666-BFE0-6C16A44DFE88″},{“descriptionPlainText”:”President Trump signed an executive order targeting social media companies, after lashing out at Twitter for labeling two of his tweets “potentially misleading.” CNN’s Jon Sarlin talks with CNN Tech Reporter Brian Fung about what Trump’s executive order really means.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200528165054-04-trump-social-media-executive-order-large-169.jpg”,”title”:”Trump’s attack on Twitter might not mean all that much”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/29/trump-section-230-js-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/29/trump-section-230-js-orig.cnn”,”videoId”:”business/2020/05/29/trump-section-230-js-orig.cnn”,”videoUrl”:”/videos/business/2020/05/29/trump-section-230-js-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_67DE58B3-6FB7-BA7C-AAEF-609DDB1ECC2A”},{“descriptionPlainText”:”Online shopping grows every year as many traditional retailers struggle. But in 1998, online shopping was just taking off. Watch CNN’s coverage of Macy’s brand new online store.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200529145543-vault-by-cnn-online-shopping-1-large-169.jpg”,”title”:”This is what online shopping looked like more than 20 years ago”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/29/birth-of-online-shopping-1998-vault-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/29/birth-of-online-shopping-1998-vault-orig.cnn-business”,”videoId”:”business/2020/05/29/birth-of-online-shopping-1998-vault-orig.cnn-business”,”videoUrl”:”/videos/business/2020/05/29/birth-of-online-shopping-1998-vault-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_F44D5C9E-5D60-2BCB-CB36-61A6862621E0″},{“descriptionPlainText”:”Jester King Brewery has turned its space into hiking trails and gathering spaces to accommodate social distancing.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200529094427-jester-king-02-large-169.jpg”,”title”:”How this Austin brewery is getting creative with its space during the pandemic”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/29/fresh-money-jester-king-brewery-orig-jg.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/29/fresh-money-jester-king-brewery-orig-jg.cnn-business”,”videoId”:”business/2020/05/29/fresh-money-jester-king-brewery-orig-jg.cnn-business”,”videoUrl”:”/videos/business/2020/05/29/fresh-money-jester-king-brewery-orig-jg.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_B8275FA8-7D0C-2BD9-F1C0-609FB2968E6B”},{“descriptionPlainText”:”T.J.Maxx’s business model is built on shoppers treasure hunting for bargains. Here’s why the brand could be a rare retail winner after the pandemic.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200528201251-tjmaxx-covid-recession-large-169.jpg”,”title”:”Is T.J.Maxx recession-proof?”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/29/tjmaxx-recession-covid-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/29/tjmaxx-recession-covid-orig.cnn-business”,”videoId”:”business/2020/05/29/tjmaxx-recession-covid-orig.cnn-business”,”videoUrl”:”/videos/business/2020/05/29/tjmaxx-recession-covid-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_A484C41F-050C-34C9-5F1B-5DBAAC1B108A”},{“descriptionPlainText”:”In an early interview with CNN, SpaceX founder Elon Musk explained how he could work with NASA and his vision for the future of space travel.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200529150210-vault-by-cnn-elon-musk-large-169.jpg”,”title”:”Elon Musk told CNN in 2004 how he could help NASA”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/30/elon-musk-future-of-space-travel-2004-vault-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/30/elon-musk-future-of-space-travel-2004-vault-orig.cnn-business”,”videoId”:”business/2020/05/30/elon-musk-future-of-space-travel-2004-vault-orig.cnn-business”,”videoUrl”:”/videos/business/2020/05/30/elon-musk-future-of-space-travel-2004-vault-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_2CCC54DD-A670-9961-8B32-66DA12206924″},{“descriptionPlainText”:”Mukesh Ambani has ambitious plans for his mobile carrier and technology juggernaut Jio Platforms. Facebook and other American companies are investing billions in his vision for India’s internet.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200529110345-mukesh-ambani-getty-2018-large-169.jpg”,”title”:”Asia’s richest man wants to build the next tech giant”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/29/mukesh-ambani-jio-platforms-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/29/mukesh-ambani-jio-platforms-orig.cnn-business”,”videoId”:”business/2020/05/29/mukesh-ambani-jio-platforms-orig.cnn-business”,”videoUrl”:”/videos/business/2020/05/29/mukesh-ambani-jio-platforms-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_59DE6EBB-BFCF-EE77-8C0A-60BB8865ACFE”},{“descriptionPlainText”:”Peter Papas changed the business plan for his men’s clothing company, Blade & Blue, while fulfilling a dire need during the pandemic.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200515074621-peter-papas-fm-still-1-large-169.jpg”,”title”:”He pivoted from making clothes to making masks”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/15/fresh-money-blade-and-blue-peter-papas-orig-jg.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/15/fresh-money-blade-and-blue-peter-papas-orig-jg.cnn-business”,”videoId”:”business/2020/05/15/fresh-money-blade-and-blue-peter-papas-orig-jg.cnn-business”,”videoUrl”:”/videos/business/2020/05/15/fresh-money-blade-and-blue-peter-papas-orig-jg.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_3E5DBAA4-6867-6DE5-6127-18210DEAFC87″},{“descriptionPlainText”:”As Beijing moves to tighten its grip on Hong Kong, the United States may soon terminate its special economic and trading relationship with the territory. CNN’s Kristi Lu Stout reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200529123616-hong-kong-large-169.jpg”,”title”:”Hong Kong’s trading relationship with US at risk”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/29/hong-kong-us-trade-china-security-law.cnnbusiness/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/29/hong-kong-us-trade-china-security-law.cnnbusiness”,”videoId”:”business/2020/05/29/hong-kong-us-trade-china-security-law.cnnbusiness”,”videoUrl”:”/videos/business/2020/05/29/hong-kong-us-trade-china-security-law.cnnbusiness/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_343E9BAC-377E-3752-D1C5-6132E25C234C”},{“descriptionPlainText”:”SpaceX Senior Advisor and former NASA Astronaut Garrett Reisman explains why SpaceX’s Crew Dragon launch is significant and how it could give the US a future to look forward to.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200527172048-66-spacex-nasa-0527-post-scrub-large-169.jpg”,”title”:”Fmr. astronaut: Launches have brought the country together before”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/29/spacex-nasa-astronaut-launch-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/29/spacex-nasa-astronaut-launch-orig.cnn-business”,”videoId”:”business/2020/05/29/spacex-nasa-astronaut-launch-orig.cnn-business”,”videoUrl”:”/videos/business/2020/05/29/spacex-nasa-astronaut-launch-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_34CFECA4-03FD-8522-55B5-624FEC077512″},{“descriptionPlainText”:”Miscellaneous Distillery in Mount Airy, Maryland, transitioned production to make hand sanitizer for donation to non-profit partner Meals on Wheels. CNN Photojournalist Amanda Swinhart takes us there.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200528132333-maryland-distillery-produces-hand-sanitizer-for-meals-on-wheels-00004209-large-169.jpg”,”title”:”Maryland distillery produces hand sanitizer for local non-profit”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/28/maryland-distillery-produces-hand-sanitizer-for-meals-on-wheels-pkg.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/28/maryland-distillery-produces-hand-sanitizer-for-meals-on-wheels-pkg.cnn”,”videoId”:”business/2020/05/28/maryland-distillery-produces-hand-sanitizer-for-meals-on-wheels-pkg.cnn”,”videoUrl”:”/videos/business/2020/05/28/maryland-distillery-produces-hand-sanitizer-for-meals-on-wheels-pkg.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_B90D2D31-7D23-AD39-9446-5CA221CDFCC5″},{“descriptionPlainText”:”Twitter placed a fact-check label on some of President Trump’s tweets. Mark Zuckerberg responded saying Facebook has “a different policy,” as President Trump threatens to curtail the power of large social media platforms.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200528104346-dorsey-zuckerberg-split-large-169.jpg”,”title”:”Facebook and Twitter clash over fact-checking”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/28/facebook-twitter-fact-check-trump-executive-order.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/28/facebook-twitter-fact-check-trump-executive-order.cnn-business”,”videoId”:”business/2020/05/28/facebook-twitter-fact-check-trump-executive-order.cnn-business”,”videoUrl”:”/videos/business/2020/05/28/facebook-twitter-fact-check-trump-executive-order.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_704B6AA2-BC88-84CD-32E4-5B9EDC44ABB8″},{“descriptionPlainText”:”CNBC “Squawk Box” co-hosts Andrew Sorkin and Joe Kernen had a heated moment on TV about their divided coverage of the Covid-19 pandemic.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200527131132-cnbc-andrew-ross-sorkin-joe-kernen-large-169.jpg”,”title”:”CNBC anchors spar over Covid-19 coverage”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/27/cnbc-andrew-ross-sorkin-joe-kernen-covid-coverage-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/27/cnbc-andrew-ross-sorkin-joe-kernen-covid-coverage-orig.cnn-business”,”videoId”:”business/2020/05/27/cnbc-andrew-ross-sorkin-joe-kernen-covid-coverage-orig.cnn-business”,”videoUrl”:”/videos/business/2020/05/27/cnbc-andrew-ross-sorkin-joe-kernen-covid-coverage-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_1D821810-9A8E-A52C-7D69-571B89EAB0D0″},{“descriptionPlainText”:”As one county in a key swing state reopens, some of its small business owners are divided on how President Donald Trump has handled the Covid-19 pandemic. CNN’s Miguel Marquez reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200527195536-lori-lockridge-marquez-pkg-0527-large-169.jpg”,”title”:”Swing state voters torn on Trump’s handling of pandemic”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/05/27/wisconsin-small-business-owners-divided-trump-coronavirus-marquez-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/05/27/wisconsin-small-business-owners-divided-trump-coronavirus-marquez-ebof-vpx.cnn”,”videoId”:”business/2020/05/27/wisconsin-small-business-owners-divided-trump-coronavirus-marquez-ebof-vpx.cnn”,”videoUrl”:”/videos/business/2020/05/27/wisconsin-small-business-owners-divided-trump-coronavirus-marquez-ebof-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_352A4C26-9F5B-47AF-C4EF-58889DD721FF”}],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/06/02/sky-brown-skateboard-fall-hospital-mh-orig.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-1yq9d17’,videoDescriptionDivId: ‘js-video_description-1yq9d17’,videoDurationDivId: ‘js-video_duration-1yq9d17’,videoTitleDivId: ‘js-leaf-video_headline-1yq9d17’,videoSourceDivId: ‘js-video_sourceName-1yq9d17’});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 link

LEAVE A REPLY