Recent Notes

Displaying keyword search results 1 - 3
Created by James on January 10, 2011 15:20:10    Last update: February 03, 2012 10:10:14
Dojo ShrinkSafe: : command line utility written in Java, based on Rhino - JavaScript engine written in Java. Douglas Crockford's JSMIN: : command line utility written in C, can download MS-DOS exe. Dean Edwards' Packer: : online tool, or .NET, Perl, PHP application. YUI Compressor: : command line utility written in Java. Google Closure Compiler : command line Java application, web application, or RESTful API. One problem is, the compressor utility may not be 100% reliable. So make sure to test the compressed script.
Created by James on July 04, 2009 16:30:40    Last update: January 11, 2011 21:21:59
If you are looking for a solution for a progress bar, I direct you to the following resources: Bare Naked App provides a simple and elegant solution based on pure CSS with two images. You control the percentage of completion through the background-position attribute of the CSS. HTML: <img src="/images/percentImage.png" alt="... CSS: img.percentImage { background: white url(/imag... Images: (percentImage.png) (percentImage_back.png) WebAppers extended the above solution with JavaScript. They also added several colored images: JQuery UI has a built-in progress bar widget. However, if you want to get to understand some of the foobar needed to get CSS to work (in general) through this example, stay with me for the rest of this note. Initially I was thinking, a progress bar should be easy: just make...
Created by James on July 19, 2009 23:29:42    Last update: July 19, 2009 23:33:24
Existing techniques use background images to make round corners. I present a technique here that uses four foreground images: . I think this technique is easier to understand and use. The only requirements are: Add position: relative to the CSS for the box to be rounded Matching border and color between the box to be rounded and the corner images Here's the HTML with static elements: <!doctype html public '-//W3C//DTD HTML 4.01//EN' ... The markup is even easier if we use jQuery to add the corners dynamically: <!doctype html public '-//W3C//DTD HTML 4.01//EN' ... This is the result: