Wertstoffhof Backnang
Mischmüll
Absetzcontainer 14m³ (Copy)
Ab
€ 500.00
Unsere Preise beinhalten eine Stellzeit von 7 Tagen.
function vriCleanNumber(snum) {
if (snum.length > 1 && snum.substr(0, 1) == '0') {
return parseInt(snum.substr(1));
}
return parseInt(snum);
}
function vriValidateSearch() {
if (typeof jQuery === 'undefined' || typeof vri_wopening_pick === 'undefined') {
return true;
}
if (vri_mopening_pick !== null) {
// pickup time
var pickh = jQuery('#vricomselph').find('select').val();
var pickm = jQuery('#vricomselpm').find('select').val();
if (!pickh || !pickh.length || !pickm) {
return true;
}
pickh = vriCleanNumber(pickh);
pickm = vriCleanNumber(pickm);
if (pickh == vri_mopening_pick[0]) {
if (pickm < vri_mopening_pick[1]) {
// location is still closed at this time
jQuery('#vricomselpm').find('select').html(''+(vri_mopening_pick[1] < 10 ? '0'+vri_mopening_pick[1] : vri_mopening_pick[1])+'').val(vri_mopening_pick[1]);
}
}
if (pickh == vri_mopening_pick[2]) {
if (pickm > vri_mopening_pick[3]) {
// location is already closed at this time for a pick up
jQuery('#vricomselpm').find('select').html(''+(vri_mopening_pick[3] < 10 ? '0'+vri_mopening_pick[3] : vri_mopening_pick[3])+'').val(vri_mopening_pick[3]);
}
}
}
if (vri_mopening_drop !== null) {
// dropoff time
var droph = jQuery('#vricomseldh').find('select').val();
var dropm = jQuery('#vricomseldm').find('select').val();
if (!droph || !droph.length || !dropm) {
return true;
}
droph = vriCleanNumber(droph);
dropm = vriCleanNumber(dropm);
if (droph == vri_mopening_drop[0]) {
if (dropm > vri_mopening_drop[1]) {
// location is already closed at this time
jQuery('#vricomseldm').find('select').html(''+(vri_mopening_drop[1] < 10 ? '0'+vri_mopening_drop[1] : vri_mopening_drop[1])+'').val(vri_mopening_drop[1]);
}
}
if (droph == vri_mopening_drop[2]) {
if (dropm < vri_mopening_drop[3]) {
// location is still closed at this time for a drop off
jQuery('#vricomseldm').find('select').html(''+(vri_mopening_drop[3] < 10 ? '0'+vri_mopening_drop[3] : vri_mopening_drop[3])+'').val(vri_mopening_drop[3]);
}
}
}
return true;
}
jQuery(document).ready(function() {
jQuery(document.body).on('click', '.vri-idetails-cal-pickday', function() {
if (!jQuery("#pickupdate").length) {
return;
}
var tdday = jQuery(this).attr('data-daydate');
if (!tdday || !tdday.length) {
return;
}
// set pick-up date in datepicker
jQuery('#pickupdate').datepicker('setDate', tdday);
// animate to datepickers position
if (jQuery("#vri-bookingpart-init").length) {
jQuery('html,body').animate({
scrollTop: (jQuery('#vri-bookingpart-init').offset().top - 5)
}, 600, function() {
// animation-complete callback should simulate the onSelect event of the pick-up datepicker
if (typeof vriSetMinDropoffDate !== "undefined") {
vriSetMinDropoffDate();
}
if (typeof vriLocationWopening !== "undefined") {
vriLocationWopening('pickup');
}
// give focus to drop-off datepicker
if (jQuery('#releasedate').length) {
jQuery('#releasedate').focus();
}
});
}
});
});