Swapped the project from using commonJS to using the more modern ESM module syntax. (i.e., no more "require" shenanigans, also works in browsers now so functionality can be written in node and shipped to the browser)
Added ESLint + config for both static analysis + some formatting consistency. (If you're on VSCode you can set it to automatically format the file according to ESLint rules on save.)
Switched the anchor tags to href and set the parents to hx-boost which should allow for forward/backward navigation while also providing a fallback to no-JS browsers.
Added local storage caching for the pop-up that shows up every time you navigate to the home page. It's been set to show the pop-up once when someone visits the site, and then it won't show up again unless they clear their cache.
The last one is debatable, I'm not sure if you want the pop-up to be the main thing that alerts people to upcoming tournaments, maybe we can just make a more eye-catching section on the main page for news like that?
A few changes in the commit:
The last one is debatable, I'm not sure if you want the pop-up to be the main thing that alerts people to upcoming tournaments, maybe we can just make a more eye-catching section on the main page for news like that?