Skip to content

Instantly share code, notes, and snippets.

<script src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAAAEX95M5gKl7Nn_i4Mzl1TAhT4b5KCiYFj3ZfOJov1Qpq4YsRyghTrgMf7VDdXUg9oULkwfWhrlOumiQ" type="text/javascript"></script>
<script type="text/javascript">
var map = null;
var geocoder = null;
function initialize() {
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(29.427394,-98.624654), 15);
@adhipg
adhipg / colorYourProgress.js
Created December 25, 2009 18:28
Colour Your Progress
function colorThem ( domElement ) {
var green = parseInt ( ( domElement.text() / 100 ) * 255 );
var red = 255 - green;
greenString = green.toString ( 16 );
redString = red.toString ( 16 );
if ( greenString.length == 1 ) greenString = '0' + greenString;
if ( redString.length == 1 ) redString = '0' + redString;