‘);$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/09/07/senior-golf-look-at-nick-faldo-colin-montgomerie-nick-price-living-golf-spc.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnn.com_worldsport_golf_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160125175226-nick-faldo-yellow-jumper-1987-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160125175226-nick-faldo-yellow-jumper-1987-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160125175226-nick-faldo-yellow-jumper-1987-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160125175226-nick-faldo-yellow-jumper-1987-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160125175226-nick-faldo-yellow-jumper-1987-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160125175226-nick-faldo-yellow-jumper-1987-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/160125175226-nick-faldo-yellow-jumper-1987-small-11.jpg”}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”In the September edition of Living Golf, Shane O’Donoghue looks at the senior game in golf, speaking to legends like Nick Faldo and Colin Montgomerie.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160125175226-nick-faldo-yellow-jumper-1987-large-169.jpg”,”title”:”A look at the senior game in golf”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/09/07/senior-golf-look-at-nick-faldo-colin-montgomerie-nick-price-living-golf-spc.cnn/index.xml”,”videoId”:”sports/2017/09/07/senior-golf-look-at-nick-faldo-colin-montgomerie-nick-price-living-golf-spc.cnn”,”videoUrl”:”/videos/sports/2017/09/07/senior-golf-look-at-nick-faldo-colin-montgomerie-nick-price-living-golf-spc.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”2014 ANA Inspiration champ Lexi Thompson knows all about good golfing days, but what about her perfect day? Pancakes and golf with Usain Bolt.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170926113528-lexi-thompson-large-169.jpg”,”title”:”Bolt and pancakes: Lexi Thompson’s perfect day”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/10/02/lexi-thompson-perfect-day-augusta-pancakes-usain-bolt-justin-timberlake-living-golf-orig.cnn/index.xml”,”videoId”:”sports/2017/10/02/lexi-thompson-perfect-day-augusta-pancakes-usain-bolt-justin-timberlake-living-golf-orig.cnn”,”videoUrl”:”/videos/sports/2017/10/02/lexi-thompson-perfect-day-augusta-pancakes-usain-bolt-justin-timberlake-living-golf-orig.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”Justin Thomas lifted the FedEx Cup and collected a $10 million bonus, but the American admitted to initially being upset despite taking home a windfall.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170925110626-justin-thomas-large-169.jpg”,”title”:”Justin Thomas’s ‘weird’ $10m golf weekend”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/09/25/justin-thomas-fedex-champion-golf-1-on-1-intv.cnn/index.xml”,”videoId”:”sports/2017/09/25/justin-thomas-fedex-champion-golf-1-on-1-intv.cnn”,”videoUrl”:”/videos/sports/2017/09/25/justin-thomas-fedex-champion-golf-1-on-1-intv.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”Jordan Spieth and Justin Thomas are just two buddies who love to golf. They just so happen to have four major titles between them. But who is funnier?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170921174327-justin-and-jordan-funny-quickfire-tease-large-169.jpg”,”title”:”Justin and Jordan: Quickfire challenge”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/09/21/jordan-spieth-justin-thomas-quickfire-challenge-tour-championship-pga-orig.cnn/index.xml”,”videoId”:”sports/2017/09/21/jordan-spieth-justin-thomas-quickfire-challenge-tour-championship-pga-orig.cnn”,”videoUrl”:”/videos/sports/2017/09/21/jordan-spieth-justin-thomas-quickfire-challenge-tour-championship-pga-orig.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”3-time major winner Jordan Spieth and 2017 PGA Championship winner Justin Thomas talk about their seasons and friendship/rivalry on & off the golf course.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170921104450-justin-and-jordan-tease-large-169.jpg”,”title”:”Jordan and Justin: From kids to pro golfers”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/09/21/jordan-spieth-justin-thomas-conversation-tour-championship-pga-golf-intv.cnn/index.xml”,”videoId”:”sports/2017/09/21/jordan-spieth-justin-thomas-conversation-tour-championship-pga-golf-intv.cnn”,”videoUrl”:”/videos/sports/2017/09/21/jordan-spieth-justin-thomas-conversation-tour-championship-pga-golf-intv.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”PGA.com’s Brian Katrek looks at some of the Tour Championship favorites including Justin Thomas and Jordan Spieth.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170813193215-thomas-trophy-large-169.jpg”,”title”:”Golf’s $10 million prize up for grabs “,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/09/20/golfs-10-million-prize-up-for-grabs.cnn/index.xml”,”videoId”:”sports/2017/09/20/golfs-10-million-prize-up-for-grabs.cnn”,”videoUrl”:”/videos/sports/2017/09/20/golfs-10-million-prize-up-for-grabs.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”Three-time major winner Nick Price would have loved to golf with former UK Prime Minister Winston Churchill, but what else would make his perfect day?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170830145933-nick-price-perfect-day-tease-large-169.jpg”,”title”:”Golf with Churchill? Nick Price’s perfect day”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/08/30/nick-price-perfect-day-open-championship-pga-living-golf-orig.cnn/index.xml”,”videoId”:”sports/2017/08/30/nick-price-perfect-day-open-championship-pga-living-golf-orig.cnn”,”videoUrl”:”/videos/sports/2017/08/30/nick-price-perfect-day-open-championship-pga-living-golf-orig.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”2-time major winner Stacy Lewis hadn’t won a golf tournament since 2014, but pulled out an LPGA tournament victory when it meant the most.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170904204912-lpga-stacy-lewis-hurricane-harvey-relief-bpr-00001312-large-169.jpg”,”title”:”LPGA’s Stacy Lewis wins for Houston”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/09/05/lpga-stacy-lewis-hurricane-harvey-relief-bpr.cnn/index.xml”,”videoId”:”sports/2017/09/05/lpga-stacy-lewis-hurricane-harvey-relief-bpr.cnn”,”videoUrl”:”/videos/sports/2017/09/05/lpga-stacy-lewis-hurricane-harvey-relief-bpr.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”CNN’s Shane O’Donoghue gets the chance of a lifetime: to caddy for one of his golf heroes and all-time greats, Nick Faldo.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170802165006-nick-faldo-shane-odonoghue-large-169.jpg”,”title”:”Caddying for an all-time great”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/08/03/nick-faldo-caddy-shane-odonoghue-living-golf.cnn/index.xml”,”videoId”:”tv/2017/08/03/nick-faldo-caddy-shane-odonoghue-living-golf.cnn”,”videoUrl”:”/videos/tv/2017/08/03/nick-faldo-caddy-shane-odonoghue-living-golf.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”Former no. 1 Stacy Lewis calls Muirfield golf club’s vote to allow female members a “great thing” and hopes Tokyo 2020 will follow suit.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170314122156-open-championship-muirfield-large-169.jpg”,”title”:”Stacy Lewis: Muirfield decision ‘great thing'”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/03/15/stacy-lewis-muirfield-admits-women-members-273-years-equality-don-riddell-intv.cnn/index.xml”,”videoId”:”sports/2017/03/15/stacy-lewis-muirfield-admits-women-members-273-years-equality-don-riddell-intv.cnn”,”videoUrl”:”/videos/sports/2017/03/15/stacy-lewis-muirfield-admits-women-members-273-years-equality-don-riddell-intv.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”British golfer Matt Fitzpatrick has known a good golf day or two, but what is the three-time European Tour winner’s perfect day?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170720120756-matthew-fitzpatrick-dp-world-tour-championship-trophy-large-169.jpg”,”title”:”Matt Fitzpatrick’s perfect day? Tuna & Augusta”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/07/21/matt-fitzpatrick-perfect-day-augusta-national-open-championship-masters-living-golf-orig.cnn/index.xml”,”videoId”:”sports/2017/07/21/matt-fitzpatrick-perfect-day-augusta-national-open-championship-masters-living-golf-orig.cnn”,”videoUrl”:”/videos/sports/2017/07/21/matt-fitzpatrick-perfect-day-augusta-national-open-championship-masters-living-golf-orig.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”In June’s Living Golf, Shane O’Donoghue looks at the “fifth” major in golf, the Players Championship, and speaks to Sergio Garcia and Dustin Johnson.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170608131020-living-golf-june-tease-tpc-sawgrass-large-169.jpg”,”title”:”The Players Championship: Golf’s fifth major?”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/06/08/dustin-johnson-sergio-garcia-players-championship-tpc-sawgrass-living-golf-june.cnn/index.xml”,”videoId”:”sports/2017/06/08/dustin-johnson-sergio-garcia-players-championship-tpc-sawgrass-living-golf-june.cnn”,”videoUrl”:”/videos/sports/2017/06/08/dustin-johnson-sergio-garcia-players-championship-tpc-sawgrass-living-golf-june.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”In an interview ahead of the 2017 US Open, world number 1 Dustin Johnson reflects on his 2016 win and how it was motivated by his desire to be great.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170525102235-dustin-johnson-us-open-large-169.jpg”,”title”:”Dustin Johnson: Fed up with just being good”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/06/14/dustin-johnson-us-open-oakmont-memories-living-golf-spc.cnn/index.xml”,”videoId”:”sports/2017/06/14/dustin-johnson-us-open-oakmont-memories-living-golf-spc.cnn”,”videoUrl”:”/videos/sports/2017/06/14/dustin-johnson-us-open-oakmont-memories-living-golf-spc.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”After finally shedding the title of best golfer to never win a major, Sergio Garcia enters the U.S. Open looking to add to his Masters triumph.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170409211019-sergio-garcia-green-jacket-large-169.jpg”,”title”:”Sergio Garcia reflects on Masters win”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/06/13/sergio-garcia-masters-first-time-major-win-living-golf-spc.cnn/index.xml”,”videoId”:”sports/2017/06/13/sergio-garcia-masters-first-time-major-win-living-golf-spc.cnn”,”videoUrl”:”/videos/sports/2017/06/13/sergio-garcia-masters-first-time-major-win-living-golf-spc.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”In the May 2017 edition of Living Golf, Shane O’Donoghue visits Japan – the world’s 2nd largest golf market – to find out about the history and future of the game.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170426133125-manga-5-large-169.jpg”,”title”:”Golf in the Land of the Rising Sun”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/05/04/japan-tokyo-2020-olympics-isao-aoki-manga-living-golf-may-2017-spc.cnn/index.xml”,”videoId”:”sports/2017/05/04/japan-tokyo-2020-olympics-isao-aoki-manga-living-golf-may-2017-spc.cnn”,”videoUrl”:”/videos/sports/2017/05/04/japan-tokyo-2020-olympics-isao-aoki-manga-living-golf-may-2017-spc.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”He’s one of the most famous athletes on the planet over the last 20 years. Winner of 14 majors, Tiger Woods opens up to Shane O’Donoghue in a CNN exclusive”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170302094041-tiger-woods-exclusive-4-days-dubai-past-present-future-living-golf-march-2017-spc-00015513-large-169.jpg”,”title”:”4 days with Tiger Woods”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/03/02/tiger-woods-exclusive-4-days-dubai-past-present-future-living-golf-march-2017-spc.cnn/index.xml”,”videoId”:”sports/2017/03/02/tiger-woods-exclusive-4-days-dubai-past-present-future-living-golf-march-2017-spc.cnn”,”videoUrl”:”/videos/sports/2017/03/02/tiger-woods-exclusive-4-days-dubai-past-present-future-living-golf-march-2017-spc.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”Former world No. 1 Lee Westwood is one happy guy. With 42 pro wins to his name, he definitely knows a good day, but what’s his perfect day like?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171101105628-lee-westwood-happy-tease-large-169.jpg”,”title”:”Lee Westwood’s perfect day? Roast and G&T’s”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/11/01/lee-westwood-perfect-day-royal-birkdale-gin-tonic-sunday-roast-living-golf-orig.cnn/index.xml”,”videoId”:”sports/2017/11/01/lee-westwood-perfect-day-royal-birkdale-gin-tonic-sunday-roast-living-golf-orig.cnn”,”videoUrl”:”/videos/sports/2017/11/01/lee-westwood-perfect-day-royal-birkdale-gin-tonic-sunday-roast-living-golf-orig.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”In the November edition of Living Golf, Shane O’Donoghue takes a look at golf course design with Lee Westwood, course architects and golf tourism.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171102110539-course-design-golf-tourism-lee-westwood-cynthia-dye-living-golf-spc-00044309-large-169.jpg”,”title”:”The world of golf course design”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/11/02/course-design-golf-tourism-lee-westwood-cynthia-dye-living-golf-spc.cnn/index.xml”,”videoId”:”sports/2017/11/02/course-design-golf-tourism-lee-westwood-cynthia-dye-living-golf-spc.cnn”,”videoUrl”:”/videos/sports/2017/11/02/course-design-golf-tourism-lee-westwood-cynthia-dye-living-golf-spc.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”Living Golf heads to the UK, taking in the Irish Open with Rory McIlroy and spending some time with six-time major winner Nick Faldo.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170802180820-nick-faldo-large-169.jpg”,”title”:”Living Golf: A postcard from the UK”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/08/04/spc-rory-mcllroy-nick-faldo-living-golf-august-2017.cnn/index.xml”,”videoId”:”sports/2017/08/04/spc-rory-mcllroy-nick-faldo-living-golf-august-2017.cnn”,”videoUrl”:”/videos/sports/2017/08/04/spc-rory-mcllroy-nick-faldo-living-golf-august-2017.cnn/video/playlists/living-golf/”},{“descriptionPlainText”:”10-time major winner Annika Sorenstam tells Shane O’Donoghue about fighting gender assumptions in world of golf course design.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171009092448-sorenstam-solheim-captain-large-169.jpg”,”title”:”Course design ‘shouldn’t be gender question'”,”videoCMSUrl”:”/video/data/3.0/video/sports/2017/10/09/annika-sorenstam-sexism-course-design-living-golf-spc.cnn/index.xml”,”videoId”:”sports/2017/10/09/annika-sorenstam-sexism-course-design-living-golf-spc.cnn”,”videoUrl”:”/videos/sports/2017/10/09/annika-sorenstam-sexism-course-design-living-golf-spc.cnn/video/playlists/living-golf/”}],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, isVideoReplayClicked, 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/09/07/senior-golf-look-at-nick-faldo-colin-montgomerie-nick-price-living-golf-spc.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-1oncalo’,videoDescriptionDivId: ‘js-video_description-1oncalo’,videoDurationDivId: ‘js-video_duration-1oncalo’,videoTitleDivId: ‘js-leaf-video_headline-1oncalo’,videoSourceDivId: ‘js-video_sourceName-1oncalo’});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