Tag: javascript
Here are some posts with the tag: javascript.
August 28, 2024
Build a Custom Cookie Consent Banner
Learn how to build a custom cookie consent banner. In this post we'll build a banner using SvelteKit, but the ideas can be used in any framework.
August 06, 2024
Building a Before and After Image Slider
This post walks through building a before and after image slider that works on desktop and touch devices.
December 31, 2023
How to Trap Focus Inside a Modal to Make it Accessible for All Users
When a user has a modal open they should be confined to that modal until they decide to leave it, including when navigating the modal with a keyboard.
June 07, 2023
Getting New SHiFT Codes via SMS
Borderlands is one of my favorite game franchises. To make sure I never miss out on a SHiFT code, I created a solution that will send me a text any time a new code is released.
November 17, 2023
I Built a Game Called Flipping Bananas
I built a game called Flipping Bananas. It's a puzzle game with similarities to Minesweeper and Picross. Flip over cards to find bananas, but beware of Spike the Dog!
December 27, 2023
Fade in Elements as They Come Into View
Fading content in as it comes into view is a nice effect you can add to your website to enhance your users experience. Learn how to add this to your website.
December 23, 2023
Build a Custom Datepicker with Svelte
This post walks through building a basic datepicker using Svelte. This is a great starting point for building a more complex datepicker.
July 31, 2023
Run JavaScript Function Once a Condition is Met
A simple snippet that runs a function continuously until a condition is met. Once the condition is met it executes some code and the interval is cleared.