Zentus JS
As part of writing
, I have written a lot of JavaScript. Along the way I developed some stand-alone supporting functions, and some best practices. For both my convenience and anyone else trawling the internet, I put them here.
No, I don't use any other libraries, but this is because I am a silly minimalist doing this for fun. If you actually want to get something done with JavaScript, I suggest looking at
prototype.
Libraries
These are designed to be very simple. Each file contains a single function that shares the name of the file.
diffview - Graphically display a unified diff.
-
prettydate.js - Convert a JS Date object into a relative date (e.g. “1 week ago”).
testfont.js - Determine if the client browser supports a given font.
Best Practices
Attaching multiple
events, in order.