richo / juici

Prioritised CI server
MIT License
6 stars 5 forks source link

Add live timers #70

Closed bradfeehan closed 11 years ago

bradfeehan commented 11 years ago

Updates the build timers using JavaScript without reloading the page.

This is a pretty kludgey addition, it assumes that the time taken to transfer the page is zero, has no idea whether the build has ended yet, among other things. But it works okay.

Next would be adding something to poll the status of the build, and stop the timer, style it as pass/fail, etc.

bradfeehan commented 11 years ago

Also, this only works on browsers that support requestAnimationFrame.. I might add a polyfill (couple lines) which falls back to a timer.

richo commented 11 years ago

Should I just merginate this?