Agassi: From wild child to role model

0
606


‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘sports/2016/08/18/spc-open-court-andre-agassi-croatia-interview.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnn.com_worldsport_tennis_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160818152700-spc-open-court-andre-agassi-croatia-interview-00042503-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160818152700-spc-open-court-andre-agassi-croatia-interview-00042503-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160818152700-spc-open-court-andre-agassi-croatia-interview-00042503-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160818152700-spc-open-court-andre-agassi-croatia-interview-00042503-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160818152700-spc-open-court-andre-agassi-croatia-interview-00042503-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160818152700-spc-open-court-andre-agassi-croatia-interview-00042503-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160818152700-spc-open-court-andre-agassi-croatia-interview-00042503-small-11.jpg”}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Ten years after retiring from the sport, tennis legend Andre Agassi talks to Open Court about his remarkable career and life after tennis.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160818152700-spc-open-court-andre-agassi-croatia-interview-00042503-large-169.jpg”,”title”:”Andre Agassi: from wild child to role model”,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/08/18/spc-open-court-andre-agassi-croatia-interview.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2016/08/18/spc-open-court-andre-agassi-croatia-interview.cnn”,”videoId”:”sports/2016/08/18/spc-open-court-andre-agassi-croatia-interview.cnn”,”videoUrl”:”/videos/sports/2016/08/18/spc-open-court-andre-agassi-croatia-interview.cnn/video/playlists/open-court-august-show/”},{“descriptionPlainText”:”Over 700,000 people will pile into New York’s Arthur Ashe Stadium for the 2016 US Open to see tennis stars Novak Djokovic, Serena Williams and Andy Murray.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160826151127-djokovic-us-open-trophy-lift-2015-large-169.jpg”,”title”:”US Open: The Big Apple’s biggest show “,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/08/26/us-open-tennis-flushing-meadows-novak-djokovic-andy-murray-serena-williams-pkg.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2016/08/26/us-open-tennis-flushing-meadows-novak-djokovic-andy-murray-serena-williams-pkg.cnn”,”videoId”:”sports/2016/08/26/us-open-tennis-flushing-meadows-novak-djokovic-andy-murray-serena-williams-pkg.cnn”,”videoUrl”:”/videos/sports/2016/08/26/us-open-tennis-flushing-meadows-novak-djokovic-andy-murray-serena-williams-pkg.cnn/video/playlists/open-court-august-show/”},{“descriptionPlainText”:”World number two Angelique Kerber reveals her tips for getting grand slam fit – just in time for the final slam of the year.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160818150141-angelique-kerber-workout-large-169.png”,”title”:”Angelique Kerber: How the gym has changed my tennis”,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/08/18/spc-open-court-angelique-kerber-workout.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2016/08/18/spc-open-court-angelique-kerber-workout.cnn”,”videoId”:”sports/2016/08/18/spc-open-court-angelique-kerber-workout.cnn”,”videoUrl”:”/videos/sports/2016/08/18/spc-open-court-angelique-kerber-workout.cnn/video/playlists/open-court-august-show/”},{“descriptionPlainText”:”What you need to know about the new roof that will shelter Arthur Ashe stadium from the rain.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160818144909-arthur-ashe-stadium-roof-large-169.jpg”,”title”:”U.S. Open 2016: $150 million roof gives slam new look”,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/08/18/spc-open-court-us-open-new-roof-numbers.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2016/08/18/spc-open-court-us-open-new-roof-numbers.cnn”,”videoId”:”sports/2016/08/18/spc-open-court-us-open-new-roof-numbers.cnn”,”videoUrl”:”/videos/sports/2016/08/18/spc-open-court-us-open-new-roof-numbers.cnn/video/playlists/open-court-august-show/”},{“descriptionPlainText”:”CNN Open Court traveled to Rhode Island to see how a gifted team of silversmiths craft the U.S. Open trophy.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160818144601-spc-open-court-us-open-trophy-00030327-large-169.jpg”,”title”:”Silver service: The making of the U.S. Open trophy”,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/08/18/spc-open-court-us-open-trophy.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2016/08/18/spc-open-court-us-open-trophy.cnn”,”videoId”:”sports/2016/08/18/spc-open-court-us-open-trophy.cnn”,”videoUrl”:”/videos/sports/2016/08/18/spc-open-court-us-open-trophy.cnn/video/playlists/open-court-august-show/”},{“descriptionPlainText”:”In a rare interview, tennis great Steffi Graf talks about Serena Williams’ plans to break the 22 grand slam singles record they both share.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160818151600-steffi-graf-rio-2016-interview-large-169.png”,”title”:”Steffi Graf: ‘I hope Serena breaks grand slam record'”,”videoCMSUrl”:”/video/data/3.0/video/sports/2016/08/18/spc-open-court-steffi-graf-rio-interview.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2016/08/18/spc-open-court-steffi-graf-rio-interview.cnn”,”videoId”:”sports/2016/08/18/spc-open-court-steffi-graf-rio-interview.cnn”,”videoUrl”:”/videos/sports/2016/08/18/spc-open-court-steffi-graf-rio-interview.cnn/video/playlists/open-court-august-show/”}],currentVideoCollectionId = ”,isLivePlayer = false,mediaMetadataCallbacks,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, 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:”sports/2016/08/18/spc-open-court-andre-agassi-croatia-interview.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-aa9ilm’,videoDescriptionDivId: ‘js-video_description-aa9ilm’,videoDurationDivId: ‘js-video_duration-aa9ilm’,videoTitleDivId: ‘js-leaf-video_headline-aa9ilm’,videoSourceDivId: ‘js-video_sourceName-aa9ilm’});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