I'm trying to set it up so that a certain page will redirect to different pages on different dates (mostly using trying to use javascript...) if anyone could possibly write this up I'd be forever in your debt
okay but like how much debt are we talking :P
🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights
Mostly soul debt lol Though I do get paid next week so if that's a requirement I'm sure I can scrape together something
What have you tried so far / what part are you having trouble with?
You can use Date object in JS which has some easy comparisons, and redirect by setting window.location.href to the URL you want to go to. Use a few if statements if you want to check for specific dates.
Just remember people live in different time zones and stuff. By default the javascript Date object will use the time on the local machine. So your website's visitors, if coming from around the globe, will get different results. Here is some further reading.
(If you just want someone to code it for you instead of bothering with it yourself, PM me cuz I'd need a lot more details lol)
🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights