Subversion Repositories wimsdev

Rev

Rev 1116 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !set wims_html_onload=examclock();
  2. <script Language="JavaScript">
  3. !if $wims_exam_remain=$empty
  4.  function examclock() {
  5.  }
  6. !else
  7.  var examtick=$wims_exam_remain;
  8.  function examclock() {
  9.  var timeStr;
  10.  examtick=(examtick>1)? examtick-1:0;
  11.  minutes=Math.floor(examtick/60); seconds=examtick%60;
  12.  timeStr= ((minutes < 10) ? "0" : "") + minutes;
  13.  timeStr+= ((seconds < 10) ? ":0" : ":") + seconds;
  14.  window.status="$wims_name_examremain" + " " + timeStr;
  15.  Timer= setTimeout("examclock()",1000);
  16. }
  17. !endif
  18. </script>
  19.  
  20.