I added a small experiment to this site: click a clap listener button, allow the microphone, clap your hands, and the site toggles dark mode. The interesting part is not the dark mode itself. The interesting part is how a static Jekyll site can run a small machine learning model in the browser without a backend server...
When working with JavaScript, it's important to understand that objects are reference types. This means that when you assign an object to a new variable, you're not creating a new copy of the object—instead, both variables reference the same object in memory. This can lead to some unexpected behavior if you're not careful...