Monday, May 16, 2022
I recently developed a simple tab strip using only HTML, CSS, and vanilla JavaScript. The script does not require any…
Monday, May 16, 2022
In the latest iteration of my YouTube Playlist Player plugin, I decided to remove all jQuery dependencies. I replaced the…
Monday, May 16, 2022
The basic idea to make this comparison would be to get arrays of parts from the version numbers and then compare pairs…
Monday, May 16, 2022
This is a reliable way of checking for DOM ready. The first version uses a procedural function, while the second…
Monday, June 13, 2022
DragonflyJS is a tiny vanilla JavaScript library that enables sorting (dragging and dropping) functionality with zero dependencies.
Monday, May 16, 2022
If you use jQuery for a handful of effects/animations, here’s a quick JavaScript replacement for jQuery slideToggle(). With small changes,…
Monday, May 16, 2022
The script below will check for a localStorage variable, which is the explicit user consent. If the variable exists, the…
Monday, June 13, 2022
RoarJS is a wonderful, responsive, customisable, accessible (WAI-ARIA), zero-dependency, vanilla JavaScript alert/confirm replacement. RoarJS automatically centers itself on the page…
Monday, May 16, 2022
In an effort to remove all jQuery dependency from one of my plugins, I decided to turn all jQuery.ajax() requests…
Monday, May 16, 2022
This is a function to remove all double whitespaces and preceding line breaks. This is a function to replace all line…
Tuesday, May 17, 2022
This post is an assortment of JavaScript snippets, experiments and code samples created for various projects. They are pretty small…
Monday, May 16, 2022
Creating an i18n system in JavaScript can be tricky. The most popular option is to use global variables, but it…