Open ravenloue opened 1 year ago
I think I figured out how to do this on the drive in to work.
Use a global variable to track the toggle switch state. On toggle, the variable will swap and will trigger a change in the bootstrap class tags used on the html page.
However, I want to create variables in the function to generate the cards because I want it to also check the state to determine the color scheme with witch to populate the page.
Learned a better way. No need for global variable. Just add a class to the class lists that have the proper attributes. But using a check as part of the function will help the cards to generate properly.
Going to try to get this working by this weekend.
Current scheme is good, but dark. Having an alternative that could be swapped in the navbar would be a nice feature.