');
$wbc('#booking_modal_loading').fadeIn();
}
});
/*check all months days*/
setWeekdays();
$wbc(window).on('resize', function(){
setWeekdays();
});
});
function setWeekdays() {
$wbc('.booking_day_name').each(function() {
if($wbc(this).width() '+year+'');
currentMonth = month;
currentYear = year;
if((today.getMonth()+1)!=(month)) {
$wbc('#booking_back_today').fadeIn();
} else {
$wbc('#booking_back_today').css("display","none");
}
}
function showResponse(calendar_id) {
$wbc('#booking_container_all').parent().prepend('
');
$wbc('#ok_response').attr("href","javascript:hideBookingResponse("+calendar_id+",'');");
$wbc('#booking_modal_response').fadeIn('slow');
$wbc('#booking_submit_button').removeAttr("disabled");
}
function showCaptchaError() {
$wbc('#booking_captcha_error').fadeIn();
$wbc('#booking_submit_button').removeAttr("disabled");
}
function clearForm() {
var formObj = document.forms["slot_reservation"];
formObj.reservation_name.value='';
formObj.reservation_surname.value='';
formObj.reservation_email.value='';
formObj.reservation_phone.value='';
formObj.reservation_message.value='';
$wbc('#booking_captcha_error').fadeOut();
}
function updateCalendarSelect(category) {
$wbc.ajax({
url: 'https://www.acvconference.net/wp-content/plugins/wp-booking-calendar/public/ajax/getCalendarsList.php?category_id='+category+"&wpml_lang="+$wbc('#wpml_lang').val(),
success: function(data) {
arrData = data.split("|");
$wbc('#calendar_select_input').html(arrData[0]);
$wbc("#calendar_select_input").val($wbc("#calendar_select_input option:first").val());
var newday= today;
getBookingMonthCalendar((newday.getMonth()+1),newday.getFullYear(),arrData[1],'');
}
});
}
function updateCalendar(calendar_id) {
$wbc.ajax({
url: 'https://www.acvconference.net/wp-content/plugins/wp-booking-calendar/public/ajax/getCalendar.php?calendar_id='+calendar_id+"&wpml_lang="+$wbc('#wpml_lang').val(),
success: function(data) {
var newday= today;
getBookingMonthCalendar((newday.getMonth()+1),newday.getFullYear(),calendar_id,'');
}
});
}
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
');
$wbc('#booking_modal_loading').fadeIn();
$wbc.ajax({
type: "POST",
url: "https://www.acvconference.net/wp-login.php",
data: { log: $wbc('#user_login').val(), pwd: $wbc('#user_pass').val() }
}).done(function() {
$wbc.ajax({
url: 'https://www.acvconference.net/wp-content/plugins/wp-booking-calendar/public/ajax/getCurrentUser.php?wpml_lang='+$wbc('#wpml_lang').val(),
success: function(data) {
$wbc('#booking_sfondo').remove();
$wbc('#booking_modal_loading').fadeOut();
if(data!='error') {
arrData = data.split("|");
$wbc('#login-register-password-container').removeAttr('style');
$wbc('#login-register-password-container').css('display','none ');
$wbc('#reservation_name').val(arrData[0]);
$wbc('#reservation_surname').val(arrData[1]);
$wbc('#reservation_email').val(arrData[2]);
$wbc('#wordpress_user_id').val(arrData[3]);
$wbc('#form_container_all').removeAttr('style');
$wbc('#form_container_all').css('display','block ');
} else {
alert("Invalid username or password");
}
}
});
});
} else {
alert("Insert a valid username and password");
}
}
Thank you for booking online. You'll receive an email confirmation at your email address
OK