A Simple Clock

Re: A Simple Clock

by Allan Morris -
Number of replies: 0

Hi. I've just downloaded and installed your block for Moodle 1.9. Worked first time but I wasn't too keen on the way it used text input fields to display the changing clock values. (1) the input box pushed out the rhs column (2) my users would probably try and input something :-o  I've just changed to use div's in the html layout and innerHTML in the js update code and looks better (in my eyes at least) as is just text after the colon now. To do this place a <div id="xx">with the same id as current within the <td> (make sure you close with </div> and change the .value= with .innerHTML= in the update line(s). Thanks for the block. Allan.