home *** CD-ROM | disk | FTP | other *** search
- function m2s(tiempo)
- {
- var mins = Math.floor(tiempo / 60000);
- var secs = Math.floor(tiempo % 60000 / 1000);
- if(mins < 10)
- {
- mins = "0" + String(mins);
- }
- if(secs < 10)
- {
- secs = "0" + String(secs);
- }
- return "00:" + String(mins) + ":" + String(secs);
- }
- score = Math.floor(18750 - 0.021 * ttotal);
- ttotal2 = m2s(ttotal);
-