jQuery Roundup
Welcome to the jQuery roundup 31. You can send your plugins and articles in for review through our contact form or @dailyjs. This article was written before a live studio audience.
Spinners
This jQuery spinner plugin by Nick Stakenburg can display loading animations using Canvas without using any gifs. It’ll work with IE through ExplorerCanvas.
A spinner can be set up with new Spinner('selector'). It’ll insert a div that contains a Canvas element. I tried styling the div so it displays inline, and it worked, so you could use the spinner in a variety of instances.
Snippet
I’ve been going through jQuery syntax highlighting projects, and one that I liked was Snippet by SteamDev. It uses an existing project’s highlighting definition files, shjs.
All you need to do is put your code in a suitable tag and tell the library what highlighter to use:
$('pre.js').snippet('javascript');
There are various colour schemes available (39 at present).
jQuewy
jQuewy by Jamie McElwain is a library for loading jQuery plugins:
$j('lettering');
$j('backbone');
There’s a list of plugins here: forrst.com/posts/JQuewy-5NZ.
The source is available on GitHub / jQuery.