I'm putting this here for if you ever feel like investing development into it.
new Date().getDay() always has Saturday represented as 6. I imagine it works like so:
1, 2, 3, 4, 5, 6, 7
and instead of counting to 8, 9, 10, 11, 12, 13, 14, they programmed it so it repeats after 7.
1, 2, 3, 4, 5, 6, 7
1, 2, 3, 4, 5, 6, 7
and that's how it can always use 6 to determine when it's Saturday.
chatgptonline.ai
I asked chatGPT to write a portion of code in HTML/Javascript/SQL which checks if it's Saturday. If it is, trigger an event, then reverse the event when it's not. These examples might help you figure out a way to implement this feature on the website.
When Saturday is the day, users have access to the tool which allows them to change their text-color.
When Saturday is not the day, non-vip users do not have access to the tool (and set text-color to black).
____________________________________________________________________________________________________________________
Javascript without booleon:
<!DOCTYPE html>
<html>
<head>
<title>Saturday Event</title>
<script>
function checkSaturday() {
var today = new Date();
if (today.getDay() == 6) {
document.getElementById("event").innerHTML = "It's Saturday!"; //trigger event.
} else {
document.getElementById("event").innerHTML = "It's not Saturday."; //reverse event.
}
}
</script>
</head>
<body onload="checkSaturday()">
<div id="event"></div>
</body>
</html>
____________________________________________________________________________________________________________________
Javascript with booleon:
<!DOCTYPE html>
<html>
<head>
<script>
function setBoolean() {
var myBoolean = true;
if (new Date().getDay() === 6) {
localStorage.setItem('myBoolean', !myBoolean);
} else {
localStorage.setItem('myBoolean', myBoolean);
}
}
</script>
</head>
<body onload="setBoolean()"> //call the function on page load.
</body>
</html>

____________________________________________________________________________________________________________________
SQL:
CREATE TABLE saturday_check (
id INT PRIMARY KEY,
is_saturday BOOLEAN DEFAULT FALSE
);
INSERT INTO saturday_check (id) VALUES (1);
CREATE PROCEDURE check_saturday()
BEGIN
DECLARE current_day INT;
SET current_day = DAYOFWEEK(NOW()); -- Returns 1 for Sunday, 2 for Monday, etc.
IF current_day = 7 THEN -- 7 represents Saturday
UPDATE saturday_check SET is_saturday = TRUE WHERE id = 1;
ELSE
UPDATE saturday_check SET is_saturday = FALSE WHERE id = 1;
END IF;
END;
CALL check_saturday(); -- Call the procedure once to initialize the value of is_saturday
CREATE EVENT check_saturday_event
ON SCHEDULE EVERY 1 WEEK
DO CALL check_saturday(); -- Call the procedure every week to update is_saturday
