Search results for: 'QBMGRIP-Max16-BK'
- For TCL K32 5G Tough Strong Hybrid (Magnet Mount Friendly) Case Cover - Black
For TCL K32 5G Tough Strong Hybrid (Magnet Mount Friendly) Case Cover - Black
NMKHY-K32-BK
<div class="header-shipping-info">
<div class="d-flex align-items-center">
<div class="mr-5 d-flex align-items-center">
<img src="https://cdn.klassparts.com/media/wysiwyg/images/static/ups-shipping.png" alt="UPS Shipping" />
<div class="len ml-3">
<div id="divdown1">
<strong style="color: #c52127;">
<span class="fw-bolder" id="upsh">00hh</span>
<span class="fw-bolder ml-2" id="upsm">00mm</span>
<span class="fw-bolder ml-2" id="upss">00ss</span>
</strong>
</div>
<p class="m-0 p-0" style="font-size: 12px;">Time Left For UPS Ground Cutoff</p>
</div>
</div>
<div class="d-flex align-items-center">
<img src="https://cdn.klassparts.com/media/wysiwyg/images/static/header-fedex.png" alt="FedEx Shipping" />
<div class="len ml-3">
<div id="divdown2">
<strong style="color: #c52127;">
<span class="fw-bolder" id="fedh">00hh</span>
<span class="fw-bolder ml-2" id="fedm">00mm</span>
<span class="fw-bolder ml-2" id="feds">00ss</span>
</strong>
</div>
<p class="m-0 p-0" style="font-size: 12px;">Time Left For FedEx 2nd Day Cutoff</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
(function() {
function getEasternTimeNow() {
// Create a Date object and convert to Eastern Time using UTC offset
const now = new Date();
const easternOffset = -5 * 60; // Eastern Standard Time (UTC-5) in minutes
const isDST = isDaylightSavingTime(now); // Check for Daylight Saving Time (UTC-4)
const offset = isDST ? -4 * 60 : -5 * 60;
return new Date(now.getTime() + offset * 60 * 1000);
}
function isDaylightSavingTime(date) {
// Simple DST check: DST in US typically starts second Sunday in March and ends first Sunday in November
const year = date.getFullYear();
const marchSecondSunday = new Date(year, 2, 14 - (new Date(year, 2, 1).getDay()));
const novemberFirstSunday = new Date(year, 10, 7 - (new Date(year, 10, 1).getDay()));
return date >= marchSecondSunday && date < novemberFirstSunday;
}
function getNextBusinessDay(cutoffHour) {
const now = getEasternTimeNow();
let endTime = new Date(now);
endTime.setHours(cutoffHour, 0, 0, 0);
const isWeekend = now.getDay() === 0 || now.getDay() === 6; // Sunday (0) or Saturday (6)
if (isWeekend) {
// Move to next Monday
endTime.setDate(now.getDate() + (now.getDay() === 0 ? 1 : 2));
} else if (now.getHours() >= cutoffHour) {
// Move to next business day
endTime.setDate(now.getDate() + (now.getDay() === 5 ? 3 : 1));
}
// Convert back to local time for calculation
const localEndTime = new Date(endTime.getTime() - (endTime.getTimezoneOffset() - getEasternTimeNow().getTimezoneOffset()) * 60 * 1000);
return localEndTime;
}
function updateCountdown() {
const now = new Date();
// UPS Countdown (4:00 PM ET)
const upsEndTime = getNextBusinessDay(16);
const upsTimeDiff = upsEndTime - now;
const upsElements = {
hours: document.getElementById('upsh'),
minutes: document.getElementById('upsm'),
seconds: document.getElementById('upss')
};
if (upsTimeDiff <= 0) {
upsElements.hours.innerHTML = '00hh';
upsElements.minutes.innerHTML = '00mm';
upsElements.seconds.innerHTML = 'Closed';
} else {
const hours = Math.floor(upsTimeDiff / (1000 * 60 * 60));
const minutes = Math.floor((upsTimeDiff % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((upsTimeDiff % (1000 * 60)) / 1000);
upsElements.hours.innerHTML = String(hours).padStart(2, '0') + 'hh';
upsElements.minutes.innerHTML = String(minutes).padStart(2, '0') + 'mm';
upsElements.seconds.innerHTML = String(seconds).padStart(2, '0') + 'ss';
}
// FedEx Countdown (7:00 PM ET)
const fedExEndTime = getNextBusinessDay(19);
const fedExTimeDiff = fedExEndTime - now;
const fedExElements = {
hours: document.getElementById('fedh'),
minutes: document.getElementById('fedm'),
seconds: document.getElementById('feds')
};
if (fedExTimeDiff <= 0) {
fedExElements.hours.innerHTML = '00hh';
fedExElements.minutes.innerHTML = '00mm';
fedExElements.seconds.innerHTML = 'Closed';
} else {
const hours = Math.floor(fedExTimeDiff / (1000 * 60 * 60));
const minutes = Math.floor((fedExTimeDiff % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((fedExTimeDiff % (1000 * 60)) / 1000);
fedExElements.hours.innerHTML = String(hours).padStart(2, '0') + 'hh';
fedExElements.minutes.innerHTML = String(minutes).padStart(2, '0') + 'mm';
fedExElements.seconds.innerHTML = String(seconds).padStart(2, '0') + 'ss';
}
}
// Start countdown immediately and update every second
updateCountdown();
setInterval(updateCountdown, 1000);
})();
</script>