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.

return(this.indexOf(what)>=0 ? true : false);
}; // Missing semicolon

Download Nifty Corners Cube (compressed), 4.66 KB.

You May Also Like


Leave a Reply

You may use simple HTML to add links or lists to your comment. Also use <pre><code class="language-*">...</code></pre> to mark up code snippets. We support language-js, language-markup and language-css for comments.

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