jQuery(document).ready(function(){ var live_endpoints = { 'ajax_get_prices': 'ajax-get-prices-testR4.php', } var dev_endpoints = { 'ajax_get_prices': 'ajax-get-prices.php', } var endpoints = live_endpoints; let params = new URLSearchParams(document.location.search); let dev_param = params.get("dev"); dev_param = (dev_param === null) ? 0 : parseInt(dev_param); if(dev_param){ endpoints = dev_endpoints } console.log('ajax-get-prices.php -> ' + endpoints.ajax_get_prices); console.log("dev = " + dev_param); jQuery.ajax({ type: "POST", url: "https://rentals.handlconsulting.biz/dev/pivrent-get-scaffold.php?site_index=7&dev=" + dev_param, data: 'site_index=7', success: function(msg){ jQuery('#pivrent-wrapper').html(msg); jQuery("#tabs").tabs(); jQuery('#start_datetime').datepicker(); jQuery('#end_datetime').datepicker(); jQuery('#start_datetime').change(function (){ check_dates(); }); jQuery('#end_datetime').change(function (){ check_dates(); }); enable_disable_item_list(); jQuery('#email').keyup(function(){ check_email(); }); jQuery('input[type=radio][name=seapines]').change(function() { if (this.value == 'no') { sp_checked = false; jQuery('#seapines-selected-note').html(''); } else if (this.value == 'yes') { sp_checked = true; jQuery('#seapines-selected-note').html('Sea Pines charges a $1.00 gate fee per bike for entry into the plantation. This charge will be added to your order for all bike items - this charge does not apply to any non-bike rental items.'); } sp_selected=true; adjust_prices(); check_dates(); }); check_dates(); monitor_cc_info_input(); check_reservation_form_status(); check_payment_method_form_status(); setTimeout('get_prices(0,0);',2000); jQuery('.item-submit a').click(function(){ jQuery(this).parent().parent().submit(); }); jQuery('.item-detail-wrapper form').submit(function(){ modify_cart(jQuery(this).attr('name'), jQuery(this).children(".item-qty").children('input.qty').val()); }); } }); })