mirror of
https://github.com/moodle/moodle.git
synced 2025-02-21 01:48:45 +01:00
19 lines
445 B
Plaintext
19 lines
445 B
Plaintext
|
|
//HOTPOTNET-RELATED CODE
|
|
|
|
var HPNStartTime = (new Date()).getTime();
|
|
var SubmissionTimeout = 30000;
|
|
var Detail = ''; //Global that is used to submit tracking data
|
|
|
|
function Finish(){
|
|
//If there's a form, fill it out and submit it
|
|
if (document.store != null){
|
|
Frm = document.store;
|
|
Frm.starttime.value = HPNStartTime;
|
|
Frm.endtime.value = (new Date()).getTime();
|
|
Frm.mark.value = Score;
|
|
Frm.detail.value = Detail;
|
|
Frm.submit();
|
|
}
|
|
}
|