Things to Do in the Caribbean

Things to Do in the Caribbean – The BahamasOur Privacy and Cookie Policy.’; url_protocol = ‘http’; if(location.protocol==’https:’) { url_protocol = ‘https’; } var CLIENT_FOLDER = ‘windsong/’; if (document.domain.indexOf(‘tambourine’) > 0 || document.domain.indexOf(‘symphonygit.tambo.site’) > 0) { var SITE_ROOT = url_protocol+’://’+document.domain+’/’; var ROOT_PATH = ‘/’; var SITE_FILES = ‘https://www.bahamas.com/assets/’; var FRONTEND_ROOT = url_protocol + ‘://frontend.’ + document.domain + ‘/’; } else { var SITE_ROOT = url_protocol+’://’+document.domain+’/’; var ROOT_PATH = ‘/’; var SITE_FILES = ‘https://www.bahamas.com/assets/’; var FRONTEND_ROOT = url_protocol + ‘://frontend.symphonyhotelmarketing.com/’; } var langSelected = “en”; ]]> ‘+ ‘

‘+ ‘ Children’+ ‘ ‘+ ‘ 0’+ ‘ 1’+ ‘ 2’+ ‘ 3’+ ‘ ‘+ ‘

‘ + ‘

n’ + ‘ Children agen’ + ‘ n’ + ‘ Children Age’ + ‘ n’ + ‘ 0n’ + ‘ n’ + ‘ 1n’ + ‘ n’ + ‘ 2n’ + ‘ n’ + ‘ 3n’ + ‘ n’ + ‘ 4n’ + ‘ n’ + ‘ 5n’ + ‘ n’ + ‘ 6n’ + ‘ n’ + ‘ 7n’ + ‘ n’ + ‘ 8n’ + ‘ n’ + ‘ 9n’ + ‘ n’ + ‘ 10n’ + ‘ n’ + ‘ 11n’ + ‘ n’ + ‘ 12n’ + ‘ n’ + ‘ 13n’ + ‘ n’ + ‘ 14n’ + ‘ n’ + ‘ 15n’ + ‘ n’ + ‘ 16n’ + ‘ n’ + ‘ 17n’ + ‘ n’ + ‘ n’ + ‘

n’ + ‘n’ + ‘

n’ + ‘ Children agen’ + ‘ n’ + ‘ Children Age’ + ‘ n’ + ‘ 0n’ + ‘ n’ + ‘ 1n’ + ‘ n’ + ‘ 2n’ + ‘ n’ + ‘ 3n’ + ‘ n’ + ‘ 4n’ + ‘ n’ + ‘ 5n’ + ‘ n’ + ‘ 6n’ + ‘ n’ + ‘ 7n’ + ‘ n’ + ‘ 8n’ + ‘ n’ + ‘ 9n’ + ‘ n’ + ‘ 10n’ + ‘ n’ + ‘ 11n’ + ‘ n’ + ‘ 12n’ + ‘ n’ + ‘ 13n’ + ‘ n’ + ‘ 14n’ + ‘ n’ + ‘ 15n’ + ‘ n’ + ‘ 16n’ + ‘ n’ + ‘ 17n’ + ‘ n’ + ‘ n’ + ‘

n’ + ‘n’ + ‘

n’ + ‘ Children agen’ + ‘ n’ + ‘ Children Age’ + ‘ n’ + ‘ 0n’ + ‘ n’ + ‘ 1n’ + ‘ n’ + ‘ 2n’ + ‘ n’ + ‘ 3n’ + ‘ n’ + ‘ 4n’ + ‘ n’ + ‘ 5n’ + ‘ n’ + ‘ 6n’ + ‘ n’ + ‘ 7n’ + ‘ n’ + ‘ 8n’ + ‘ n’ + ‘ 9n’ + ‘ n’ + ‘ 10n’ + ‘ n’ + ‘ 11n’ + ‘ n’ + ‘ 12n’ + ‘ n’ + ‘ 13n’ + ‘ n’ + ‘ 14n’ + ‘ n’ + ‘ 15n’ + ‘ n’ + ‘ 16n’ + ‘ n’ + ‘ 17n’ + ‘ n’ + ‘ n’ + ‘

‘+ ‘ ‘+ ‘ ‘; setTimeout( function(){ $( “.children-count .form-custom-options .form-custom-option” ).on( “click”, function(){ var num = $( this ).data( “value” ); $(this).parent().parent().parent().parent().parent().parent().find( “.children-age” ).hide(); for( var i = 1 ; i “); $(value).find(“#adults”).attr(“id”, “adults” + index); $(value).find(“#children”).attr(“id”, “children” + index); }) $(‘.rooms-remove’).on(‘click’, function(){ $(this).closest(‘div’).remove(); }) $(“.custom-sel.new”).each(function() { var classes = $(this).attr(“class”), id = $(this).attr(“id”), name = $(this).attr(“name”); var template = ”; template += ” + $(this).attr(“placeholder”) + ”; template += ‘

‘; $(this).find(“option”).each(function() { template += ” + $(this).html() + ”; }); template += ‘

‘; $(this).wrap(”); $(this).hide(); $(this).after(template); }); $(“.form-custom-option:first-of-type”).hover(function() { $(this).parents(“.form-custom-options”).addClass(“option-hover”); }, function() { $(this).parents(“.form-custom-options”).removeClass(“option-hover”); }); $(“.custom-sel-trigger”).on(“click”, function() { $(‘html’).one(‘click’,function() { $(“.custom-sel”).removeClass(“opened”); }); $(this).parents(“.custom-sel”).toggleClass(“opened”); event.stopPropagation(); }); $(“.form-custom-option”).on(“click”, function() { $(this).parents(“.custom-sel-wrapper”).find(“select”).val($(this).data(“value”)); $(this).parents(“.form-custom-options”).find(“.form-custom-option”).removeClass(“selection”); $(this).addClass(“selection”); $(this).parents(“.custom-sel”).removeClass(“opened”); $(this).parents(“.custom-sel”).find(“.custom-sel-trigger”).text($(this).text()); }); $( “.custom-sel.new” ).removeClass( “new” ); $( “.children-count select” ).on( “change”, function(){ var num = $( this ).val( ); $(this).parent().parent().find( “.children-age” ).hide(); for( var i = 1 ; i “) != “-1”) str = str.replace(“

“, “”); while (str.indexOf(“”) != “-1”) str = str.replace(“”, “”); } if( str == null ) str = “”; return str; } function getSearchUrl( ){ var url_aux = document.URL; url_aux = url_aux.split( “;” ); $.each( url_aux, function( index, value ){ var var_aux = value; if(index == 0) { var_aux = var_aux.split( “#” ); var_aux = var_aux[1]; } if(var_aux) { var_aux = var_aux.split(“:”); switch (var_aux[0]) { case “name”: send_name = clearString(var_aux[1]); $(“#search-name”).val( send_name ) break; case “destination”: send_dest = clearString(var_aux[1]); $.each($(“.island-selector-content .form-custom-option”), function (index, value) { if ($(value).data( “value” ) == send_dest) { $(value).addClass(“selection”); $(value).parent().parent().find( “.custom-sel-trigger” ).text( $(value).text() ); } }) break; case “covid_certified”: send_covid_certified = var_aux[1] if( send_covid_certified ){ var _value = $( “#hotels-covid_certified .check” ); $(_value).parent().addClass(“selection”) $(_value).addClass(“selection”); $(_value).find(“input”).prop( “checked”, true); $(_value).find(“input”).prop( “checked”, true); } break; case “country”: send_country = clearString(var_aux[1]); $.each($(“.country-selector-content .form-custom-option”), function (index, value) { if ($(value).data( “value” ) == send_country) { $(value).addClass(“selection”); $(value).parent().parent().find( “.custom-sel-trigger” ).text( $(value).text() ); } }) break; case “area”: send_area = clearString(var_aux[1]); break; case “amenities”: send_amenities = clearString(var_aux[1]); send_amenities = send_amenities.split(“,”); $.each($(“.search-form__amenities .check, .hotels-amenities .check, #hotels-amenities .check”), function (index, value) { var _value = value; $.each(send_amenities, function (index, value) { if ($(_value).find(“input”).val() == value) { $(_value).parent().addClass(“selection”); $(_value).parent().addClass(“active”); $(_value).addClass(“selection”); $(_value).addClass(“active”); $(_value).find(“input”).prop( “checked”, true); $(_value).find(“input”).attr( “checked”, “checked” ); $( “.search-form__amenities .selected-filter, .hotels-amenities .selected-filter, #hotels-amenities .selected-filter” ).append( ” + $( _value ).text() + ” ); } }) }) send_amenities = send_amenities.join( “,” ); break; case “category”: send_category = clearString(var_aux[1]); $.each($(“.accommodation-content .form-custom-option”), function (index, value) { if ($(value).text() == send_category) { $(value).addClass(“selection”); $(value).parent().parent().find( “.custom-sel-trigger” ).text( send_category ); } }) $.each($(“#venues-type .check-container”), function (index, value) { var aux_search = $(value).find( “input” ).val(); if ( send_category.indexOf( aux_search ) != “-1” ) { $(value).addClass(“selection”); $(value).parent().addClass(“selection”); $(value).parent().addClass(“active”); $(value).addClass(“selection”); $(value).addClass(“active”); $(value).find(“input”).prop( “checked”, true); $(value).find(“input”).attr( “checked”, “checked” ); $(value).parent().parent().find( “.custom-sel-trigger” ).text( send_category ); $( “#venues-type .selected-filter” ).append( ” + $( value ).text() + ” ); } }) break; case “rate_range”: send_rate_range = clearString(var_aux[1]); break; case “ranking”: send_ranking = clearString(var_aux[1]); break; case “capacity”: send_capacity = clearString(var_aux[1]); break; case “page”: current_page = clearString(var_aux[1]); break; case “price”: send_price = clearString(var_aux[1]); break; } } } ) getSearch( “load” ); } function getSearch( data ){ $( “.search-content__results” ).animate( { opacity: 0 }, 100 ); var obj_search = { name: send_name, destination: send_dest, area: send_area, amenities: send_amenities, category: send_category, rate_range: send_rate_range, capacity: send_capacity, page: current_page, ranking: send_ranking, price: send_price, diets: send_diets, country: send_country, covid_certified: send_covid_certified, }; //Add params to URL var params = “#”; if( send_name ) params += “name:” + send_name + “;”; if( send_dest ) params += “destination:” + send_dest + “;”; if( send_area ) params += “area:” + send_area + “;”; if( send_amenities ) params += “amenities:” + send_amenities + “;”; if( send_diets ) params += “diets:” + send_diets + “;”; if( send_category ) params += “category:” + send_category + “;”; if( send_rate_range ) params += “rate_range:” + send_rate_range + “;”; if( send_ranking ) params += “ranking:” + send_ranking + “;”; if( send_price ) params += “price:” + send_price + “;”; if( send_capacity ) params += “capacity:” + send_capacity + “;”; if( send_country ) params += “country:” + send_country + “;”; if( send_covid_certified ) params += “covid_certified:” + send_covid_certified + “;”; if( current_page ) params += “page:” + current_page + “;”; if( params == “#” ) params = “#no-filters”; if( data != “load” ) { document.location = current_server_uri + params; } $.post( lan + “/ajax/functions.php”, { operation: “get_search”, parent_id: 47,data: obj_search, “randomize”: “Yes” }, function(data){ $( “.tier-1” ).html( “” ); $( “.tier-2” ).html( “” ); $( “.tier-3” ).html( “” ); $( “.tier-1” ).hide( ); $( “.tier-2” ).hide( ); $( “.tier-3” ).hide( ); $( “.paginator” ).hide(); $( “.paginator ul li” ).remove(); $( “.search-counter span” ).text( 0 ); _data = data; $.each( data, function( index, value ){ if( index == “total” && value > 1 ){ total_items = value; $( “.search-counter span” ).text( value ); var cant_pages = value / items_page; for( var i = 1 ; i = ( i – 2 ) ) && ( current_page <= ( i + 2 ) ) ){ if( current_page == i ) $( ".paginator ul" ).append( '

  • ‘ + i + ” ); else $( “.paginator ul” ).append( ‘
  • ‘ + i + ” ); } } if( current_page < cant_pages ){ $( ".paginator ul" ).append( '
  • Next’ ); } if( current_page > 1 ){ $( “.paginator ul” ).prepend( ‘
  • Previous’ ); } $( “.paginator a” ).on( “click”, function(){ current_page = $( this ).attr( “href” ); current_page = current_page.replace( “#”, “” ); getSearch(); setTimeout( function(){ $([document.documentElement, document.body]).animate({ scrollTop: $(“#search-header”).offset().top }, 1000); }, 300 ) return false; } ) if( cant_pages < 1 ) $( ".paginator" ).hide(); $( ".search-counter-wrapper .no-results" ).remove( ); }else if( index == "total" ){ $( ".search-counter span" ).text( value ); if( value == 0 && $( ".search-counter-wrapper .no-results" ).length == 0 ) $( ".search-counter-wrapper" ).append( "Sorry, there are no results with your selected search criteria." ) } var featured = 'n' + 'Featuredn' + 'n'; if( value.featured != 1 ){ featured = ''; } var only_restaurants = ""; /*only_restaurants = ' n' + '

    ‘ + value.amenity + ‘n’ + //esto se repite en things to do ‘ n’;*/ var html_rank = “”; if( value.tripadvisor ) { var tripadvisor = JSON.parse(value.tripadvisor); var rank = Math.floor( tripadvisor.rating ); var class_li = “”; var html_li = “”; for (var k = 1; k <= 5; k++) { class_li = ""; if (k <= rank) { class_li = "full"; } html_li += '

  • n’; } html_rank = ‘n’ + //tripadvisor para things to do ‘n’ + ‘ n’ + ‘n’ + ( ( tripadvisor ) ? ‘‘ : ”) + ‘n’ + ( ( tripadvisor ) ? ” : ”) + ‘n’ + ‘n’ + ‘



  • Source

    Caribcast

    FREE
    VIEW