HorusKol

javascript

Making Web Components reactive

April 12, 2022

What I learnt when trying to make Web Components reactive and getting them to work natively in the browser and within modern JavaScript frameworks.

Date mathematics at the end of the month

April 7, 2022

Some hiccups when doing date mathematics, and a thought about how to fix this.

Making Web Components stylable

March 9, 2022

What I learnt when trying to make Web Components more stylable.

Making Web Components accessible

February 8, 2022

What I learnt when trying to make an accessible Web Component.

Money - and how to handle it

August 2, 2021

The obvious choice for handling money in an application is not the correct one.

Convert SVG images in the browser using JavaScript and the Canvas API

August 31, 2020

It is possible to convert an SVG image into PNG, JPEG, or even WebP, in the browser.

Drag and drop elements on touch devices

August 15, 2020

Want to allow users to move elements around a page no matter what device they're using? Here's a quick guide to implementing drag and drop for mouse and touch users.

Live code highlighting in the browser with vanilla JavaScript

March 5, 2020

A cross-platform, vanilla JavaScript text editor that can provide code highlighting (or any other kind of highlighting).

Vuex states and snapshots

January 21, 2019

Creating snapshots in vuex to act as restoration points.