Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
17412 guerimand 1
!! deprecated no more use in administrative module since 20221125
17427 guerimand 2
!! TODO_clean
17412 guerimand 3
!!
4
!!
5
!!
6
!!
9305 obado 7
 
8
!if $wims_exam_remain!=$empty
9
  !set wims_html_onload=examclock();
10
  !set wims_html_header=!append line <script type="text/javascript">\
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
     var message = "$wims_name_examremain" + " " + timeStr + ".";\
19
     window.status=message;\
20
     document.getElementById('exam_clock').innerHTML = message;\
21
     Timer= setTimeout("examclock()",1000);\
22
   }\
23
   </script> to $wims_html_header
1114 bpr 24
!endif