Subversion Repositories wimsdev

Rev

Rev 17412 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! deprecated no more use in administrative module since 20221125
  2. !! TODO_clean
  3. !!
  4.  
  5. !set wims_html_onload=examclock();
  6. <script type="text/javascript">
  7. !if $wims_exam_remain=$empty
  8.  function examclock() {
  9.  }
  10. !else
  11.  var examtick=$wims_exam_remain;
  12.  function examclock() {
  13.  var timeStr;
  14.  examtick=(examtick>1)? examtick-1:0;
  15.  minutes=Math.floor(examtick/60); seconds=examtick%60;
  16.  timeStr= ((minutes < 10) ? "0" : "") + minutes;
  17.  timeStr+= ((seconds < 10) ? ":0" : ":") + seconds;
  18.  window.status="$wims_name_examremain" + " " + timeStr;
  19.  Timer= setTimeout("examclock()",1000);
  20. }
  21. !endif
  22. </script>
  23.  
  24.