Compressed Nifty Corners

Recently I was experimenting with different techniques and libraries that implement rounded corners with no images. Nifty Corners Cube by Alessandro Fulciniti was among them.

I liked the fact that the library detected background color and padding of the target element. This allows the technique to degrade gracefully if JavaScript is disabled.

I usually compress the libraries I use with JavaScript packer written by Dean Edwards and Rob Seiler. However niftycube.js had to be corrected before since there is a semicolon missing on line 24.

niftycube.js:
String.prototype.find=function(what){
return(this.indexOf(what)>=0 ? true : false);
}; // Missing semicolon

Download Nifty Corners Cube (compressed), 4.66 KB.

You May Also Like

Comments

  1. Thanks! This saved me a lot of work. I tried to compress it before as well and it was broken due to the ; that I never found.

Leave a Reply

(optional)

This site uses Akismet to reduce spam. Learn how your comment data is processed.