Automatically store/retrieve the current replay in the page URL #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "timotree/deck-website:import-json"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR makes it so that the page URL is always of the form
https://hanabi.maximilian-kessler.de/#replay-json/<compressedJson>wherecompressedJsonis a string in the format expected byhttps://hanab.live/replay-json/<compressedJson>. If such a URL is entered, the page automatically loads the replay from the URL. In addition to allowing users to save, restore, and share their solitaire game inputs, this gives a version of undo and redo for free via the browser back and forward buttons.c0a4fad6dbto377ecf46e7