‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘sports/2018/07/31/gareth-bale-geraint-thomas-sam-warburton-cardiff-wales-whitchurch-high-school-spt-intl.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/180731130133-whitchurch-high-wall-of-fame-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180731130133-whitchurch-high-wall-of-fame-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180731130133-whitchurch-high-wall-of-fame-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180731130133-whitchurch-high-wall-of-fame-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180731130133-whitchurch-high-wall-of-fame-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180731130133-whitchurch-high-wall-of-fame-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180731130133-whitchurch-high-wall-of-fame-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”One school, three sporting greats. Whitchurch High School has produced Gareth Bale, Sam Warburton and Geraint Thomas. How have they done it?!”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180731130133-whitchurch-high-wall-of-fame-large-169.jpg”,”title”:”The school that produced three sport icons”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/07/31/gareth-bale-geraint-thomas-sam-warburton-cardiff-wales-whitchurch-high-school-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/07/31/gareth-bale-geraint-thomas-sam-warburton-cardiff-wales-whitchurch-high-school-spt-intl.cnn”,”videoId”:”sports/2018/07/31/gareth-bale-geraint-thomas-sam-warburton-cardiff-wales-whitchurch-high-school-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/07/31/gareth-bale-geraint-thomas-sam-warburton-cardiff-wales-whitchurch-high-school-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”CNN heads to the Kodokan. As Rhiannon Jones found out, the Tokyo building is far more than just a headquarters for the global judo community.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/171201082728-kodokan-gymnasium-large-169.jpg”,”title”:”The Kodokan: The HQ and spiritual home of judo”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/07/25/kodokan-home-of-judo-japan-judo-world-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/07/25/kodokan-home-of-judo-japan-judo-world-spt-intl.cnn”,”videoId”:”sports/2018/07/25/kodokan-home-of-judo-japan-judo-world-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/07/25/kodokan-home-of-judo-japan-judo-world-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”The World Cup is now front and center as national teams prepare for the June 14 kick-off. CNN speaks to Super Eagles ace Alex Iwobi about Nigeria’s potential to go far in the competition.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180615231025-iwobi-new-1-on-1-large-169.png”,”title”:”1-on-1 with Alex Wobi: Can Nigeria win the World Cup?”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/05/29/world-cup-super-eagles-alex-wobi-nigeria-interview.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/05/29/world-cup-super-eagles-alex-wobi-nigeria-interview.cnn”,”videoId”:”sports/2018/05/29/world-cup-super-eagles-alex-wobi-nigeria-interview.cnn”,”videoUrl”:”/videos/sports/2018/05/29/world-cup-super-eagles-alex-wobi-nigeria-interview.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”2016 Formula One champion Nico Rosberg takes to the track in Berlin for the first time since his retirement to test the new Gen2 car for Formula E.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180522153935-nico-rosberg-formula-e-gen2-2-large-169.jpg”,”title”:”Nico Rosberg tests the new Gen2 Formula E car”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/05/24/nico-rosberg-gen2-formula-e-car-formula-one-f1-supercharged-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/05/24/nico-rosberg-gen2-formula-e-car-formula-one-f1-supercharged-spt-intl.cnn”,”videoId”:”sports/2018/05/24/nico-rosberg-gen2-formula-e-car-formula-one-f1-supercharged-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/05/24/nico-rosberg-gen2-formula-e-car-formula-one-f1-supercharged-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”Javier Ballesteros’ favorite golf course in the world is Real Golf Pedreña. The views and atmosphere bring back memories of his father, Seve.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180524102235-real-golf-pedrena-golf-course-tease-large-169.jpg”,”title”:”My favorite golf course: Real Golf de Pedreña”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/05/24/javier-ballesteros-dream-golf-course-real-golf-pedrena-spain-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/05/24/javier-ballesteros-dream-golf-course-real-golf-pedrena-spain-spt-intl.cnn”,”videoId”:”sports/2018/05/24/javier-ballesteros-dream-golf-course-real-golf-pedrena-spain-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/05/24/javier-ballesteros-dream-golf-course-real-golf-pedrena-spain-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”When Christa Deguchi moved from Japan to Canada, she renounced the most successful nation in judo in favor of one that has never won an Olympic gold medal.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180523171919-christa-deguchi-intv-tease-large-169.jpg”,”title”:”The judoka who left Japan for judo glory”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/05/23/christa-deguchi-japan-to-canada-judoka-paris-grand-slam-2018-tokyo-2020-judo-world-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/05/23/christa-deguchi-japan-to-canada-judoka-paris-grand-slam-2018-tokyo-2020-judo-world-spt.cnn”,”videoId”:”sports/2018/05/23/christa-deguchi-japan-to-canada-judoka-paris-grand-slam-2018-tokyo-2020-judo-world-spt.cnn”,”videoUrl”:”/videos/sports/2018/05/23/christa-deguchi-japan-to-canada-judoka-paris-grand-slam-2018-tokyo-2020-judo-world-spt.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”Francesco Molinari became the first Italian to win a major tournament after his impressive performance at the Open, but how does he know his own career?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180722193916-molinari-kisses-claret-jug-spt-large-169.jpg”,”title”:”Francesco Molinari gets put to the test”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/07/23/francesco-molinari-us-open-champion-quiz-career-living-golf-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/07/23/francesco-molinari-us-open-champion-quiz-career-living-golf-spt-intl.cnn”,”videoId”:”sports/2018/07/23/francesco-molinari-us-open-champion-quiz-career-living-golf-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/07/23/francesco-molinari-us-open-champion-quiz-career-living-golf-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”Kelly Slater’s Surf Ranch could represent the future of surfing on artificial waves. CNN takes a look at the $30 million project.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180508144205-surf-ranch-wsl-kelly-slater-gabriel-medina-large-169.jpg”,”title”:” Is $30 million wave the future of surfing?”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/05/16/world-surf-league-surf-ranch-kelly-slater-lakey-peterson-intl-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/05/16/world-surf-league-surf-ranch-kelly-slater-lakey-peterson-intl-spt.cnn”,”videoId”:”sports/2018/05/16/world-surf-league-surf-ranch-kelly-slater-lakey-peterson-intl-spt.cnn”,”videoUrl”:”/videos/sports/2018/05/16/world-surf-league-surf-ranch-kelly-slater-lakey-peterson-intl-spt.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”Fijian rugby players have a secret weapon — energy-sapping reps on the Sigatoka sand dunes where the views are incredible.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180518104554-fiji-rugby-sevens-sigatoka-sand-dunes-nadroga-intl-spt-00003001-large-169.jpg”,”title”:”Fiji’s spectacular sand dune workout”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/05/18/fiji-rugby-sevens-sigatoka-sand-dunes-nadroga-intl-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/05/18/fiji-rugby-sevens-sigatoka-sand-dunes-nadroga-intl-spt.cnn”,”videoId”:”sports/2018/05/18/fiji-rugby-sevens-sigatoka-sand-dunes-nadroga-intl-spt.cnn”,”videoUrl”:”/videos/sports/2018/05/18/fiji-rugby-sevens-sigatoka-sand-dunes-nadroga-intl-spt.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”Nicki Shields went to Le Mans, to catch up with Renault’s Sebastien Buemi to see how much simulator training helps when it comes to race-day.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180222111229-formula-e-paris-2017-large-169.jpg”,”title”:”Sebastien Buemi’s Formula E simulator training”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/05/18/sebastien-buemi-simulator-training-renault-edams-supercharged-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/05/18/sebastien-buemi-simulator-training-renault-edams-supercharged-spt-intl.cnn”,”videoId”:”sports/2018/05/18/sebastien-buemi-simulator-training-renault-edams-supercharged-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/05/18/sebastien-buemi-simulator-training-renault-edams-supercharged-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”Nicki Shields had a bad first half of the season with two losses and a draw in the Supercharged RC car race challenge. Can she turn it around in Rome?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180516180958-rc-car-challenge-di-grassi-large-169.jpg”,”title”:”RC car race part 5: The Italian Job”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/05/16/remote-control-car-race-part-5-rome-lucas-di-grassi-supercharged-intl-spt.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/05/16/remote-control-car-race-part-5-rome-lucas-di-grassi-supercharged-intl-spt.cnn”,”videoId”:”sports/2018/05/16/remote-control-car-race-part-5-rome-lucas-di-grassi-supercharged-intl-spt.cnn”,”videoUrl”:”/videos/sports/2018/05/16/remote-control-car-race-part-5-rome-lucas-di-grassi-supercharged-intl-spt.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”From veganism to solar panels, chairman Dale Vince explains why the aptly named Forest Green Rovers is the greenest football club in the world.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/161114104211-forest-green-rovers-tease-large-169.jpg”,”title”:”The ‘greenest football club in the world'”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/08/03/forest-green-rovers-eco-arena-greenest-football-club-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/08/03/forest-green-rovers-eco-arena-greenest-football-club-spt-intl.cnn”,”videoId”:”sports/2018/08/03/forest-green-rovers-eco-arena-greenest-football-club-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/08/03/forest-green-rovers-eco-arena-greenest-football-club-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”Queen Elizabeth II has been a fan of horse racing from a very young age and her passion making her relationship with Royal Ascot all the more special.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180725104220-queen-horse-windsor-large-169.jpg”,”title”:”The Queen’s love of Racing”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/07/25/the-queen-britain-royal-ascot-horse-racing-winning-post-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/07/25/the-queen-britain-royal-ascot-horse-racing-winning-post-spt-intl.cnn”,”videoId”:”sports/2018/07/25/the-queen-britain-royal-ascot-horse-racing-winning-post-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/07/25/the-queen-britain-royal-ascot-horse-racing-winning-post-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”Lawson Craddock became finished last place in the Tour de France, claiming the Lanterne Rouge, but won something important for his hometown velodrome.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180801174105-lawson-craddock-tour-de-france-large-169.jpg”,”title”:”An inspiring last place Tour de France cyclist”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/08/02/lawson-craddock-tour-de-france-last-place-inspiring-story-cycling-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/08/02/lawson-craddock-tour-de-france-last-place-inspiring-story-cycling-spt-intl.cnn”,”videoId”:”sports/2018/08/02/lawson-craddock-tour-de-france-last-place-inspiring-story-cycling-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/08/02/lawson-craddock-tour-de-france-last-place-inspiring-story-cycling-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”In the land of Ferrari, speed is a way of life. It’s natural that this gets translated to golf. Shane O’Donoghue challenges Renato Paratore to speed golf.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180802111614-speed-golf-italy-renato-paratore-fastest-hole-living-golf-spt-intl-00013127-large-169.jpg”,”title”:”The art of speed golf in Italy”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/08/02/speed-golf-italy-renato-paratore-fastest-hole-living-golf-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/08/02/speed-golf-italy-renato-paratore-fastest-hole-living-golf-spt-intl.cnn”,”videoId”:”sports/2018/08/02/speed-golf-italy-renato-paratore-fastest-hole-living-golf-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/08/02/speed-golf-italy-renato-paratore-fastest-hole-living-golf-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”},{“descriptionPlainText”:”Four rugby players from Leicester Tigers took on timbersports — an extreme sport that involves chopping and sawing wood at speed.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180628102737-leicester-tigers-timbersports-tease-large-169.jpg”,”title”:”Swapping rugby for timbersports”,”videoCMSUrl”:”/video/data/3.0/video/sports/2018/06/29/rugby-timbersports-leicester-tigers-spt-intl.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2018/06/29/rugby-timbersports-leicester-tigers-spt-intl.cnn”,”videoId”:”sports/2018/06/29/rugby-timbersports-leicester-tigers-spt-intl.cnn”,”videoUrl”:”/videos/sports/2018/06/29/rugby-timbersports-leicester-tigers-spt-intl.cnn/video/playlists/international-sport-playlist-general-videos/”}],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/2018/07/31/gareth-bale-geraint-thomas-sam-warburton-cardiff-wales-whitchurch-high-school-spt-intl.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-1hkve8d’,videoDescriptionDivId: ‘js-video_description-1hkve8d’,videoDurationDivId: ‘js-video_duration-1hkve8d’,videoTitleDivId: ‘js-leaf-video_headline-1hkve8d’,videoSourceDivId: ‘js-video_sourceName-1hkve8d’});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