5 reasons to love the Bahamas

‘);$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/03/13/5-reasons-to-love-bahamas.cnn’,width: ‘100%’,height: ‘100%’,section: ‘domestic’,profile: ‘expansion’,network: ‘cnn’,markupId: ‘large-media_0’,adsection: ‘cnn.com_travel_videopage’,frameWidth: ‘100%’,frameHeight: ‘100%’,posterImageOverride: {“mini”:{“width”:256,”type”:”JPG”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/130104100742-bimini-boats-hp-video.jpg”,”height”:144},”xsmall”:{“width”:300,”type”:”JPG”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/130104100742-bimini-boats-story-body.jpg”,”height”:169},”small”:{“width”:640,”type”:”JPG”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/130104100742-bimini-boats-story-top.jpg”,”height”:360},”medium”:{“width”:980,”type”:”JPG”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/130104100742-bimini-boats-horizontal-large-gallery.jpg”,”height”:552},”large”:{“width”:980,”type”:”JPG”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/130104100742-bimini-boats-horizontal-large-gallery.jpg”,”height”:552},”full16x9″:{“width”:980,”type”:”JPG”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/130104100742-bimini-boats-horizontal-large-gallery.jpg”,”height”:552},”mini1x1″:{“width”:60,”type”:”JPG”,”uri”:”//cdn.cnn.com/cnnnext/dam/assets/130104100742-bimini-boats-topics.jpg”,”height”:60}}},autoStartVideo = false,isVideoReplayClicked = false,callbackObj,containerEl,currentVideoCollection = [{“descriptionPlainText”:”From the abundant wildlife to one of the world’s rare pink sand beaches, here’s why the island nation is a great spot to visit.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/130104100742-bimini-boats-story-top.jpg”,”title”:”5 reasons to love the Bahamas”,”videoCMSUrl”:”/videos/travel/2020/03/13/5-reasons-to-love-bahamas.cnn”,”videoLeafUrl”:”/videos/travel/2020/03/13/5-reasons-to-love-bahamas.cnn”,”videoId”:”travel/2020/03/13/5-reasons-to-love-bahamas.cnn”,”videoUrl”:”/videos/travel/2020/03/13/5-reasons-to-love-bahamas.cnn”,”surrogateKey”:”video_DC56718C-53FC-1D21-3A26-D4D8D1DBFC67″},{“descriptionPlainText”:”Netflix’s bizarre new series follows eccentric private zoo owner Joe Exotic and his menagerie of big cats. Here’s how it became a massive hit.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200329125429-tiker-king-joe-exotic-netflix-large-169.jpg”,”title”:”‘Tiger King’ is the weird docu-series we can’t stop watching”,”videoCMSUrl”:”/video/data/3.0/video/media/2020/04/01/tiger-king-netflix-joe-exotic-nws-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2020/04/01/tiger-king-netflix-joe-exotic-nws-orig.cnn”,”videoId”:”media/2020/04/01/tiger-king-netflix-joe-exotic-nws-orig.cnn”,”videoUrl”:”/videos/media/2020/04/01/tiger-king-netflix-joe-exotic-nws-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_FA0C5E05-34DE-2BC9-76F2-36BB241A2143″},{“descriptionPlainText”:”Covid-19 has sent the global economy into a downward spiral. CNN Business’ Christine Romans explains three scenarios of what recovery could look like.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200319112335-business-closures-new-york-coronavirus-0317-large-169.jpg”,”title”:”The economy is crumbling. What will a recovery look like?”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/04/01/economic-recovery-shape-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/04/01/economic-recovery-shape-orig.cnn-business”,”videoId”:”business/2020/04/01/economic-recovery-shape-orig.cnn-business”,”videoUrl”:”/videos/business/2020/04/01/economic-recovery-shape-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_FEAD34BA-BE7E-3BE1-F19E-36B6296AB7C7″},{“descriptionPlainText”:”Governor Andrew Cuomo spoke about his brother Chris Cuomo, lauding him for continuing to anchor his show on CNN to show people what it could look like to have coronavirus.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200401125823-cuomo-presser-0401-large-169.jpg”,”title”:”Gov. Cuomo’s heartfelt message to his brother Chris”,”videoCMSUrl”:”/video/data/3.0/video/media/2020/04/01/chris-cuomo-andrew-coronavirus-cpt-show-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2020/04/01/chris-cuomo-andrew-coronavirus-cpt-show-sot-vpx.cnn”,”videoId”:”media/2020/04/01/chris-cuomo-andrew-coronavirus-cpt-show-sot-vpx.cnn”,”videoUrl”:”/videos/media/2020/04/01/chris-cuomo-andrew-coronavirus-cpt-show-sot-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_B85C40F5-5CC1-D0A7-321B-36B3A73061C0″},{“descriptionPlainText”:”Live streaming classes. Virtual personal training. The $94 billion fitness industry is adapting to the new realities of social distancing to combat Covid-19. Watch the latest videos on Covid-19.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200331185439-covid-19-corona-virus-fitness-industry-large-169.jpg”,”title”:”Gyms are closed. Here’s how the fitness industry is going virtual”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/31/covid-19-fitness-industry-virtual-workout-at-home-rn-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/31/covid-19-fitness-industry-virtual-workout-at-home-rn-orig.cnn-business”,”videoId”:”business/2020/03/31/covid-19-fitness-industry-virtual-workout-at-home-rn-orig.cnn-business”,”videoUrl”:”/videos/business/2020/03/31/covid-19-fitness-industry-virtual-workout-at-home-rn-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_2CFB28C2-9041-C275-B719-32CB56913C43″},{“descriptionPlainText”:”More than 50 years after the passage of the landmark Equal Pay Act of 1963, women still lag behind their male counterparts in every profession in the US.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200326144510-pay-gap-image-4-large-169.jpg”,”title”:”What you can do to help close the gender pay gap”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/30/equal-pay-explainer-suffrage-orig-jg.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/30/equal-pay-explainer-suffrage-orig-jg.cnn-business”,”videoId”:”business/2020/03/30/equal-pay-explainer-suffrage-orig-jg.cnn-business”,”videoUrl”:”/videos/business/2020/03/30/equal-pay-explainer-suffrage-orig-jg.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_E712B923-165C-49AD-F3AC-2C9F5C255255″},{“descriptionPlainText”:”New York Gov. Andrew Cuomo addressed the news that his brother and CNN anchor Chris Cuomo tested positive for coronavirus saying “there is a lesson in this.””,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200331131143-gov-andrew-cuomo-presser-3-31-2020-large-169.jpg”,”title”:”Gov. Andrew Cuomo addresses brother’s positive Covid-19 diagnosis”,”videoCMSUrl”:”/video/data/3.0/video/media/2020/03/31/new-york-governor-andrew-cuomo-chris-cuomo-positive-coronavirus-diagnosis-bts-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2020/03/31/new-york-governor-andrew-cuomo-chris-cuomo-positive-coronavirus-diagnosis-bts-vpx.cnn”,”videoId”:”media/2020/03/31/new-york-governor-andrew-cuomo-chris-cuomo-positive-coronavirus-diagnosis-bts-vpx.cnn”,”videoUrl”:”/videos/media/2020/03/31/new-york-governor-andrew-cuomo-chris-cuomo-positive-coronavirus-diagnosis-bts-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_DFF78DCE-1448-B497-2211-316386009D65″},{“descriptionPlainText”:”Many small businesses, who employ almost half of the American workforce, are on the brink of losing it all. CNN’s Kyung Lah reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200331055745-small-business-closed-sign-lah-pkg-large-169.jpg”,”title”:”Small businesses fear they won’t survive the pandemic”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/31/coronavirus-small-business-owners-lah-pkg-ebof.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/31/coronavirus-small-business-owners-lah-pkg-ebof.cnn”,”videoId”:”business/2020/03/31/coronavirus-small-business-owners-lah-pkg-ebof.cnn”,”videoUrl”:”/videos/business/2020/03/31/coronavirus-small-business-owners-lah-pkg-ebof.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_69F24C32-2F62-4088-A8A3-2FE4B1F24549″},{“descriptionPlainText”:”CNN Business’ Christine Romans explains the government and private options available to those struggling to make mortgage or rent payments during the coronavirus pandemic.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200123105151-01-oakland-housing-file-large-169.jpg”,”title”:”Can’t pay your mortgage? Here are your options”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/30/mortgage-stimulus-rent-eviction-foreclosure-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/30/mortgage-stimulus-rent-eviction-foreclosure-orig.cnn-business”,”videoId”:”business/2020/03/30/mortgage-stimulus-rent-eviction-foreclosure-orig.cnn-business”,”videoUrl”:”/videos/business/2020/03/30/mortgage-stimulus-rent-eviction-foreclosure-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_9B5EE610-8C18-2F6E-080C-2C4C72B97FD4″},{“descriptionPlainText”:”CNN Business shares some helpful tips to help you work effectively when you’re remote.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200330095037-work-from-home-animation-large-169.jpg”,”title”:”Here’s how to make the most of working from home”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/27/work-from-home-tips-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/27/work-from-home-tips-orig.cnn”,”videoId”:”business/2020/03/27/work-from-home-tips-orig.cnn”,”videoUrl”:”/videos/business/2020/03/27/work-from-home-tips-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_D4F74F9A-62E8-3B83-3DAC-1D741301ACD4″},{“descriptionPlainText”:”In the United States, buildings consume approximately 70% of the country’s electricity. But a breakthrough in solar glass could offset that demand by converting the windows of every building into solar panels.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200323155307-solar-glass-thumb-1-large-169.jpg”,”title”:”This glass could turn skyscrapers into power generators”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/23/solar-glass-energy-project-planet-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/23/solar-glass-energy-project-planet-orig.cnn”,”videoId”:”business/2020/03/23/solar-glass-energy-project-planet-orig.cnn”,”videoUrl”:”/videos/business/2020/03/23/solar-glass-energy-project-planet-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_5C9CB33A-1D30-869B-67D2-08EB75D888CC”},{“descriptionPlainText”:”Dan Rather remembers his co-worker, CBS News producer and talent executive Maria Mercader, who died at the age of 54 from Covid-19.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200329174649-maria-mercader-cbs-file-large-169.jpg”,”title”:”Dan Rather remembers CBS journalist Maria Mercader “,”videoCMSUrl”:”/video/data/3.0/video/media/2020/03/30/maria-mercader-death-cbs-dan-rather-sot-ctn-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/media/2020/03/30/maria-mercader-death-cbs-dan-rather-sot-ctn-vpx.cnn”,”videoId”:”media/2020/03/30/maria-mercader-death-cbs-dan-rather-sot-ctn-vpx.cnn”,”videoUrl”:”/videos/media/2020/03/30/maria-mercader-death-cbs-dan-rather-sot-ctn-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_D4076D5F-87EF-9023-0728-29659EB85C36″},{“descriptionPlainText”:”Delivery workers and grocers, deemed critical by the government, risk exposure during the coronavirus pandemic. Companies like UPS and FreshDirect say they are following CDC and WHO guidelines for social distancing and hygiene protocols. CNN’s Vanessa Yurkevich reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200330110717-ups-driver-tony-mazzella-large-169.jpg”,”title”:”UPS driver: It’s essential that I’m out here”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/30/delivery-workers-coronavirus.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/30/delivery-workers-coronavirus.cnn-business”,”videoId”:”business/2020/03/30/delivery-workers-coronavirus.cnn-business”,”videoUrl”:”/videos/business/2020/03/30/delivery-workers-coronavirus.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_0F4C67DE-DC6A-5801-F3EB-2B7121E29B12″},{“descriptionPlainText”:”‘Today’ show co-host Hoda Kotb broke down on air after interviewing New Orleans Saints quarterback Drew Brees about his $5 million donation to the state of Louisiana amid the Covid-19 pandemic.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200327140939-hoda-kotb-crying-today-drew-brees-large-169.jpg”,”title”:”This made ‘Today’ host Hoda Kotb break down in tears”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/27/hoda-kotb-drew-brees-coronavirus-orig.cnn-business/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/27/hoda-kotb-drew-brees-coronavirus-orig.cnn-business”,”videoId”:”business/2020/03/27/hoda-kotb-drew-brees-coronavirus-orig.cnn-business”,”videoUrl”:”/videos/business/2020/03/27/hoda-kotb-drew-brees-coronavirus-orig.cnn-business/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_CBE66F0C-5417-10D9-4BFC-1D2A3FFC2CEE”},{“descriptionPlainText”:”When New York City shut down bars and restaurants to control the coronavirus pandemic, hundreds of thousands of workers and freelancers lost their incomes. Hear their stories. Watch the latest videos on Covid-19.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200327012232-nyc-nightlife-workers-covid-1-large-169.jpg”,”title”:”New York nightlife shut down. Now its workers need help “,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/27/nyc-nightlife-workers-coronavirus-sg-orig.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/27/nyc-nightlife-workers-coronavirus-sg-orig.cnn”,”videoId”:”business/2020/03/27/nyc-nightlife-workers-coronavirus-sg-orig.cnn”,”videoUrl”:”/videos/business/2020/03/27/nyc-nightlife-workers-coronavirus-sg-orig.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_B5392FD0-A194-93E9-2120-1A502E39334E”},{“descriptionPlainText”:”As the number of Americans filing for unemployment rises to 3.3 million, business owners open up about their struggles trying to stay afloat during the coronavirus pandemic. CNN’s Kyung Lah reports.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200326195943-resturant-owner-crying-large-169.jpg”,”title”:”Restaurant owner gets emotional over future of business”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/26/business-owners-financial-concerns-coronavirus-pkg-ebof-lah-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/26/business-owners-financial-concerns-coronavirus-pkg-ebof-lah-vpx.cnn”,”videoId”:”business/2020/03/26/business-owners-financial-concerns-coronavirus-pkg-ebof-lah-vpx.cnn”,”videoUrl”:”/videos/business/2020/03/26/business-owners-financial-concerns-coronavirus-pkg-ebof-lah-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_FACAC563-AE09-D72B-0382-193F51F5FEA6″},{“descriptionPlainText”:”Bill and Melinda Gates Foundation co-founder Bill Gates says that the US should shutdown the entire country for a short period of time to control the spread of the coronavirus and predicts that the number of cases will peak in late April.”,”imageUrl”:”//cdn.cnn.com/cnnnext/dam/assets/200327015742-bill-gates-town-hall-march-26-2020-large-169.jpg”,”title”:”Bill Gates: State-by-state shutdown won’t work”,”videoCMSUrl”:”/video/data/3.0/video/business/2020/03/27/bill-gates-coronavirus-town-hall-shutdown-april-peak-sot-vpx.cnn/index.xml”,”videoLeafUrl”:”/videos/business/2020/03/27/bill-gates-coronavirus-town-hall-shutdown-april-peak-sot-vpx.cnn”,”videoId”:”business/2020/03/27/bill-gates-coronavirus-town-hall-shutdown-april-peak-sot-vpx.cnn”,”videoUrl”:”/videos/business/2020/03/27/bill-gates-coronavirus-town-hall-shutdown-april-peak-sot-vpx.cnn/video/playlists/stories-worth-watching/”,”surrogateKey”:”video_C5A8E395-B285-9462-0C9F-1A8A8DA79F1A”}],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/03/13/5-reasons-to-love-bahamas.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-1xu1hlc’,videoDescriptionDivId: ‘js-video_description-1xu1hlc’,videoDurationDivId: ‘js-video_duration-1xu1hlc’,videoTitleDivId: ‘js-leaf-video_headline-1xu1hlc’,videoSourceDivId: ‘js-video_sourceName-1xu1hlc’});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(‘

5 reasons to love the Bahamas

Leave a Reply