‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘sports/2017/03/20/spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnn.com_specialreports_alpineedge_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170320064112-spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen-00003125-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170320064112-spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen-00003125-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170320064112-spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen-00003125-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170320064112-spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen-00003125-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170320064112-spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen-00003125-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170320064112-spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen-00003125-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”http://i2.cdn.cnn.com/cnnnext/dam/assets/170320064112-spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen-00003125-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“videoCMSUrl”:”/videos/sports/2017/03/20/spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen.cnn”,”videoId”:”sports/2017/03/20/spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen.cnn”,”videoUrl”:”/videos/sports/2017/03/20/spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen.cnn”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2016/04/14/golden-state-warriors-nba-record-73-wins-live-simon.cnn/index.xml”,”videoId”:”sports/2016/04/14/golden-state-warriors-nba-record-73-wins-live-simon.cnn”,”videoUrl”:”/videos/sports/2016/04/14/golden-state-warriors-nba-record-73-wins-live-simon.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2016/04/01/festus-ezeli-lyft-prank-warrios-wire-es.cnn/index.xml”,”videoId”:”sports/2016/04/01/festus-ezeli-lyft-prank-warrios-wire-es.cnn”,”videoUrl”:”/videos/sports/2016/04/01/festus-ezeli-lyft-prank-warrios-wire-es.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2016/01/11/new-york-knicks-krystaps-porzingis-interview-don-riddell.cnn/index.xml”,”videoId”:”sports/2016/01/11/new-york-knicks-krystaps-porzingis-interview-don-riddell.cnn”,”videoUrl”:”/videos/sports/2016/01/11/new-york-knicks-krystaps-porzingis-interview-don-riddell.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/entertainment/2016/03/24/egg-spa-chicken-shaquille-oneal-carbonaro-effect.trutv/index.xml”,”videoId”:”entertainment/2016/03/24/egg-spa-chicken-shaquille-oneal-carbonaro-effect.trutv”,”videoUrl”:”/videos/entertainment/2016/03/24/egg-spa-chicken-shaquille-oneal-carbonaro-effect.trutv/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/entertainment/2016/02/11/bleacher-peyton-manning-magic-johnson-egg-newday.cnn/index.xml”,”videoId”:”entertainment/2016/02/11/bleacher-peyton-manning-magic-johnson-egg-newday.cnn”,”videoUrl”:”/videos/entertainment/2016/02/11/bleacher-peyton-manning-magic-johnson-egg-newday.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2016/01/14/nba-looking-to-globally-expand-adam-silver-interview-alex-thomas.cnn/index.xml”,”videoId”:”sports/2016/01/14/nba-looking-to-globally-expand-adam-silver-interview-alex-thomas.cnn”,”videoUrl”:”/videos/sports/2016/01/14/nba-looking-to-globally-expand-adam-silver-interview-alex-thomas.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2016/02/05/obama-golden-state-warriors-luke-walton-credit-sot.cnn/index.xml”,”videoId”:”sports/2016/02/05/obama-golden-state-warriors-luke-walton-credit-sot.cnn”,”videoUrl”:”/videos/sports/2016/02/05/obama-golden-state-warriors-luke-walton-credit-sot.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2016/02/16/manny-pacquiao-apology-compare-gays-to-animals-sot-ws.cnn/index.xml”,”videoId”:”sports/2016/02/16/manny-pacquiao-apology-compare-gays-to-animals-sot-ws.cnn”,”videoUrl”:”/videos/sports/2016/02/16/manny-pacquiao-apology-compare-gays-to-animals-sot-ws.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2016/01/24/shaquille-oneal-surprise-basketball-game-viral-video-nr.cnn/index.xml”,”videoId”:”us/2016/01/24/shaquille-oneal-surprise-basketball-game-viral-video-nr.cnn”,”videoUrl”:”/videos/us/2016/01/24/shaquille-oneal-surprise-basketball-game-viral-video-nr.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2016/02/05/jerry-rice-undercover-lyft-driver-surprise-vstan-orig-cws.cnn/index.xml”,”videoId”:”us/2016/02/05/jerry-rice-undercover-lyft-driver-surprise-vstan-orig-cws.cnn”,”videoUrl”:”/videos/us/2016/02/05/jerry-rice-undercover-lyft-driver-surprise-vstan-orig-cws.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/world/2016/02/13/stephen-curry-nba-digital.cnn/index.xml”,”videoId”:”world/2016/02/13/stephen-curry-nba-digital.cnn”,”videoUrl”:”/videos/world/2016/02/13/stephen-curry-nba-digital.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2016/02/15/mls-soccer-la-galaxy-steven-gerrard-intv.cnn/index.xml”,”videoId”:”sports/2016/02/15/mls-soccer-la-galaxy-steven-gerrard-intv.cnn”,”videoUrl”:”/videos/sports/2016/02/15/mls-soccer-la-galaxy-steven-gerrard-intv.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/entertainment/2015/05/07/orig-shaq-falls-on-tnt-set.cnn/index.xml”,”videoId”:”entertainment/2015/05/07/orig-shaq-falls-on-tnt-set.cnn”,”videoUrl”:”/videos/entertainment/2015/05/07/orig-shaq-falls-on-tnt-set.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2015/12/27/peyton-manning-doping-accusations-nichols-bpr.cnn/index.xml”,”videoId”:”sports/2015/12/27/peyton-manning-doping-accusations-nichols-bpr.cnn”,”videoUrl”:”/videos/sports/2015/12/27/peyton-manning-doping-accusations-nichols-bpr.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2016/01/19/tennis-match-fixing-allegations-intv.cnn/index.xml”,”videoId”:”sports/2016/01/19/tennis-match-fixing-allegations-intv.cnn”,”videoUrl”:”/videos/sports/2016/01/19/tennis-match-fixing-allegations-intv.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2015/12/23/sports-top-10-year-in-review-pkg-nichols.cnn/index.xml”,”videoId”:”us/2015/12/23/sports-top-10-year-in-review-pkg-nichols.cnn”,”videoUrl”:”/videos/us/2015/12/23/sports-top-10-year-in-review-pkg-nichols.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2015/12/24/nba-gun-violence-psa-nichols-nr.cnn/index.xml”,”videoId”:”sports/2015/12/24/nba-gun-violence-psa-nichols-nr.cnn”,”videoUrl”:”/videos/sports/2015/12/24/nba-gun-violence-psa-nichols-nr.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/us/2015/06/26/peyton-manning-gift-to-drunk-driver-victim-pkg.wfie/index.xml”,”videoId”:”us/2015/06/26/peyton-manning-gift-to-drunk-driver-victim-pkg.wfie”,”videoUrl”:”/videos/us/2015/06/26/peyton-manning-gift-to-drunk-driver-victim-pkg.wfie/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2015/10/15/billie-jean-king-body-image-sports-intv-nichols.cnn/index.xml”,”videoId”:”sports/2015/10/15/billie-jean-king-body-image-sports-intv-nichols.cnn”,”videoUrl”:”/videos/sports/2015/10/15/billie-jean-king-body-image-sports-intv-nichols.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2015/09/13/kelly-slater-surfer-move-judges-vo-ct.cnn/index.xml”,”videoId”:”sports/2015/09/13/kelly-slater-surfer-move-judges-vo-ct.cnn”,”videoUrl”:”/videos/sports/2015/09/13/kelly-slater-surfer-move-judges-vo-ct.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/tv/2015/09/06/welter-nichols-intv.cnn/index.xml”,”videoId”:”tv/2015/09/06/welter-nichols-intv.cnn”,”videoUrl”:”/videos/tv/2015/09/06/welter-nichols-intv.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/tv/2015/09/03/spc-the-circuit-danica-patrick.cnn/index.xml”,”videoId”:”tv/2015/09/03/spc-the-circuit-danica-patrick.cnn”,”videoUrl”:”/videos/tv/2015/09/03/spc-the-circuit-danica-patrick.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/travel/2015/09/02/stand-up-whitewater-paddleboard-orig-nws.cnn/index.xml”,”videoId”:”travel/2015/09/02/stand-up-whitewater-paddleboard-orig-nws.cnn”,”videoUrl”:”/videos/travel/2015/09/02/stand-up-whitewater-paddleboard-orig-nws.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/tv/2015/08/21/history-of-doping-in-sport.cnn/index.xml”,”videoId”:”tv/2015/08/21/history-of-doping-in-sport.cnn”,”videoUrl”:”/videos/tv/2015/08/21/history-of-doping-in-sport.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2015/08/10/brazil-wacky-sports-darlington-pkg.cnn/index.xml”,”videoId”:”sports/2015/08/10/brazil-wacky-sports-darlington-pkg.cnn”,”videoUrl”:”/videos/sports/2015/08/10/brazil-wacky-sports-darlington-pkg.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2015/05/03/pkg-nichols-mayweather-pacquiao.cnn/index.xml”,”videoId”:”sports/2015/05/03/pkg-nichols-mayweather-pacquiao.cnn”,”videoUrl”:”/videos/sports/2015/05/03/pkg-nichols-mayweather-pacquiao.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2015/04/06/orig-novak-djokovic-ball-boy-video-apology.cnn/index.xml”,”videoId”:”sports/2015/04/06/orig-novak-djokovic-ball-boy-video-apology.cnn”,”videoUrl”:”/videos/sports/2015/04/06/orig-novak-djokovic-ball-boy-video-apology.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/sports/2015/03/12/pacquiao-sings-scholes.cnn/index.xml”,”videoId”:”sports/2015/03/12/pacquiao-sings-scholes.cnn”,”videoUrl”:”/videos/sports/2015/03/12/pacquiao-sings-scholes.cnn/video/playlists/the-wild-world-of-sports/”},{“videoCMSUrl”:”/video/data/3.0/video/tv/2015/03/13/nat-pkg-will-ferrell.cnn/index.xml”,”videoId”:”tv/2015/03/13/nat-pkg-will-ferrell.cnn”,”videoUrl”:”/videos/tv/2015/03/13/nat-pkg-will-ferrell.cnn/video/playlists/the-wild-world-of-sports/”}],currentVideoCollectionId = ”,isLivePlayer = false,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 = autoStartVideo;CNN.VideoPlayer.setPlayerProperties(configObj.markupId, autoStartVideo, isLivePlayer, mutePlayerEnabled);CNN.VideoPlayer.setFirstVideoInCollection(currentVideoCollection, configObj.markupId);var embedLinkHandler = {},videoPinner,embedCodeCopy;function onVideoCarouselItemClicked(evt) {‘use strict’;var videoId,articleElem,videoPlayer,thumbImageElem,thumbImageLargeSource,overrides = {videoCollection: this.videoCollection,autostart: false},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) {/* Remove videoobject metadata script.If the user click other than initial loaded video */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 is null that means it’s not initialized yet so* pass in the thumbnail, too.*/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) {/* Remove videoobject metadata script.If the user click other than initial loaded video */jQuery(articleElem).closest(‘.cn-carousel-medium-strip’).parent().find(‘script[name=”metaScript”]’).remove();CNNVIDEOAPI.CNNVideoManager.getInstance().playVideo(configObj.markupId, videoId, overrides);}/* Video player isn’t autoplay, so init itif (shouldStartVideo && this.carouselClickAutostartsVideo) {try {videoPlayer.videoInstance.start();} catch (startError) {console.log(“error in initializing video player” + startError);}}*/}}}} 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:”sports/2017/03/20/spc-alpine-edge-marcel-hirscher-2017-overall-title-aspen.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’) {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.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-w93yci’,videoDescriptionDivId: ‘js-video_description-w93yci’,videoDurationDivId: ‘js-video_duration-w93yci’,videoTitleDivId: ‘js-leaf-video_headline-w93yci’,videoSourceDivId: ‘js-video_sourceName-w93yci’});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