Add weekend and time of day warnings for pickups

master
Skylar Ittner 2 years ago
parent 6aef803ba4
commit e078cd216e

@ -36,6 +36,14 @@
You need an account with a linked credit card to send packages with Drop and Send. <span class="taptext">Tap</span><span class="clicktext">Click</span> the button to update your account.
<a class="button hapticbtn button-fill margin" href="/account"><i class="fas fa-user-circle"></i> My Account</a>
</li>
<li class="padding text-align-center" id="pickupLateInDayWarning" style="display: none;">
<i class="fad fa-clock fa-2x text-color-purple"></i><br>
Packages dropped off after 4PM might not be shipped until the following day.
</li>
<li class="padding text-align-center" id="pickupWeekendWarning" style="display: none;">
<i class="fad fa-calendar-exclamation fa-2x text-color-blue"></i><br>
Most packages won't leave Helena until Monday.
</li>
<li>
<div class="item-content item-link hapticbtn popup-open" data-popup="#dasHowItWorksPopup">
<div class="item-inner">

@ -34,6 +34,14 @@
You need an account with a linked credit card to use this service. <span class="taptext">Tap</span><span class="clicktext">Click</span> the button to update your account.
<a class="button hapticbtn button-fill margin" href="/account"><i class="fas fa-user-circle"></i> My Account</a>
</li>
<li class="padding text-align-center" id="pickupLateInDayWarning" style="display: none;">
<i class="fad fa-clock fa-2x text-color-purple"></i><br>
Pickups requested after 4PM might not be completed until the next day. If your package hasn't been picked up after 6PM, put it back out before 10AM the next morning for pickup.
</li>
<li class="padding text-align-center" id="pickupWeekendWarning" style="display: none;">
<i class="fad fa-calendar-exclamation fa-2x text-color-blue"></i><br>
While we do offer pickups seven days a week, most packages we pick up over the weekend won't leave Helena until Monday.
</li>
<li class="item-content item-input item-input-outline">
<div class="item-inner">
<div class="item-title item-floating-label">Pickup Address</div>

@ -188,6 +188,17 @@ var routes = [
}, function (error) {
$("#addPaymentMethodNag").css("display", "");
});
var dayofweek = formatTimestamp("l");
switch (dayofweek) {
case "Saturday":
case "Sunday":
$("#pickupWeekendWarning").css("display", "");
break;
}
var hourofday = formatTimestamp("H");
if (hourofday > 12 + 4) {
$("#pickupLateInDayWarning").css("display", "");
}
},
pageAfterOut: function () {
dropboxMap = null;
@ -214,6 +225,17 @@ var routes = [
}, function (error) {
$("#addPaymentMethodNag").css("display", "");
});
var dayofweek = formatTimestamp("l");
switch (dayofweek) {
case "Saturday":
case "Sunday":
$("#pickupWeekendWarning").css("display", "");
break;
}
var hourofday = formatTimestamp("H");
if (hourofday > 12 + 4) {
$("#pickupLateInDayWarning").css("display", "");
}
}
}
},

Loading…
Cancel
Save