Notice: Trying to access array offset on value of type bool in /home4/carniele/hits101radio.com/wp-content/plugins/comment-pub/comment_pub.php on line 58
Notice: Trying to access array offset on value of type bool in /home4/carniele/hits101radio.com/wp-content/plugins/comment-pub/comment_pub.php on line 80
Warning: Cannot modify header information - headers already sent by (output started at /home4/carniele/hits101radio.com/wp-content/plugins/comment-pub/comment_pub.php:58) in /home4/carniele/hits101radio.com/wp-content/plugins/page-optimize/service.php on line 44
Warning: Cannot modify header information - headers already sent by (output started at /home4/carniele/hits101radio.com/wp-content/plugins/comment-pub/comment_pub.php:58) in /home4/carniele/hits101radio.com/wp-content/plugins/page-optimize/service.php on line 44
Warning: Cannot modify header information - headers already sent by (output started at /home4/carniele/hits101radio.com/wp-content/plugins/comment-pub/comment_pub.php:58) in /home4/carniele/hits101radio.com/wp-content/plugins/page-optimize/service.php on line 44
Warning: Cannot modify header information - headers already sent by (output started at /home4/carniele/hits101radio.com/wp-content/plugins/comment-pub/comment_pub.php:58) in /home4/carniele/hits101radio.com/wp-content/plugins/page-optimize/service.php on line 51
Warning: Cannot modify header information - headers already sent by (output started at /home4/carniele/hits101radio.com/wp-content/plugins/comment-pub/comment_pub.php:58) in /home4/carniele/hits101radio.com/wp-content/plugins/page-optimize/service.php on line 52
Warning: Cannot modify header information - headers already sent by (output started at /home4/carniele/hits101radio.com/wp-content/plugins/comment-pub/comment_pub.php:58) in /home4/carniele/hits101radio.com/wp-content/plugins/page-optimize/service.php on line 53
/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1>$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1>$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
;
var wpdevartScript;
var wpdevartScriptOb;
jQuery( document ).ready(function() {
wpdevartScript = function () {
/*
* Calendar Next, Prev
*/
var $ = jQuery;
var ajax_next = "";
$("body").on( "click",".wpda-booking-calendar-head:not(.reservation) .wpdevart_link", function(e){
if(typeof(start_index) == "undefined") {
start_index = "";
selected_date = "";
}
e.preventDefault();
var bc_main_div = $(this).closest('.booking_calendar_container');
var id = wpdevartBooking($(this).closest(".booking_calendar_main_container").data('booking_id'),"id");
$(bc_main_div).find('.wpdevart-load-overlay').show();
$.post(wpdevart.ajaxUrl, {
action: 'wpdevart_ajax',
wpdevart_selected: start_index,
wpdevart_selected_date: selected_date,
wpdevart_link: $(this).attr('href'),
wpdevart_id: id,
wpdevart_nonce: wpdevart.ajaxNonce
}, function (data) {
$(bc_main_div).find('div.booking_calendar_main').replaceWith(data);
$(bc_main_div).find('.wpdevart-load-overlay').hide();
if($(data).find(".wpdevart-day.selected").length == 1) {
select_index = $(data).find(".wpdevart-day.selected").index() - 7;
} else if($(data).find(".wpdevart-day.selected").length == 0){
select_index = 0;
}
});
e.stopPropagation();
});
/*
* Reservation Calendar Next, Prev
*/
$("body").on( "click",".reservation .wpda-previous,.reservation .wpda-next", function(e){
if(typeof(start_index) == "undefined") {
start_index = "";
selected_date = "";
}
e.preventDefault();
var bc_main_div = $(this).closest('.booking_calendar_container');
if($(".wpdevart_res_month_view").length != 0) {
var reserv = "true";
var cal_id = $(this).parent().parent().find("table").data('id');
} else {
var reserv = "false";
var cal_id = $(this).closest(".booking_calendar_main_container").data('id');
}
$(bc_main_div).find('.wpdevart-load-overlay').show();
$.post(wpdevart.ajaxUrl, {
action: 'wpdevart_ajax',
wpdevart_reserv: reserv,
wpdevart_selected: start_index,
wpdevart_selected_date: selected_date,
wpdevart_link: $(this).find('a').attr('href'),
wpdevart_id: cal_id,
wpdevart_nonce: wpdevart.ajaxNonce
}, function (data) {
$(bc_main_div).find('div.booking_calendar_main').replaceWith(data);
$(bc_main_div).find('.wpdevart-load-overlay').hide();
if($(data).find(".wpdevart-day.selected").length == 1) {
select_index = $(data).find(".wpdevart-day.selected").index() - 7;
} else if($(data).find(".wpdevart-day.selected").length == 0){
select_index = 0;
}
});
e.stopPropagation();
});
/*Change month select*/
$("body").on( "change","select.wpda-current-month", function(e){
if(typeof(start_index) == "undefined") {
start_index = "";
selected_date = "";
}
e.preventDefault();
var bc_main_div = $(this).closest('.booking_calendar_container');
if($(".wpdevart_res_month_view").length != 0) {
var reserv = "true";
var cal_id = $(this).parent().parent().find("table").data('id');
} else {
var reserv = "false";
var cal_id = $(this).closest(".booking_calendar_main_container").data('id');
}
$(bc_main_div).find('.wpdevart-load-overlay').show();
$.post(wpdevart.ajaxUrl, {
action: 'wpdevart_ajax',
wpdevart_reserv: reserv,
wpdevart_selected: start_index,
wpdevart_selected_date: selected_date,
wpdevart_link: $(this).val(),
wpdevart_id: cal_id,
wpdevart_nonce: wpdevart.ajaxNonce
}, function (data) {
$(bc_main_div).find('div.booking_calendar_main').replaceWith(data);
$(bc_main_div).find('.wpdevart-load-overlay').hide();
if($(data).find(".wpdevart-day.selected").length == 1) {
select_index = $(data).find(".wpdevart-day.selected").index() - 7;
} else if($(data).find(".wpdevart-day.selected").length == 0){
select_index = 0;
}
});
e.stopPropagation();
});
$("body").on( "click",".wpda-booking-calendar-head .wpda-next .wpdevart_link, .next_year_info", function(e){
ajax_next = "next";
});
$("body").on( "click",".wpda-booking-calendar-head .wpda-previous .wpdevart_link, .prev_date_info", function(e){
ajax_next = "prev";
});
/*
* Submit Button
*/
$("body").on( "click",".wpdevart-submit:not(.order-submit):not(.wpdevart-submit-update)", function(e){
var el = $(this);
var wpdevart_required_field = wpdevart_required(el);
var booking_id = el.closest(".booking_calendar_main_container").data('booking_id');
var capcha_error = wpdevartBooking(booking_id,"capcha_error");
e.preventDefault();
if(wpdevart_required_field){
if($(this).closest(".wpdevart-booking-form-container").find(".g-recaptcha").length){
var i = jQuery(".g-recaptcha").index(jQuery("#recaptcha" + booking_id));
$.post(wpdevart.ajaxUrl, {
action: 'wpdevart_captcha',
wpdevart_captcha: grecaptcha.getResponse(i),
wpdevart_nonce: wpdevart.ajaxNonce
}, function (data) {
if(data == 1){
wpdevartec_submit(el,booking_id);
} else {
alert(capcha_error);
}
});
}else {
wpdevartec_submit(el,booking_id);
}
e.stopPropagation();
}
});
/*
* Submit Button for Update
*/
$("body").on( "click",".wpdevart-submit-update", function(e){
var wpdevart_required_field = wpdevart_required($(this));
e.preventDefault();
if(wpdevart_required_field === true) {
var reserv_data = {};
var booking_id = $(this).closest(".booking_calendar_main_container").data('booking_id');
var offset = wpdevartBooking(booking_id,"offset");
$(this).closest("form").find("input[type=text],button,input[type=hidden],input[type=checkbox],input[type=radio],select,textarea").each(function(index,element){
if(jQuery(element).is("input[type=checkbox]")) {
if(jQuery(element).is(':checked')) {
reserv_data[jQuery(element).attr("name")] = "on";
} else {
reserv_data[jQuery(element).attr("name")] = "";
}
} else if(jQuery(element).is("select") && jQuery(element).attr("multiple") == "multiple"){
if($(element).val()) {
var multy_select = $(element).val().join("|wpdev|");
reserv_data[jQuery(element).attr("name")] = multy_select;
}
}else {
reserv_data[jQuery(element).attr("name")] = $(element).val();
}
});
reserv_json = JSON.stringify(reserv_data);
$(this).addClass("load");
var reserv_form = $(this).closest("form");
var reserv_cont = $(this).closest(".booking_calendar_main_container");
$.post(wpdevart.ajaxUrl, {
action: 'wpdevart_form_ajax',
wpdevart_data: reserv_json,
wpdevart_id: wpdevartBooking(booking_id,"id"),
wpdevart_submit: $(this).attr('id').replace("wpdevart-submit", ""),
wpdevart_nonce: wpdevart.ajaxNonce
}, function (data) {
$(reserv_cont).find('div.booking_calendar_main').replaceWith(data);
$(reserv_form).find(".wpdevart-submit").removeClass("load");
$(window).scrollTo( reserv_cont, 400,{'offset':{'top':-(offset)}});
});
e.stopPropagation();
}
});
/*
* payment Button
*/
$("body").on( "click","input.wpdevart_shipping", function(e){
var this_ = $(this);
if($(this).prop('checked') == true) {
$(this).closest(".address_item").prev().find(".wpdevart-fild-item-container").each(function(index,element){
var tag = jQuery(element).find("[id^='wpdevart_form_field']");
var tagname = tag.prop("tagName");
var value = tag.val();
var type = tag.attr("type");
if(tagname == "INPUT"){
if(type == "text") {
$(this_).closest(".address_item").find(".wpdevart-fild-item-container").eq(index+1).find("input").val(value);
} else if(type == "checkbox" || type == "radio") {
if(tag.prop('checked') == true) {
$(this_).closest(".address_item").find(".wpdevart-fild-item-container").eq(index+1).find("input").attr("checked","checked");
}
}
}
else if(tagname == "SELECT") {
$(this_).closest(".address_item").find(".wpdevart-fild-item-container").eq(index+1).find("select option[value='"+tag.find("option:selected").val()+"']").attr("selected","selected");
} else if(tagname == "TEXTAREA") {
$(this_).closest(".address_item").find(".wpdevart-fild-item-container").eq(index+1).find("textarea").val(value);
}
});
} else {
$(this).closest(".address_item").find("input[type=text],input[type=hidden],textarea").each(function(index,element){
jQuery(element).val("");
});
$(this).closest(".address_item").find("select").each(function(index,element){
jQuery(element).find("option:selected").removeAttr("selected");
});
$(this).closest(".address_item").find("input[type=checkbox],input[type=radio]").each(function(index,element){
jQuery(element).removeAttr("checked");
});
}
});
$("body").on( "click", ".order-submit", function(e){
var wpdevart_required_field = wpdevart_required($(this));
if(wpdevart_required_field !== true) {
e.preventDefault();
}
});
$("body").on( "click",".wpdevart-payment-button.payment_submit", function(e){
var id = $(this).data("id");
$(this).closest("form").find("input[name=payment_type_" + id + "]").val($(this).attr("id"));
$(this).closest("form").submit();
});
$("body").on( "click",".wpdevart-payment-button:not(.payment_submit)", function(e){
e.preventDefault();
var payment_id = $(this).attr("id");
var id = $(this).data("id");
var resid = $(this).data("resid");
var themeid = $(this).data("themeid");
$(this).closest("form").find("input[name=payment_type_" + id + "]").val($(this).attr("id"));
$(this).closest("form").find(".wpdevart_order_wrap").fadeIn();
$(this).closest("form").find(".wpdevart_order_content").fadeIn();
var order_content = $(this).closest("form").find(".wpdevart_order_content");
$.post(wpdevart.ajaxUrl, {
action: 'wpdevart_payment_ajax',
wpdevart_data: payment_id,
wpdevart_resid: resid,
wpdevart_id: id,
wpdevart_themeid: themeid,
wpdevart_nonce: wpdevart.ajaxNonce
}, function (data) {
$(order_content).replaceWith(data);
});
e.stopPropagation();
});
$("body").on( "click",".wpdevart_close_popup", function(e){
$(this).closest(".wpdevart_order_content").fadeOut();
$(this).closest(".wpdevart_order_content").prev().fadeOut();
});
$("body").on( "click",".wpdevart_order_wrap", function(e){
$(this).fadeOut();
$(this).next().fadeOut();
});
/*
*CALENDAR
*/
var select_ex = false,
existtt = false,
count_item = $(".wpdevart-day").length,
start_index,check_in,check_out,
item_count = "",
extra_price_value = 0;
if($("#wpdevart_update_res").length){
existtt = true;
/* 12/23/2017 remove
item_click(false,$(".wpdevart-day.selected").get(0),true);*/
var check_indateformat = $(".wpdevart-day.selected").eq(0).data("dateformat");
var check_outdateformat = $(".wpdevart-day.selected").eq($(".wpdevart-day.selected").length-1).data("dateformat");
var check_indate = $(".wpdevart-day.selected").eq(0).data("date");
var check_outdate = $(".wpdevart-day.selected").eq($(".wpdevart-day.selected").length-1).data("date");
var calendar_idd = $(".booking_calendar_main_container").data("id");
if(!$(".booking_calendar_main_container").hasClass("hours_enabled")){
$.get(wpdevart.ajaxUrl, {
action: 'wpdevart_get_interval_dates',
wpdevart_start_date: check_indate,
wpdevart_end_date: check_outdate,
wpdevart_id: calendar_idd,
wpdevart_nonce: wpdevart.ajaxNonce
}, function (data) {
date_data = JSON.parse(data);
});
}
}
$("body").on("click",".wpdevart-day", function() {
item_click(false,this,false);
});
$("body").on("mouseenter mouseleave",".wpdevart-day", function(){
item_hover(false,this);
});
/*
*HOURS
*/
$("body").on("click",".wpdevart-hour-item", function() {
item_click(true,this,false);
});
$("body").on("mouseenter mouseleave",".wpdevart-hour-item", function(){
item_hover(true,this);
});
function item_hover(hour,el) {
var booking_id = $(el).closest(".booking_calendar_main_container").data('booking_id');
var booking_widget = wpdevartBooking(booking_id, "booking_widget");
var show_day_info_on_hover = wpdevartBooking(booking_id, "show_day_info_on_hover");
var forNight = wpdevartBooking(booking_id, "night");
var hours_enabled = wpdevartBooking(booking_id, "hours_enabled");
if(hour == true) {
var selected = "hour_selected";
var item = "wpdevart-hour-item";
} else {
var selected = "selected";
var item = "wpdevart-day";
}
if(typeof id == "undefined") {
id = 0;
}
if(id != 0) {
if(($("#booking_calendar_main_container_"+id+" ."+selected).length != 0 || (typeof(start_index) != "undefined" && start_index != "")) && select_ex == false && ($("#wpdevart_single_day" + id).length == 0 || (hour == true && $("#wpdevart_form_hour" + id).length == 0)) && (start_index !== "" || hour == true)) {
end_index = $("#booking_calendar_main_container_"+id+" ."+item).index(el);
if(ajax_next == "" || hour == true) {
if(start_index <= end_index) {
for(var j = 0; j < start_index; j++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(j).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for(var n = end_index; n < count_item; n++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(n).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for (var i = start_index; i < end_index; i++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(i).addClass(selected);
if(forNight == 1 && !hours_enabled){
$("#booking_calendar_main_container_"+id+" ."+item).eq(start_index).addClass("checkin_night");
$("#booking_calendar_main_container_"+id+" ."+item).removeClass("checkout_night");
$(el).addClass("checkout_night");
}
}
}
else if(start_index >= end_index){
for(var k = start_index+1; k < count_item; k++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(k).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for(var p = 0; p < end_index; p++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(p).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for (var m = end_index; m < start_index; m++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(m).addClass(selected);
if(forNight == 1 && !hours_enabled){
$("#booking_calendar_main_container_"+id+" ."+item).eq(start_index).addClass("checkout_night");
$("#booking_calendar_main_container_"+id+" ."+item).removeClass("checkin_night");
$(el).addClass("checkin_night");
}
}
}
} else if(ajax_next == "next" && hour == false) {
if(select_index <= end_index) {
for(var j = 0; j < select_index; j++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(j).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for(var n = end_index; n < count_item; n++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(n).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for (var i = select_index; i < end_index; i++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(i).addClass(selected);
if(forNight == 1 && !hours_enabled){
$("#booking_calendar_main_container_"+id+" ."+item).eq(start_index).addClass("checkin_night");
$("#booking_calendar_main_container_"+id+" ."+item).removeClass("checkout_night");
$(el).addClass("checkout_night");
}
}
}
else if(select_index >= end_index){
for(var k = select_index+1; k < count_item; k++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(k).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for(var p = 0; p < end_index; p++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(p).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for (var m = end_index; m < select_index; m++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(m).addClass(selected);
if(forNight == 1 && !hours_enabled){
$("#booking_calendar_main_container_"+id+" ."+item).eq(start_index).addClass("checkout_night");
$("#booking_calendar_main_container_"+id+" ."+item).removeClass("checkin_night");
$(el).addClass("checkin_night");
}
}
}
} else if(ajax_next == "prev" && hour == false) {
if(select_index == 0) {
select_index = count_item;
}
if(select_index <= end_index) {
for(var j = 0; j < select_index; j++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(j).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for(var n = end_index; n < count_item; n++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(n).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for (var i = select_index; i < end_index; i++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(i).addClass(selected);
if(forNight == 1 && !hours_enabled){
$("#booking_calendar_main_container_"+id+" ."+item).eq(start_index).addClass("checkin_night");
$("#booking_calendar_main_container_"+id+" ."+item).removeClass("checkout_night");
$(el).addClass("checkout_night");
}
}
}
else if(select_index >= end_index){
for(var k = select_index+1; k < count_item; k++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(k).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for(var p = 0; p < end_index; p++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(p).removeClass(selected).removeClass("checkout_night").removeClass("checkin_night");
}
for (var m = end_index; m < select_index; m++) {
$("#booking_calendar_main_container_"+id+" ."+item).eq(m).addClass(selected);
if(forNight == 1 && !hours_enabled){
$("#booking_calendar_main_container_"+id+" ."+item).eq(start_index).addClass("checkout_night");
$("#booking_calendar_main_container_"+id+" ."+item).removeClass("checkin_night");
$(el).addClass("checkin_night");
}
}
}
}
$(el).addClass(selected);
}
}
if(booking_widget && show_day_info_on_hover && hour == false) {
if($(el).find(".booking_widget_day").length == 0) {
var day_price = "",
day_user_info = "",
day_availability = "";
if($(el).find(".day-availability").length != 0) {
day_availability = "