kirkmcdonald.github.io
kirkmcdonald.github.io copied to clipboard
Suggestion: Use HTML5 localStorage to save default settings
It would be helpful to load default settings when navigating to the main page (with no hash).
You could easily use HTML5 localStorage for this (with JSON.stringify and JSON.parse).
I think there are three parts to this:
- Add a button to the settings tab which will save the current settings to local storage.
- Add a button to the settings tab which will load the saved settings.
- Load those settings if the URL fragment is empty.
I've forked your code and made it work on a locally hosted site - the only annoying thing is GitHub thinks I've changed everything because of the way Atom Beautifier works. Do you have a code formatter that you use (that I can use to compare changes in my code)?
I do not use a code formatter. I do it all by hand, for better or worse.
Related PR: https://github.com/KirkMcDonald/kirkmcdonald.github.io/pull/65