colinwalker
colinwalker

On the subject of dark modes...

I just need to find the best way to handle it for the current session.

|
Embed
philbowell
philbowell

@colinwalker pretty sure that @pat has something implemented on his site for a dark mode.

|
Embed
colinwalker
colinwalker

@philbowell @pat Yeah, I’ve seen that (with the little sun and moon) looks cool - I’m thinking using a session variable.

|
Embed
philbowell
philbowell

@colinwalker @pat his does it automatically as well based on time of day.

|
Embed
pat
pat

@colinwalker Have a look at my site’s GitHub repo. I’m setting the theme based on the time, then using sessionStorage to store which theme the user wants displayed.

|
Embed
stefp
stefp

@colinwalker Dark modes really don’t agree with my eyes. I get afterimages after a short while.

|
Embed
In reply to
colinwalker
colinwalker

@pat Thanks. I was having a look at your source ;) Looks like it might be simpler than using a PHP session variable + jquery.

|
Embed