"simplified" version using RegExp: https://gist.github.com/773911
should be easy to edit to the format you need.
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/jsmentors@jsmentors.com/
To search via a non-Google archive, visit here:
http:
function initVideoProgress() {
function formatTime(time, fragments) {
var output = '', fragment;
// Maximize the fragments in 3.
fragments = Math.max(1, Math.min(3, fragments || 3));
// For every fragment generate output.
while (fragments--) {
if (output) {
outpu
I've been pasting together some (jQuery) code that i've gotten from
diff web sources to add custom controls to an html5 video player.
I've got a status bar that visually displays the progress of the
video.
I'm pretty sure that I can use the same code to show a numerical timer
(ex. "1:23") that st