Category Archives: JavaScript

07/20/2011
Comments

Looping jQuery animations indefinitely

A friend asked how to loop a jQuery animation after he had attempted to queue the animations using an unending while loop. That doesn’t work as JavaScript is not threaded and it’d only end up blocking forever, creating an ever … Continue reading


05/09/2009
Comments

PhysicsGravy: apply physics to any page

PhysicsGravy is a JavaScript library to apply physics to any element on a page with the Box2D engine. I was playing with the JavaScript port of Box2D, and this is what came out. I know it’s nothing new, but you … Continue reading


03/29/2009
Comments

RiceKaraoke JavaScript karaoke player

I decided to make a more modern karaoke player in JavaScript (from my attempt in 2005). It’s more modular and self-contained, so it can be integrated into any page (such as for… an easter egg! ;)…). I separated the karaoke … Continue reading


11/18/2008
Comments

Dynamically generating a .wav in JavaScript

I’ve put together a sine waveform generator that generates .wav files on the fly in pure JavaScript and plays the .wav file using whatever plugin your browser has installed. It works under Firefox, Opera, Safari, and Google Chrome, but I … Continue reading


11/18/2008
Comments

pack() in JavaScript

Here’s a very basic pack() in JavaScript that allows you to easily write binary data. It uses the same format characters as in PHP’s pack() function, but it doesn’t support all of them and it surely doesn’t support repeater arguments.