You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi - I just tried this and it looks neat.

    One thing I can see is you call drawTimeout = setTimeout(function() { once at startup, which will ask it to redraw when the minute changes.

    But after that you don't call it again. I think you really need to copy:

      drawTimeout = setTimeout(function() {
        drawTimeout = undefined;
        draw();
      }, 60000 - (Date.now() % 60000));
    

    and paste it into the end of the draw() function and you'll probably be ok then?

About

Avatar for Gordon @Gordon started