The race to save the Great Barrier Reef

0
24

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘world/2018/06/07/race-to-save-great-barrier-reef-cnni-watson-pkg.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/180607195136-great-barrier-reef-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180607195136-great-barrier-reef-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180607195136-great-barrier-reef-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180607195136-great-barrier-reef-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180607195136-great-barrier-reef-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180607195136-great-barrier-reef-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/180607195136-great-barrier-reef-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”Australia is racing to save the Great Barrier Reef. Scientists estimate 50% of the coral on this natural wonder of the world was killed over the last two years by marine heat waves caused by climate change. Scientists are now testing new techniques ranging from breeding heat resistant coral to developing sun shields and even piloting a robot submersible called the RangerBot. CNN’s Ivan Watson reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180607195136-great-barrier-reef-large-169.jpg”,”title”:”The race to save the Great Barrier Reef”,”videoCMSUrl”:”/videos/world/2018/06/07/race-to-save-great-barrier-reef-cnni-watson-pkg.cnn”,”videoLeafUrl”:”/videos/world/2018/06/07/race-to-save-great-barrier-reef-cnni-watson-pkg.cnn”,”videoId”:”world/2018/06/07/race-to-save-great-barrier-reef-cnni-watson-pkg.cnn”,”videoUrl”:”/videos/world/2018/06/07/race-to-save-great-barrier-reef-cnni-watson-pkg.cnn”},{“descriptionPlainText”:”The Australian government released an updated “Reef 2050 Plan” stating that global warming is causing coral bleaching.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180720170355-great-barrier-reef-1-large-169.jpg”,”title”:”New plan to protect the Great Barrier Reef”,”videoCMSUrl”:”/video/data/3.0/video/travel/2018/07/20/great-barrier-reef-new-plan-orig-mz.cnn/index.xml”,”videoLeafUrl”:”/videos/travel/2018/07/20/great-barrier-reef-new-plan-orig-mz.cnn”,”videoId”:”travel/2018/07/20/great-barrier-reef-new-plan-orig-mz.cnn”,”videoUrl”:”/videos/travel/2018/07/20/great-barrier-reef-new-plan-orig-mz.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”Each year we produce nearly 300 million tons of plastic and by 2050 there will be more of it than fish in our oceans. Here are five things you can do to help reduce your plastic use.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180417183353-eating-plastic-proper-large-169.jpg”,”title”:”Are you eating plastic? “,”videoCMSUrl”:”/video/data/3.0/video/world/2018/04/17/are-you-eating-plastic-lon-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2018/04/17/are-you-eating-plastic-lon-orig.cnn”,”videoId”:”world/2018/04/17/are-you-eating-plastic-lon-orig.cnn”,”videoUrl”:”/videos/world/2018/04/17/are-you-eating-plastic-lon-orig.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”President Obama signs a bill that prohibits selling and distributing products containing microbeads, an ingredient in exfoliating shower gels. Microbeads are tiny particles of plastic that do not dissolve.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/150919135201-microbeads-large-169.jpg”,”title”:”Is your toothpaste polluting the waterways?”,”videoCMSUrl”:”/video/data/3.0/video/us/2015/09/19/8-trillion-microbeads-pollute-waterways-orig-cws.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2015/09/19/8-trillion-microbeads-pollute-waterways-orig-cws.cnn”,”videoId”:”us/2015/09/19/8-trillion-microbeads-pollute-waterways-orig-cws.cnn”,”videoUrl”:”/videos/us/2015/09/19/8-trillion-microbeads-pollute-waterways-orig-cws.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”A revolution is rumbling in the aisles, with one supermarket chain turning part of their stores plastic-free. But will others follow?”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180228090907-plastic-free-aisle-ekoplaza-00022913-large-169.jpg”,”title”:”World’s first plastic-free supermarket aisle debuts”,”videoCMSUrl”:”/video/data/3.0/video/tv/2018/02/28/plastic-free-aisle-ekoplaza.cnn/index.xml”,”videoLeafUrl”:”/videos/tv/2018/02/28/plastic-free-aisle-ekoplaza.cnn”,”videoId”:”tv/2018/02/28/plastic-free-aisle-ekoplaza.cnn”,”videoUrl”:”/videos/tv/2018/02/28/plastic-free-aisle-ekoplaza.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”For Earth Day 2017, our Econundrum series asks what is the environmental impact of 24 hours on Earth.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170421155239-eco-solutions-econundrum-earth-day-00002614-large-169.jpg”,”title”:”The environmental cost of one day on Earth”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/04/21/eco-solutions-econundrum-earth-day.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2017/04/21/eco-solutions-econundrum-earth-day.cnn”,”videoId”:”world/2017/04/21/eco-solutions-econundrum-earth-day.cnn”,”videoUrl”:”/videos/world/2017/04/21/eco-solutions-econundrum-earth-day.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”Americans throw away 2.5 million plastic bottles every hour. But there’s often a simple, perfectly good alternative to bottled water.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/161216140303-eco-solutions-econundrum-bottled-water-00005427-large-169.jpg”,”title”:”Should I drink bottled water?”,”videoCMSUrl”:”/video/data/3.0/video/world/2016/12/16/eco-solutions-econundrum-bottled-water.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2016/12/16/eco-solutions-econundrum-bottled-water.cnn”,”videoId”:”world/2016/12/16/eco-solutions-econundrum-bottled-water.cnn”,”videoUrl”:”/videos/world/2016/12/16/eco-solutions-econundrum-bottled-water.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”New data released Thursday by NASA shows that 17 of the 18 hottest years on record have occurred since 2001.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170602114543-gettyimages-498969228-large-169.jpg”,”title”:”Facts first: Climate change is real”,”videoCMSUrl”:”/video/data/3.0/video/weather/2018/01/18/nasa-climate-change-report-2018-gray-orig-js.cnn/index.xml”,”videoLeafUrl”:”/videos/weather/2018/01/18/nasa-climate-change-report-2018-gray-orig-js.cnn”,”videoId”:”weather/2018/01/18/nasa-climate-change-report-2018-gray-orig-js.cnn”,”videoUrl”:”/videos/weather/2018/01/18/nasa-climate-change-report-2018-gray-orig-js.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”CNN’s Mari Ramos reports that warm temperatures are leading to rising pollen levels.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/130508102641-pkg-ramos-climate-change-pollen-00003715-story-top.jpg”,”title”:”Global warming brings on more pollen “,”videoCMSUrl”:”/video/data/3.0/video/world/2013/05/08/pkg-ramos-climate-change-pollen.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2013/05/08/pkg-ramos-climate-change-pollen.cnn”,”videoId”:”world/2013/05/08/pkg-ramos-climate-change-pollen.cnn”,”videoUrl”:”/videos/world/2013/05/08/pkg-ramos-climate-change-pollen.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”People in England will soon have to pay a deposit when they buy drink bottles and cans in a bid to boost recycling and cut waste. The deposit will increase prices but consumers will get the money back if they return the container.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/180330002223-uk-plastic-large-169.jpg”,”title”:”UK introduces plan to minimize plastic waste”,”videoCMSUrl”:”/video/data/3.0/video/world/2018/03/30/uk-plastic-deposit-scheme-mclaughlin-pkg.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2018/03/30/uk-plastic-deposit-scheme-mclaughlin-pkg.cnn”,”videoId”:”world/2018/03/30/uk-plastic-deposit-scheme-mclaughlin-pkg.cnn”,”videoUrl”:”/videos/world/2018/03/30/uk-plastic-deposit-scheme-mclaughlin-pkg.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”14-year-old Hannah Testa speaks about how she is committed to educating the public about plastic pollution.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/170419093708-teen-earth-day-hero-hannah-testa-profile-00004318-large-169.jpg”,”title”:”Teen Earth Day Hero talks plastic pollution”,”videoCMSUrl”:”/video/data/3.0/video/world/2017/04/19/teen-earth-day-hero-hannah-testa-profile.cnn/index.xml”,”videoLeafUrl”:”/videos/world/2017/04/19/teen-earth-day-hero-hannah-testa-profile.cnn”,”videoId”:”world/2017/04/19/teen-earth-day-hero-hannah-testa-profile.cnn”,”videoUrl”:”/videos/world/2017/04/19/teen-earth-day-hero-hannah-testa-profile.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”CNN’s Rene Marsh reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/120201041910-epa-logo-lisa-jackson-administrator-story-top.jpg”,”title”:”How will EPA cuts affect your neighborhood?”,”videoCMSUrl”:”/video/data/3.0/video/tv/2017/03/03/epa-braces-for-budget-cuts-rene-marsh-the-lead-dnt.cnn/index.xml”,”videoLeafUrl”:”/videos/tv/2017/03/03/epa-braces-for-budget-cuts-rene-marsh-the-lead-dnt.cnn”,”videoId”:”tv/2017/03/03/epa-braces-for-budget-cuts-rene-marsh-the-lead-dnt.cnn”,”videoUrl”:”/videos/tv/2017/03/03/epa-braces-for-budget-cuts-rene-marsh-the-lead-dnt.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”Teen activist leads fight to combat climate change. CNN’s Christie Paul has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/161225173232-captain-planet-gala-paul-pkg-00005521-large-169.jpg”,”title”:”Teen leads effort to save environment”,”videoCMSUrl”:”/video/data/3.0/video/us/2016/12/25/captain-planet-gala-paul-pkg.cnn/index.xml”,”videoLeafUrl”:”/videos/us/2016/12/25/captain-planet-gala-paul-pkg.cnn”,”videoId”:”us/2016/12/25/captain-planet-gala-paul-pkg.cnn”,”videoUrl”:”/videos/us/2016/12/25/captain-planet-gala-paul-pkg.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”CNN meteorologist Derek Van Dam explains how countries around the world are celebrating Earth Day in a historic way.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160422054608-earth-day-explainer-van-dam-cnni-nr-lklv-00012618-large-169.jpg”,”title”:”Earth Day highlights fragile environment “,”videoCMSUrl”:”/video/data/3.0/video/weather/2016/04/22/earth-day-explainer-van-dam-cnni-nr-lklv.cnn/index.xml”,”videoLeafUrl”:”/videos/weather/2016/04/22/earth-day-explainer-van-dam-cnni-nr-lklv.cnn”,”videoId”:”weather/2016/04/22/earth-day-explainer-van-dam-cnni-nr-lklv.cnn”,”videoUrl”:”/videos/weather/2016/04/22/earth-day-explainer-van-dam-cnni-nr-lklv.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”A CNN investigation into the deteriorating pipelines buried all over America. CNN’s Rene Marsh reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/160528122942-rene-marsh-aging-pipelines-00014017-large-169.jpg”,”title”:”America’s aging pipelines “,”videoCMSUrl”:”/video/data/3.0/video/politics/2016/05/28/rene-marsh-aging-pipelines.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2016/05/28/rene-marsh-aging-pipelines.cnn”,”videoId”:”politics/2016/05/28/rene-marsh-aging-pipelines.cnn”,”videoUrl”:”/videos/politics/2016/05/28/rene-marsh-aging-pipelines.cnn/video/playlists/our-environment/”},{“descriptionPlainText”:”Why is this single 36-inch pipe causing so much debate? CNN’s Tom Foreman explains.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/141118180328-orig-the-keystone-pipeline-explained-00014327-story-top.jpg”,”title”:”The Keystone pipeline debate in 2 mins”,”videoCMSUrl”:”/video/data/3.0/video/bestoftv/2014/11/18/orig-the-keystone-pipeline-explained.cnn/index.xml”,”videoLeafUrl”:”/videos/bestoftv/2014/11/18/orig-the-keystone-pipeline-explained.cnn”,”videoId”:”bestoftv/2014/11/18/orig-the-keystone-pipeline-explained.cnn”,”videoUrl”:”/videos/bestoftv/2014/11/18/orig-the-keystone-pipeline-explained.cnn/video/playlists/our-environment/”}],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:”world/2018/06/07/race-to-save-great-barrier-reef-cnni-watson-pkg.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-8iv4b0’,videoDescriptionDivId: ‘js-video_description-8iv4b0’,videoDurationDivId: ‘js-video_duration-8iv4b0’,videoTitleDivId: ‘js-leaf-video_headline-8iv4b0’,videoSourceDivId: ‘js-video_sourceName-8iv4b0’});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