A shark headed for swimmers. Watch what the Coast Guard did

‘);$vidEndSlate.removeClass(‘video__end-slate–inactive’).addClass(‘video__end-slate–active’);}};CNN.autoPlayVideoExist = (CNN.autoPlayVideoExist === true) ? true : false;var configObj = {thumb: ‘none’,video: ‘travel/2020/08/27/shark-us-coast-guard-swimmers-oceania-orig-mss.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/200827170650-shark-coast-guard-3-small-169.jpg”,”height”:124},”xsmall”:{“width”:307,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200827170650-shark-coast-guard-3-medium-plus-169.jpg”,”height”:173},”small”:{“width”:460,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200827170650-shark-coast-guard-3-large-169.jpg”,”height”:259},”medium”:{“width”:780,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200827170650-shark-coast-guard-3-exlarge-169.jpg”,”height”:438},”large”:{“width”:1100,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200827170650-shark-coast-guard-3-super-169.jpg”,”height”:619},”full16x9″:{“width”:1600,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200827170650-shark-coast-guard-3-full-169.jpg”,”height”:900},”mini1x1″:{“width”:120,”type”:”jpg”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/200827170650-shark-coast-guard-3-small-11.jpg”,”height”:120}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”A US Coast Guard crew scrambled to get out of the water when a 6ft-8ft shark was spotted heading their way while they swam in Oceania.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827170650-shark-coast-guard-3-large-169.jpg”,”title”:”A shark headed for swimmers. Watch what the Coast Guard did”,”videoCMSUrl”:”/video/data/3.0/video/travel/2020/08/27/shark-us-coast-guard-swimmers-oceania-orig-mss.cnn/index.xml”,”videoLeafUrl”:”/videos/travel/2020/08/27/shark-us-coast-guard-swimmers-oceania-orig-mss.cnn”,”videoId”:”travel/2020/08/27/shark-us-coast-guard-swimmers-oceania-orig-mss.cnn”,”videoUrl”:”/videos/travel/2020/08/27/shark-us-coast-guard-swimmers-oceania-orig-mss.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_607911FA-A84A-A84A-A4BB-3191F6F1BD99″},{“descriptionPlainText”:”CNN’s Erica Hill reports on the rise in coronavirus cases in certain states like Iowa, North Dakota, Kansas and Indiana despite new cases falling 22% in the past 14 days nationwide.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200826231409-covid-19-analisis-p-ramos-rec-large-169.jpg”,”title”:”7,600 confirmed coronavirus cases on college campuses”,”videoCMSUrl”:”/video/data/3.0/video/health/2020/08/27/coronavirus-wrap-cdc-testing-backlog-hill-dnt-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/health/2020/08/27/coronavirus-wrap-cdc-testing-backlog-hill-dnt-lead-vpx.cnn”,”videoId”:”health/2020/08/27/coronavirus-wrap-cdc-testing-backlog-hill-dnt-lead-vpx.cnn”,”videoUrl”:”/videos/health/2020/08/27/coronavirus-wrap-cdc-testing-backlog-hill-dnt-lead-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_519D3BA6-384F-3ED6-9D11-32672907D8E8″},{“descriptionPlainText”:”CNN meteorologist Tom Sater reports that the still-dangerous remnants of Tropical Storm Laura are moving into Arkansas after causing horrific devastation across Texas and Louisiana.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827174845-laura-tropical-storm-hurricane-path-damage-flooding-weather-vpx-00000802-large-169.jpg”,”title”:”Laura weakens to tropical storm after making landfall”,”videoCMSUrl”:”/video/data/3.0/video/weather/2020/08/27/laura-tropical-storm-hurricane-path-damage-flooding-weather-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/weather/2020/08/27/laura-tropical-storm-hurricane-path-damage-flooding-weather-vpx.cnn”,”videoId”:”weather/2020/08/27/laura-tropical-storm-hurricane-path-damage-flooding-weather-vpx.cnn”,”videoUrl”:”/videos/weather/2020/08/27/laura-tropical-storm-hurricane-path-damage-flooding-weather-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_607911FA-A84A-A84A-A4BB-3191F6F1BD99″},{“descriptionPlainText”:”Democratic Vice Presidential Nominee Sen. Kamala Harris delivers remarks ahead of President Donald Trump’s acceptance speech on the final night of the Republican National Convention.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827151955-kamala-harris-prebuttal-trump-speech-0827-large-169.jpg”,”title”:”He ‘froze’: Kamala Harris blasts Trump’s pandemic response”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/08/27/kamala-harris-trump-pandemic-response-rnc-speech-prebuttal-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/08/27/kamala-harris-trump-pandemic-response-rnc-speech-prebuttal-sot-vpx.cnn”,”videoId”:”politics/2020/08/27/kamala-harris-trump-pandemic-response-rnc-speech-prebuttal-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2020/08/27/kamala-harris-trump-pandemic-response-rnc-speech-prebuttal-sot-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_532A04C6-1C25-687B-E99F-31BFDADCB591″},{“descriptionPlainText”:”Democratic presidential nominee Joe Biden tells CNN’s Anderson Cooper he believes President Donald Trump and his allies are “rooting for violence” because it exploits fear for their political gain.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827151838-anderson-cooper-biden-split-0827-large-169.jpg”,”title”:”Why Joe Biden says Donald Trump is ‘rooting for violence'”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/08/27/joe-biden-donald-trump-allies-rooting-for-violence-fear-sot-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/08/27/joe-biden-donald-trump-allies-rooting-for-violence-fear-sot-nr-vpx.cnn”,”videoId”:”politics/2020/08/27/joe-biden-donald-trump-allies-rooting-for-violence-fear-sot-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2020/08/27/joe-biden-donald-trump-allies-rooting-for-violence-fear-sot-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_2426DC3D-43A2-5476-6550-3187928300C2″},{“descriptionPlainText”:”CNN’s Ed Lavandera reports from the site of a church that was heavily damaged after Hurricane Laura swept through Orange, Texas.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827124042-ed-lavandera-orange-texas-large-169.jpg”,”title”:”CNN reports from heavily damaged church after Hurricane Laura”,”videoCMSUrl”:”/video/data/3.0/video/weather/2020/08/27/hurricane-laura-damage-orange-texas-lavandera-nr.cnn/index.xml”,”videoLeafUrl”:”/videos/weather/2020/08/27/hurricane-laura-damage-orange-texas-lavandera-nr.cnn”,”videoId”:”weather/2020/08/27/hurricane-laura-damage-orange-texas-lavandera-nr.cnn”,”videoUrl”:”/videos/weather/2020/08/27/hurricane-laura-damage-orange-texas-lavandera-nr.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_A9D3CC2D-2E71-8309-9109-315D193CB0BB”},{“descriptionPlainText”:”Aerial footage from CNN affiliate KTRK shows mass flooding in Texas as a result of Hurricane Laura.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827084139-texas-aerials-flooding-hurricane-laura-vpx-00001002-large-169.jpg”,”title”:”Aerials show mass flooding in Texas from Hurricane Laura”,”videoCMSUrl”:”/video/data/3.0/video/weather/2020/08/27/texas-aerials-flooding-hurricane-laura-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/weather/2020/08/27/texas-aerials-flooding-hurricane-laura-vpx.cnn”,”videoId”:”weather/2020/08/27/texas-aerials-flooding-hurricane-laura-vpx.cnn”,”videoUrl”:”/videos/weather/2020/08/27/texas-aerials-flooding-hurricane-laura-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_17CDB3B7-6350-E53C-8B87-31563403EBE0″},{“descriptionPlainText”:”White House adviser and President Trump’s son-in-law Jared Kushner reacts to decisions made by NBA players to not play their games in an interview on CNBC.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200513172305-jared-kushner-large-169.jpg”,”title”:”See Jared Kushner’s response to NBA boycott”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/08/27/jared-kushner-nba-boycott-reaction-nr-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/08/27/jared-kushner-nba-boycott-reaction-nr-vpx.cnn”,”videoId”:”politics/2020/08/27/jared-kushner-nba-boycott-reaction-nr-vpx.cnn”,”videoUrl”:”/videos/politics/2020/08/27/jared-kushner-nba-boycott-reaction-nr-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_B9617B40-C3BC-ED6D-3C3E-30C23DCF4951″},{“descriptionPlainText”:”Hurricane Laura ripped through the Golden Nugget casino in Lake Charles, Louisiana, causing pieces of the roof to disintegrate as the storm roars across Louisiana’s coastline.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827073006-golden-nugget-casino-la-large-169.jpg”,”title”:”Hurricane Laura destroys roof of Golden Nugget casino”,”videoCMSUrl”:”/video/data/3.0/video/weather/2020/08/27/hurricane-laura-lake-charles-golden-nugget-casinos-vpx.ktrk/index.xml”,”videoLeafUrl”:”/videos/weather/2020/08/27/hurricane-laura-lake-charles-golden-nugget-casinos-vpx.ktrk”,”videoId”:”weather/2020/08/27/hurricane-laura-lake-charles-golden-nugget-casinos-vpx.ktrk”,”videoUrl”:”/videos/weather/2020/08/27/hurricane-laura-lake-charles-golden-nugget-casinos-vpx.ktrk/video/playlists/top-news-videos/”,”surrogateKey”:”video_6EA597F0-2B08-159D-42C5-2FE3A79DD4B0″},{“descriptionPlainText”:”CNN’s Don Lemon and Hall of Fame broadcaster Bob Costas discuss the number of athletes and professional sports teams leagues opting to boycott games to protest the shooting of Jacob Blake in Kenosha, Wisconsin.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200826164959-02-milwaukee-bucks-boycott-game-0826-large-169.jpg”,”title”:”Professional athletes take stand for Kenosha protests”,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/08/27/professional-sports-games-athletes-protest-kenosha-lemon-costas-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/08/27/professional-sports-games-athletes-protest-kenosha-lemon-costas-sot-vpx.cnn”,”videoId”:”sports/2020/08/27/professional-sports-games-athletes-protest-kenosha-lemon-costas-sot-vpx.cnn”,”videoUrl”:”/videos/sports/2020/08/27/professional-sports-games-athletes-protest-kenosha-lemon-costas-sot-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_51D29960-D938-C2A0-2BF4-302EE4463109″},{“descriptionPlainText”:”Fox News host Tucker Carlson suggested it was not surprising that the teenager arrested in connection to a shooting in Kenosha, Wisconsin, allegedly took up arms and tried to “maintain order” during protests.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827021741-tucker-carlson-large-169.jpg”,”title”:”Fox News host defends actions of teen charged in Kenosha shooting”,”videoCMSUrl”:”/video/data/3.0/video/media/2020/08/27/fox-news-tucker-carlson-kenosha-wisconsin-shooting-eg-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2020/08/27/fox-news-tucker-carlson-kenosha-wisconsin-shooting-eg-orig.cnn”,”videoId”:”media/2020/08/27/fox-news-tucker-carlson-kenosha-wisconsin-shooting-eg-orig.cnn”,”videoUrl”:”/videos/media/2020/08/27/fox-news-tucker-carlson-kenosha-wisconsin-shooting-eg-orig.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_137CC2CF-34D0-DC1E-F4BC-2FB3D3CDDDB4″},{“descriptionPlainText”:”President Trump and first lady Melania Trump gathered near many supporters who were not wearing masks at the 2020 GOP national convention following Vice President Mike Pence’s acceptance speech. CNN’s Kaitlan Collins has more.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827002031-trumps-pences-crowd-rnc-large-169.jpeg”,”title”:”Trump and Melania mingle in crowd without masks at RNC “,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/08/27/trumps-in-crowd-pence-speech-masks-rnc-2020-collins-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/08/27/trumps-in-crowd-pence-speech-masks-rnc-2020-collins-sot-vpx.cnn”,”videoId”:”politics/2020/08/27/trumps-in-crowd-pence-speech-masks-rnc-2020-collins-sot-vpx.cnn”,”videoUrl”:”/videos/politics/2020/08/27/trumps-in-crowd-pence-speech-masks-rnc-2020-collins-sot-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_6BF4E677-5C25-6DB0-7EEF-2E5F633D89FC”},{“descriptionPlainText”:”CNN’s Daniel Dale fact checks speakers from night three of the 2020 Republican National Convention. Visit CNN’s Facts First database for more fact checks.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200826173906-01-rnc-3-speakers-split-large-169.jpg”,”title”:”Daniel Dale on RNC claims: Hard for me to know where to start”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/08/27/daniel-dale-fact-check-rnc-2020-pence-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/08/27/daniel-dale-fact-check-rnc-2020-pence-vpx.cnn”,”videoId”:”politics/2020/08/27/daniel-dale-fact-check-rnc-2020-pence-vpx.cnn”,”videoUrl”:”/videos/politics/2020/08/27/daniel-dale-fact-check-rnc-2020-pence-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_B1FAF9CC-9AEE-3D7F-FC7B-2E8E3B4B9510″},{“descriptionPlainText”:”See the moment “Inside the NBA” analyst Kenny Smith walks off his show in solidarity with NBA players boycotting the police shooting of Jacob Blake.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200826202900-kenny-smith-large-169.jpg”,”title”:”Kenny Smith walks off set in solidarity with NBA players “,”videoCMSUrl”:”/video/data/3.0/video/sports/2020/08/27/kenny-smith-walk-off-tnt-set-ebof-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/sports/2020/08/27/kenny-smith-walk-off-tnt-set-ebof-vpx.cnn”,”videoId”:”sports/2020/08/27/kenny-smith-walk-off-tnt-set-ebof-vpx.cnn”,”videoUrl”:”/videos/sports/2020/08/27/kenny-smith-walk-off-tnt-set-ebof-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_54CA31DA-CCF4-AB4D-09AC-2D4A552AF55E”},{“descriptionPlainText”:”In a new video posted to Twitter, Democratic presidential nominee Joe Biden says he spoke to Jacob Blake’s family after Blake was shot in Kenosha, Wisconsin.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200826172124-joe-biden-responds-jacob-blake-kenosha-wisconsin-violence-unrest-lead-vpx-00000326-large-169.jpg”,”title”:”Biden condemns ‘needless violence’ after Kenosha unrest”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/08/26/joe-biden-responds-jacob-blake-kenosha-wisconsin-violence-unrest-lead-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/08/26/joe-biden-responds-jacob-blake-kenosha-wisconsin-violence-unrest-lead-vpx.cnn”,”videoId”:”politics/2020/08/26/joe-biden-responds-jacob-blake-kenosha-wisconsin-violence-unrest-lead-vpx.cnn”,”videoUrl”:”/videos/politics/2020/08/26/joe-biden-responds-jacob-blake-kenosha-wisconsin-violence-unrest-lead-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_D2F26DF7-4734-D746-DEF3-2DFD064E87DC”},{“descriptionPlainText”:”CNN’s Jim Acosta details the enormous crowd at the White House for President Trump’s speech on the final day of the 2020 Republican National Convention.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200827202756-acosta-large-169.jpg”,”title”:”‘Never personally witnessed anything like this,’ Acosta details scene at WH”,”videoCMSUrl”:”/video/data/3.0/video/politics/2020/08/28/acosta-white-house-2020-rnc-large-crowd-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/politics/2020/08/28/acosta-white-house-2020-rnc-large-crowd-vpx.cnn”,”videoId”:”politics/2020/08/28/acosta-white-house-2020-rnc-large-crowd-vpx.cnn”,”videoUrl”:”/videos/politics/2020/08/28/acosta-white-house-2020-rnc-large-crowd-vpx.cnn/video/playlists/top-news-videos/”,”surrogateKey”:”video_DE937E22-8C1B-A0F2-57A4-2D60541CC07C”}],currentVideoCollectionId = ”,isLivePlayer = false,mediaMetadataCallbacks,mobilePinnedView = null,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 = CNN.Features.enableAutoplayBlock ? false : 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:”travel/2020/08/27/shark-us-coast-guard-swimmers-oceania-orig-mss.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-1r1kr6r’,videoDescriptionDivId: ‘js-video_description-1r1kr6r’,videoDurationDivId: ‘js-video_duration-1r1kr6r’,videoTitleDivId: ‘js-leaf-video_headline-1r1kr6r’,videoSourceDivId: ‘js-video_sourceName-1r1kr6r’});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(‘

A shark headed for swimmers. Watch what the Coast Guard did

Leave a Reply