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( '
‘ + 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_li + ‘n’ + ‘n’ + ‘n’ + ‘n’ + only_restaurants + ”; }else{ html_rank = ‘n’ + ‘n’ + only_restaurants + ‘n’; } var phone = “”; var phone_tel = “”; // if( typeof value.phone_alt != “undefined” && value.phone_alt != “/-//-/” ){ // phone = value.phone_alt; // phone_tel = value.phone_alt; // if( phone && phone.indexOf( “(” ) == “-1” ){ // phone_tel = phone_tel.split(“/-/”); // phone = phone_tel[0] + phone_tel[1] + phone_tel[2]; // phone_tel = ‘(‘ + phone_tel[0] + ‘) ‘ + phone_tel[1] + ‘ – ‘ + phone_tel[2]; // }else{ // phone = phone.replace( “/-/”, “” ); // phone = phone.replace( “/-/”, “” ); // } // phone = ‘‘ + phone_tel + ”; // } var parent_name = value.parent_name; if( !parent_name ) parent_name = “”; var video_360 = ”; // if( value.video ){ // if( value.video.indexOf( “http” ) == “-1” ) value.video = “http://” + value.video; // video_360 = ‘‘; // } var website = value.website; if( website != “” ){ if( website && website.indexOf( “http” ) == “-1” ){ website = “https://” + website; } website = ‘Visit Website’; } var covid_widget = ”; if( value.covid == 1 ){ covid_widget = ‘n’ + ‘ n’ + ‘
Covid 19-status: certifiedn’ + ‘ ‘; } var email = “”; if( value.email ){ email = ‘Email: ‘ + value.email + ”; } if( value.tier == 1 || value.tier == -1 || value.featured == 1 ){ var image = “”; if( value.images[0] ){ image = ‘‘ + ‘‘ + covid_widget + ‘n’ + featured; } $( “.tier-1” ).append( ‘n’ + ‘ n’ + image + ‘
‘ + clearString( value.short_description ) + ‘n’ + ( ( website || video_360 ) ? ” + website + video_360 + ” : “” ) + ‘n’ + ” ); $( “.tier-1” ).show( ); }else if( value.tier == 2 ){ var image = “”; if( value.images[0] ) image = ‘‘; $( “.tier-2” ).append( ‘n’ + ‘ n’ + ‘ ‘ + image + ‘ ‘ + //covid_widget + ‘ n’ + ‘ n’ + ‘ Featuredn’ + ‘ n’ + ‘
‘ + clearString( value.short_description ) + ‘n’ + ‘ ‘ + //btns para things to do, de momento no va en restaurants website + //phone + ‘ ‘ + ‘ n’ + ” ); $( “.tier-2” ).show( ); }else if( ( value.tier == 3 || value.tier == 0 ) && value.business_name ){ $( “.tier-3” ).append( ‘n’+ ‘ n’ + ‘ ‘ + ‘
‘ + clearString( value.short_description ) + ‘n’ + ‘ ‘ + //btns para things to do, de momento no va en restaurants website + //phone + ‘ ‘ + ‘ n’ + ” ); $( “.tier-3” ).show( ); } $( “.search-content__results” ).animate( { opacity: 1 }, 100 ); } ) $.each( $(“.hit-traveler-image”), function(){ $( this ).addClass( “ht-fav-widget-btn” ); if( $( this ).parent().parent().find( “a.hotel-link” ).text() ){ var aux = $( this ).parent().parent().find( “a.hotel-link” ).data( “id” ); $( this ).attr( “data-attr”, “poi-” + aux ) } if( $( this ).parent().parent().parent().hasClass( “tier-2” ) && $( this ).parent().parent().find( “h2 a” ).text() ){ var aux = $( this ).parent().parent().find( “h2 a” ).data( “id” ); $( this ).attr( “data-attr”, “poi-” + aux ) } if( $( this ).parent().parent().hasClass( “tier-3” ) && $( this ).parent().find( “h2 a” ).text() ){ var aux = $( this ).parent().find( “h2 a” ).data( “id” ); $( this ).attr( “data-attr”, “poi-” + aux ) } } ) on_process = false; }, “json” ) } function addListeners(){ $( “.search-form__amenities .check, #hotels-amenities .check” ).on( “click”, function(){ if( !on_process ) { on_process = true; var _this = this; setTimeout(function () { send_amenities = “”; if (!$(_this).hasClass(“active”)){ $(_this).addClass(“active”); $( “#filter-form input[name='” + $( _this ).find( “input” ).attr( “name” ) + “‘]” ).prop( “checked”, true ); $( “#filter-form input[name='” + $( _this ).find( “input” ).attr( “name” ) + “‘]” ).parent().addClass( “active” ); $( “#filter-form #” + $( _this ).parent().parent().parent().attr( “id” ) + ” .selected-filter” ).append( ” + $( _this ).text() + ” ); $( “.selected-filter__tag” ).on( “click”, function(){ removeFilter(this); } ) }else{ $(_this).removeClass(“active”); $(_this).find( “input” ).prop( “checked”, false ); $( “#filter-form input[name='” + $( _this ).find( “input” ).attr( “name” ) + “‘]” ).prop( “checked”, false ); $( “#filter-form input[name='” + $( _this ).find( “input” ).attr( “name” ) + “‘]” ).parent().removeClass( “active” ); $.each( $( “.selected-filter .selected-filter__tag” ), function( index, value ){ if( $( this ).text() == $( _this ).text() ) $( this ).remove(); } ) } $.each( $( _this ).parent().parent().find(“input[type=checkbox]”), function (index, value) { if ($(value).is(“:checked”)) { send_amenities += $(value).val() + “,”; } }) send_amenities = send_amenities.substring(0, send_amenities.length – 1); current_page = 1; getSearch(); on_process = false; }, 500) } } ); $( “.search-form__diets .check” ).on( “click”, function(){ if( !on_process ) { on_process = true; var _this = this; setTimeout(function () { send_diets = “”; if (!$(_this).hasClass(“active”)){ $(_this).addClass(“active”); $( “#filter-form input[name='” + $( _this ).find( “input” ).attr( “name” ) + “‘]” ).prop( “checked”, true ); $( “#filter-form input[name='” + $( _this ).find( “input” ).attr( “name” ) + “‘]” ).parent().addClass( “active” ); $( “#filter-form #” + $( _this ).parent().parent().parent().attr( “id” ) + ” .selected-filter” ).append( ” + $( _this ).text() + ” ); $( “.selected-filter__tag” ).on( “click”, function(){ removeFilter(this); } ) }else{ $(_this).removeClass(“active”); $(_this).find( “input” ).prop( “checked”, false ); $( “#filter-form input[name='” + $( _this ).find( “input” ).attr( “name” ) + “‘]” ).prop( “checked”, false ); $( “#filter-form input[name='” + $( _this ).find( “input” ).attr( “name” ) + “‘]” ).parent().removeClass( “active” ); $.each( $( “.selected-filter .selected-filter__tag” ), function( index, value ){ if( $( this ).text() == $( _this ).text() ) $( this ).remove(); } ) } $.each($(“.search-form__diets input[type=checkbox]”), function (index, value) { if ($(value).is(“:checked”)) { send_diets += $(value).val() + “,”; } }) send_diets = send_diets.substring(0, send_diets.length – 1); current_page = 1; getSearch(); on_process = false; }, 500) } } ); $( “.venues-type .check” ).on( “change”, function(){ var _this = this; if (!$(_this).hasClass(“active”)){ $(_this).addClass(“active”); send_category += $( this ).find( “input” ).val( ) + “,”; $( “#filter-form input[name='” + $( this ).attr( “name” ) + “‘]” ).prop( “checked”, true ); $( “#filter-form input[name='” + $( this ).attr( “name” ) + “‘]” ).parent().addClass( “active” ); $( “#filter-form #” + $( _this ).parent().parent().parent().attr( “id” ) + ” .selected-filter” ).append( ” + $( _this ).text() + ” ); $( “.selected-filter__tag” ).on( “click”, function(){ removeFilter(this); } ) }else{ $( this ).removeClass( “active” ); $(_this).find( “input” ).prop( “checked”, false ); send_category = send_category.replace( $( this ).find( “input” ).val( ) + “,”, “” ); $( “#filter-form input[name='” + $( this ).find( “input” ).attr( “name” ) + “‘]” ).prop( “checked”, false ); $( “#filter-form input[name='” + $( this ).find( “input” ).attr( “name” ) + “‘]” ).parent().removeClass( “active” ); $.each( $( “.selected-filter .selected-filter__tag” ), function( index, value ){ if( $( this ).text() == $( _this ).text() ) $( this ).remove(); } ) } current_page = 1; getSearch(); } ) } $( document ).ready( function(){ on_process = false; addListeners(); $( “#hotels-covid_certified .check” ).on( “click”, function(){ if( !on_process ) { on_process = true; if( !$( this ).find( “input” ).is( “:checked” ) ){ send_covid_certified = 1 }else{ send_covid_certified = “”; } getSearch(); } } ) $( “.island-selector-content .form-custom-option” ).on( “click”, function(){ if( !on_process ) { on_process = true; send_area = “”; $(this).parent().find(“.form-custom-option”).removeClass(“selection”); send_dest = $(this).data(“value”); if (send_dest == “all”) { send_dest = “”; } $(“.areas-content .custom-sel-trigger”).text(“All”); $(“.areas-content”).css(“display”, “none”); $(“.areas-content .form-custom-option”).remove(); current_page = 1; getSearch(); } } ); $( “.country-selector-content .form-custom-option” ).on( “click”, function(){ if( !on_process ) { on_process = true; $(this).parent().find(“.form-custom-option”).removeClass(“selection”); send_country = $(this).data(“value”); if (send_country == “all”) { send_country = “”; } current_page = 1; getSearch(); } } ); $( “.island-selector-content .form-custom-option” ).on( “click”, function(){ if( !on_process ){ on_process = true; send_area = “”; $( this ).parent().find( “.form-custom-option” ).removeClass( “selection” ); send_dest = $( this ).data( “value” ); if( send_dest == “all” ){ send_dest = “”; } $( “.areas-content .custom-sel-trigger” ).text( “All” ); $( “.areas-content” ).css(“display”, “none”); $( “.areas-content .form-custom-option” ).remove(); current_page = 1; getSearch( ); $.post( “/ajax/functions.php”, { operation: “get_areas”, parent: send_dest }, function( data ){ $.each( data, function( index, value ){ if( index == 0 ){ $(“.areas-content”).css(“display”, “block”); $( “.areas-content .form-custom-options” ).append( ‘All’ ); } $( “.areas-content .form-custom-options” ).append( ‘n’ + value.name + ” ); } ) $( “.areas-content .form-custom-option” ).on( “click”, function(){ if( !on_process ) { on_process = true; $( this ).parent().find( “> .form-custom-options” ).removeClass( “selection” ); $( this ).addClass( “selection” ); send_area = $(this).data( “value” ); if( send_area == “All” ) send_area = “”; $( “.areas-content .custom-sel-trigger” ).text( $(this).text() ); current_page = 1; getSearch(); on_process = false; } } ) on_process = false; }, “json” ); } } ); $( “.accommodation-content .form-custom-option” ).on( “click”, function(){ $( this ).parent().find( “> .form-custom-option” ).removeClass( “selection” ); $( this ).addClass( “selection” ); if( $( this ).text() == “All” ) send_category = “”; else send_category = $( this ).text(); current_page = 1; getSearch(); } ) var interval_query = “”; $( “#search-name” ).on( “keyup”, function(){ send_name = $( this ).val(); current_page = 1; clearTimeout( interval_query ); interval_query = setTimeout(function(){ getSearch( ); }, 700); } ) $( “.search-form__rates .wrap” ).on( “change”, function(){ var rates = $( this ).attr( “style” ); rates = rates.split(“;”); rates = [ rates[2], rates[3] ]; rates = rates[0].split(“:”)[1].replace( ” “, “” ) + “_” + rates[1].split(“:”)[1].replace( ” “, “” ); send_rate_range = rates; current_page = 1; getSearch( ); } ) $( “.select_expandLabel” ).on( “click”, function(){ $( this ).parent().find( “.active” ).removeClass( “active” ); } ) $( “.ranting-ranking .star-btn” ).on( “click”, function(){ var index_click = $( this ).index(); if( send_ranking.indexOf( ( index_click + 1 ) ) != “-1” ){ send_ranking = send_ranking.replace( ( index_click + 1 ) + “,”, “” ); $( this ).removeClass( “active” ); }else{ send_ranking += index_click + 1 + “,”; $.each( $( this ).parent().find( “li” ), function( index, value ){ if( index == ( index_click ) ){ $( value ).addClass( “active” ); } } ) } current_page = 1; getSearch( ); } ) $( “.price-ranking li” ).on( “click”, function(){ var index_click = $( this ).index(); if( send_price.indexOf( “,” + $( this ).text() + “,” ) != “-1” ){ send_price = send_price.replace( “,” + $( this ).text() + “,”, “” ); $( this ).removeClass( “active” ); }else{ send_price += “,” + $( this ).text() + “,”; $.each( $( this ).parent().find( “li” ), function( index, value ){ if( index == index_click ){ $( “.price-content .star-img” ).eq( index ).addClass( “active” ); $( value ).addClass( “active” ); } } ) } current_page = 1; getSearch( ); } ) var interval_query = “”; $( “.guest-capacity #search-capacity” ).on( “keyup”, function(){ send_capacity = $( this ).val(); current_page = 1; clearTimeout( interval_query ); interval_query = setTimeout(function(){ getSearch( ); }, 700) } ) $( “.btn-reset” ).on( “click”, function(){ document.location = current_server_uri; return false; } ) $( “.btn-text–show-more” ).on( “click”, function(){ var _this = this; //$( this ).hide(); $( this ).parent().find( “.check-container, .check” ).show(); var class_container = $(this).parent().attr( “class” ); var id_container = $(this).parent().attr( “id” ); $.fancybox({ ‘content’ : “” + $( this ).parent().html() + “Apply”, afterClose: function(){ $.each( $( “#filter-form #” + id_container + ” .check” ), function( index, value ){ if( index > 4 ) $( value ).hide(); } ) } }); $( “.close-fancy” ).on( “click”, function(){ $.fancybox.close(); } ) addListeners(); $( “.fancybox-inner .btn-text–show-more” ).remove(); $( “.fancybox-inner .selected-filter” ).remove(); return false; } ) getSearchUrl(); } ) ]]>n’ + ‘ ‘ + value.name + ‘‘ + value.business_name + ” + ‘ n’ + html_rank + //’
n’ + ‘ ‘ + value.name + ‘n’ + value.business_name + ” + ‘ n’ + html_rank + //’
n’ + ‘ ‘ + value.name + ‘nn’ + value.business_name + ” + ‘ n’ + html_rank + //’