document.addEventListener("DOMContentLoaded", function () {
function colorDayView() {
let slots = document.querySelectorAll('.bookly-day-view td');
slots.forEach((slot, index) => {
if (index < slots.length / 2) {
slot.style.setProperty("background", "#f8f8f8", "important"); // AM
} else {
slot.style.setProperty("background", "#e6f0ff", "important"); // PM
}
});
}
setTimeout(colorDayView, 1000);
setInterval(colorDayView, 2000);
});