This would best be done in the format results function used. For example, in the one for the LCD display:
Code:
//2) Display countdown with a stylish LCD look, and display an alert on target date/time
function formatresults2(){
if (this.timesup==false){ //if target date/time not yet met
function pad(n){
return n - 0 < 10? '<span class="darker">0<\/span>' + n : n;
}
var displaystring="<span class='lcdstyle'>"+arguments[0]+" <sup>days</sup> "+pad(arguments[1])+" <sup>hours</sup> "+pad(arguments[2])+" <sup>minutes</sup> "+pad(arguments[3])+" <sup>seconds</sup></span> left until launch time"
}
else{ //else if target date/time met
var displaystring="" //Don't display any text
alert("Launch time!") //Instead, perform a custom alert
}
return displaystring
}
Now (to make the added zero actually darker) you could put in your style section a rule something like so:
Code:
.darker {
color: #0b0;
}
Bookmarks