I am making a minigame for my girlfriend’s birthday. It is a very simple game and the challenge I imposed into myself was not only to use exclusively html, css and javascript with no dependencies, but also I can’t use canvas for the animations, meaning all the game works with html elements.
No AI is allowed since this is an exercise, is not something I just want generated.
Today I added a simple copy to clipboard button for the curl line in the endpoints.
Basically had to recall a bit of Stimulus, importmap, and also how the arrow function works in javascript and why they’re useful. Last one I had completely forgot.
Today I started with the pagination, which basically requires load all the entries, sorted them, reverse them and sliced them in chunks of 10 entries.
While doing that I found out that… well actually I was reminded that javascript doesn’t behave well with numbers. Even with javascript it didn’t want to work.
Also added a snippet to VS Code to add these entries quicker.