If you're looking for a timer, check out this helpful tool. You might also want to consider adding a progress bar, although I can't guarantee it will work perfectly.
Another resource worth exploring is this tutorial, which can be easily customized to suit your needs.
While I'm no expert, setting up a progress bar isn't too complex. Check out this updated demo for guidance on using default variables like // def values
:
var iCms = 1000;
var iMms = 60 * iCms;
var iHms = 3600 * iCms;
var iDms = 24 * 3600 * iCms;
In the section for scheduling the progress bar, make sure to use these options:
// def options
var aDefOpts = {
start: new Date(), // now
finish: new Date().setTime(new Date().getTime() + 5 * iMms), // now + 5 days
For example, "+5 * iMms" would represent five minutes from the current time. Remember,
iDms => Days / iHms=> hours / iCms=> seconds
.
Don't forget to review the CSS included in the demo, especially if you want to use a custom font. Upload the font to your server and then add it to your stylesheet like this:
@font-face{
font-family: myFont;
src: url('myFont.ttf');
}
@font-face{
font-family: myFontEI;
src: url('myFont.eot');
}
Then attach it as a font family like so...
font-family: myFont, myFontEI;