Rev 6099 | Go to most recent revision | 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 |
2 | !! TODO_cleaning |
||
3 | !! |
||
1116 | bpr | 4 | |
20 | reyssat | 5 | !set wims_html_onload=examclock(); |
6099 | bpr | 6 | <script type="text/javascript"> |
20 | reyssat | 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 |