Replies

Mar 26, 2018 8 years ago
Organ Donor
Jethros_Dark_Angel
User Avatar
Fallon Farrell

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

Mar 29, 2018 8 years ago
Bug
User Avatar
Segfault

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

Mar 29, 2018 8 years ago
Organ Donor
Jethros_Dark_Angel
User Avatar
Fallon Farrell

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

Mar 29, 2018 8 years ago
Bug
User Avatar
Segfault

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

Mar 29, 2018 8 years ago
Organ Donor
Jethros_Dark_Angel
User Avatar
Fallon Farrell

I hope you don't mind, I sent you a PM explaining to the best of my ability =)

Please log in to reply to this topic.