This is part 3 of the Artsy (and slightly insane) series. If you haven't read the first part, here it is: First part of Artsy, now in beta
For now, I have refactored the first part of the demo, breaking out the demo framework parts of the code to its own file, and modernized everything a bit. I have moved from
let everywhere, and I'm using arrow functions wherever possible. I have updated bits of code that are now obsolete. For example, I create custom events by calling
new CustomEvent() instead of calling
event.initEvent(), which are obsolete since the release of DOM Level 4 in 2015.
You can try this solution at atornblad.github.io/artsy. The latest version of the code is always available in the GitHub repository.
Articles in this series: