fartscroll.js, comical nerdiness!

“Everyone farts. And now your web pages can too.”

By this saying goes fartscroll.js, a tiny and utterly useless, yet fun javascript that will allow your website to, err, fart. Exactly what I would expect from someone who works at The Onion, I guess.

All you have to do is include a reference to the script (already hosted at The Onion’s servers) in your website…

<script src="http://code.onion.com/fartscroll.js"></script>

and then initialize it by calling the function:

fartscroll();

And that’s it! The source code is really neat, too; a good example on how to dynamically play sounds on a website with the (not so) new html 5 audio tag.

I still don’t know what to make of this, but I sure as hell had a good laugh, and I hope you did too :) So, see you in the next post!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s