]> git.mjollnir.org Git - moodle.git/commitdiff
moved output from inside this file, to lesson.php and view.php. Also now uses lang...
authormichaelpenne <michaelpenne>
Mon, 1 Nov 2004 20:39:30 +0000 (20:39 +0000)
committermichaelpenne <michaelpenne>
Mon, 1 Nov 2004 20:39:30 +0000 (20:39 +0000)
mod/lesson/timer.js

index 9746deeb9120736768adbab9e6d79dfe735ae7cf..35cd8705a593001897f8977f3014d24bbdc4a615 100644 (file)
@@ -35,8 +35,8 @@
 
        var dn = ""; var old = "";
 
-       if (document.all||document.getElementById) { document.write('<span id="LiveClockIE" style="width:'+mywidth+'px; background-color:'+myback_color+'"></span>'); }
-       else if (document.layers) { document.write('<ilayer bgColor="'+myback_color+'" id="ClockPosNS"><layer width="'+mywidth+'" id="LiveClockNS"></layer></ilayer>'); }
+       if (document.all||document.getElementById) { document.write('<span id="LiveClockIE" style="width:'+mywidth+'px;"></span>'); }
+       else if (document.layers) { document.write('<ilayer id="ClockPosNS"><layer width="'+mywidth+'" id="LiveClockNS"></layer></ilayer>'); }
        else { old = "true"; show_clock(); }
        
        /*function leave() {  // feable attempt to run a script when someone leaves a timed test early, failed so far
@@ -73,7 +73,6 @@
                        
                        myclock = '';
                        myclock += '<font style="color:'+myfont_color+'; font-family:'+myfont_face+'; font-size:'+myfont_size+'pt;">';
-                       myclock += "Time remaining: ";
                        if (hours > 0) {
                                myclock += hours+":";
                        }