Skip to content
Browse files

moved output from inside this file, to lesson.php and view.php. Also …

…now uses lang file.
  • Loading branch information...
1 parent f50e2ab commit eb73cd47e04b435c5958ef1910bf1477d31c4137 michaelpenne committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 mod/lesson/timer.js
View
5 mod/lesson/timer.js
@@ -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+":";
}

0 comments on commit eb73cd4

Please sign in to comment.
Something went wrong with that request. Please try again.