First native win at 'Africa's Major'

0
21


‘);$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/11/13/rolex-minute-africa-golfing-major.rolex-img’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnn.com_specialreports_rolexminute_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“height”:124,”width”:220,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171112202650-rolex-minute-africa-golfing-major-00002125-small-169.jpg”},”xsmall”:{“height”:173,”width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171112202650-rolex-minute-africa-golfing-major-00002125-medium-plus-169.jpg”},”small”:{“height”:259,”width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171112202650-rolex-minute-africa-golfing-major-00002125-large-169.jpg”},”medium”:{“height”:438,”width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171112202650-rolex-minute-africa-golfing-major-00002125-exlarge-169.jpg”},”large”:{“height”:619,”width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171112202650-rolex-minute-africa-golfing-major-00002125-super-169.jpg”},”full16x9″:{“height”:900,”width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171112202650-rolex-minute-africa-golfing-major-00002125-full-169.jpg”},”mini1x1″:{“height”:120,”width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/171112202650-rolex-minute-africa-golfing-major-00002125-small-11.jpg”}}},autoStartVideo = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Branden Grace secured his first title since April 2016 at the exotic Nedbank Golf Challenge on Sunday.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171112202650-rolex-minute-africa-golfing-major-00002125-large-169.jpg”,”title”:”A first native win at Africa’s golfing major”,”videoCMSUrl”:”/videos/sports/2017/11/13/rolex-minute-africa-golfing-major.rolex-img”,”videoId”:”sports/2017/11/13/rolex-minute-africa-golfing-major.rolex-img”,”videoUrl”:”/videos/sports/2017/11/13/rolex-minute-africa-golfing-major.rolex-img”},{“descriptionPlainText”:”Lefay Resort and Spa, Qualia and The Chester Grosvenor were among those chosen for their quality offerings and unique boutique experience.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171109162912-boutique-hotel-qualia-large-169.jpg”,”title”:”World’s Best Boutique Hotels 2017″,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/11/09/worlds-best-boutique-hotels.cnn/index.xml”,”videoId”:”travel/2017/11/09/worlds-best-boutique-hotels.cnn”,”videoUrl”:”/videos/travel/2017/11/09/worlds-best-boutique-hotels.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”All before us is ice. Stretching out for miles there’s nothing but a vast barrier of white. A frozen sea, more than 30 stories tall, as menacing as it is beautiful.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170929181435-eqi-glacier-greenland-large-169.jpg”,”title”:”Exploring Greenland’s falling glacier”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/09/29/hiking-in-greenland-eqi-glacier.cnn/index.xml”,”videoId”:”travel/2017/09/29/hiking-in-greenland-eqi-glacier.cnn”,”videoUrl”:”/videos/travel/2017/09/29/hiking-in-greenland-eqi-glacier.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Waterfalls, remote hiking and panoramic views inspire some to call Greenland’s Disko Island the Grand Canyon of the Arctic.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170920082824-disko-island-coast-27-large-169.jpg”,”title”:”This may be the Grand Canyon of the Arctic”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/10/31/disko-island-greenland.cnn/index.xml”,”videoId”:”travel/2017/10/31/disko-island-greenland.cnn”,”videoUrl”:”/videos/travel/2017/10/31/disko-island-greenland.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Florist to the stars Jeff Leatham, who works at the Four Seasons in Beverly Hills, shares his process for making an elegant statement with flowers.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170728141219-jeff-leatham-florist-to-stars-large-169.jpg”,”title”:”Four Seasons florist Jeff Leatham”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/07/28/florist-four-seasons-jeff-leatham.cnn/index.xml”,”videoId”:”travel/2017/07/28/florist-four-seasons-jeff-leatham.cnn”,”videoUrl”:”/videos/travel/2017/07/28/florist-four-seasons-jeff-leatham.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Taiwan’s most famous culinary export, chef André Chiang shares his thoughts on his homeland’s culture and cuisine.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171003173208-andre-chiang-raw-taiwan-large-169.jpg”,”title”:”What defines Taiwanese cuisine? “,”videoCMSUrl”:”/video/data/3.0/video/foodanddrink/2017/10/03/taiwan-chef-andre-chiang.cnn/index.xml”,”videoId”:”foodanddrink/2017/10/03/taiwan-chef-andre-chiang.cnn”,”videoUrl”:”/videos/foodanddrink/2017/10/03/taiwan-chef-andre-chiang.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”CNN Travel’s Elite Escapes visits the Four Season’s luxury tent complex in Thailand’s Chiang Rai province.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/151221160253-four-seasons-tent-camp-thailand-travel-orig-00000224-large-169.jpg”,”title”:”Play with elephants at this treetop paradise”,”videoCMSUrl”:”/video/data/3.0/video/travel/2015/12/21/four-seasons-tent-camp-thailand-travel-orig.cnn/index.xml”,”videoId”:”travel/2015/12/21/four-seasons-tent-camp-thailand-travel-orig.cnn”,”videoUrl”:”/videos/travel/2015/12/21/four-seasons-tent-camp-thailand-travel-orig.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Volcanoes from the air and on the ground, plus a night at an exclusive Hawaii hideaway. The Four Seasons Hualalai if offering an awe-inspiring helicopter adventure.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171017154914-kilauea-volcano-helicopter-ride-00003402-large-169.jpg”,”title”:”The ultimate volcano adventure”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/10/17/kilauea-volcano-helicopter-ride.cnn/index.xml”,”videoId”:”travel/2017/10/17/kilauea-volcano-helicopter-ride.cnn”,”videoUrl”:”/videos/travel/2017/10/17/kilauea-volcano-helicopter-ride.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”The Inn at Dos Brisas outside Houston offers guests private haciendas, horses and miles of trails, shotgun lessons and the only Forbes 5-Star restaurant in the state.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170127075834-texas-luxury-vacation-00000011-large-169.jpg”,”title”:”Luxury vacationing …Texas-style”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/01/25/texas-luxury-vacation.cnn/index.xml”,”videoId”:”travel/2017/01/25/texas-luxury-vacation.cnn”,”videoUrl”:”/videos/travel/2017/01/25/texas-luxury-vacation.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Art connoisseur? These are the places you’re going to want to hit next time you’re in Beijing. Video by Black Buddha.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171010082258-beijing-best-art-galleries-00000000-large-169.jpg”,”title”:”Top destinations for art lovers in Beijing”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/10/09/beijing-best-art-galleries.cnn/index.xml”,”videoId”:”travel/2017/10/09/beijing-best-art-galleries.cnn”,”videoUrl”:”/videos/travel/2017/10/09/beijing-best-art-galleries.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Award-winning architect Tom Kundig shows off his favorite Seattle buildings and tells the story of how a sixth-grade science teacher influenced his life’s work.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170929152133-tom-kundig-seattle-architecture-nest-large-169.jpg”,”title”:”Architecture tour of Seattle with Tom Kundig”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/09/29/tom-kundig-seattle-architecture.cnn/index.xml”,”videoId”:”travel/2017/09/29/tom-kundig-seattle-architecture.cnn”,”videoUrl”:”/videos/travel/2017/09/29/tom-kundig-seattle-architecture.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Photographers get to film the wildlife of the Galapagos within inches of their cameras.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/140917172238-spc-elite-escapes-galapagos-wildlife-00003419-story-top.jpg”,”title”:”The beautiful wildlife of the Galapagos”,”videoCMSUrl”:”/video/data/3.0/video/international/2014/09/17/spc-elite-escapes-galapagos-wildlife.cnn/index.xml”,”videoId”:”international/2014/09/17/spc-elite-escapes-galapagos-wildlife.cnn”,”videoUrl”:”/videos/international/2014/09/17/spc-elite-escapes-galapagos-wildlife.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”In need of a day of pampering? Seoul barbershop Herr takes personal grooming to the next level. Video by Black Buddha”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171003085116-seoul-luxury-barbershop-00012714-large-169.jpg”,”title”:”In Seoul, the ultimate gentleman’s retreat”,”videoCMSUrl”:”/video/data/3.0/video/travel/2017/10/02/seoul-luxury-barbershop.cnn/index.xml”,”videoId”:”travel/2017/10/02/seoul-luxury-barbershop.cnn”,”videoUrl”:”/videos/travel/2017/10/02/seoul-luxury-barbershop.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Obsessed with Peking duck? Duck de Chine offers one of Beijing’s most memorable dining experiences. Video by Black Buddha”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/150901105746-nanjing-peking-duck-large-169.jpg”,”title”:”Duck de Chine: Beijing’s best Peking duck?”,”videoCMSUrl”:”/video/data/3.0/video/foodanddrink/2017/09/20/peking-duck-de-chine-beijing.cnn/index.xml”,”videoId”:”foodanddrink/2017/09/20/peking-duck-de-chine-beijing.cnn”,”videoUrl”:”/videos/foodanddrink/2017/09/20/peking-duck-de-chine-beijing.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”Elite Escapes goes to Takazawa, one of Tokyo’s most exclusive restaurants.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/140827125825-takazawa-raindrop-story-top.jpg”,”title”:”Has food ever looked this good?”,”videoCMSUrl”:”/video/data/3.0/video/bestoftv/2014/09/03/pkg-spc-elite-escapes-takazawa.cnn/index.xml”,”videoId”:”bestoftv/2014/09/03/pkg-spc-elite-escapes-takazawa.cnn”,”videoUrl”:”/videos/bestoftv/2014/09/03/pkg-spc-elite-escapes-takazawa.cnn/video/playlists/stories-worth-watching/”},{“descriptionPlainText”:”A shop in Taipei, Taiwan, has been charging $325 for its Presidential Beef Noodle Soup. So what’s in Niu Ba Ba’s recipe that justifies the price?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170830110533-taiwan-beef-noodles-niu-ba-ba-presidential-beef-noodles-large-169.jpg”,”title”:”Niu Ba Ba: World’s most expensive beef noodles”,”videoCMSUrl”:”/video/data/3.0/video/foodanddrink/2017/09/01/taiwan-expensive-beef-noodles.cnn/index.xml”,”videoId”:”foodanddrink/2017/09/01/taiwan-expensive-beef-noodles.cnn”,”videoUrl”:”/videos/foodanddrink/2017/09/01/taiwan-expensive-beef-noodles.cnn/video/playlists/stories-worth-watching/”}],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/11/13/rolex-minute-africa-golfing-major.rolex-img”, 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-1zf2onj’,videoDescriptionDivId: ‘js-video_description-1zf2onj’,videoDurationDivId: ‘js-video_duration-1zf2onj’,videoTitleDivId: ‘js-leaf-video_headline-1zf2onj’,videoSourceDivId: ‘js-video_sourceName-1zf2onj’});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