Skip to content

Commit

Permalink
Add cookies to the web app
Browse files Browse the repository at this point in the history
Extensively implemented cookies into the web app.
- Every time `setValue` or `doSpecialButtonAction` is called, the `gridState` cookie is updated with the current grid values, classes, direction, cell coordinates and crossword UUID (this is done with the new `saveGridState` method).
- A similar method, `saveToggleState` has also been implemented.

Removed some hard-coded strings:
- Grid operation related strings (moved into the `gridOp` object)
- Operation magnitude related strings (moved into the `opMagnitude` object)

Added a minor ergonomic feature - pressing [Shift+Backspace] with `auto-word` on when a word is already cleared will shift your word selection backwards.
  • Loading branch information
tomasvana10 committed May 21, 2024
1 parent d7e7ea8 commit f9dd258
Show file tree
Hide file tree
Showing 3 changed files with 259 additions and 70 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Check out the wiki [here](https://github.com/tomasvana10/crossword_puzzle/wiki)
- [NYTimes Mini Crossword](https://www.nytimes.com/crosswords/game/mini) - Heavily inspired the design of the web application
- [CSS Pattern](https://css-pattern.com) - Background CSS patterns
- [Pure CSS Toggle Switch](https://codepen.io/morgoe/pen/VvzWQg) - Toggle switch CSS patterns
- [W3Schools](https://www.w3schools.com/js/js_cookies.asp) - Cookie getting/setting code
- Crossword completion sound effect (CC attribution):
- Jazzy Chords by NenadSimic -- https://freesound.org/s/150879/ -- License: Creative Commons 0

Expand Down
Loading

0 comments on commit f9dd258

Please sign in to comment.