~ubuntu-branches/ubuntu/dapper/moodle/dapper-backports

« back to all changes in this revision

Viewing changes to mod/hotpot/template/v6/hp6hotpotnet.js_

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2006-12-01 14:00:21 UTC
  • mfrom: (6.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061201140021-rivugg5tgx6mujzg
Tags: 1.6.3-1ubuntu1~dapper1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
//HOTPOTNET-RELATED CODE
 
3
 
 
4
var HPNStartTime = (new Date()).getTime();
 
5
var SubmissionTimeout = 30000;
 
6
var Detail = ''; //Global that is used to submit tracking data
 
7
 
 
8
function Finish(){
 
9
//If there's a form, fill it out and submit it
 
10
        if (document.store != null){
 
11
                Frm = document.store;
 
12
                Frm.starttime.value = HPNStartTime;
 
13
                Frm.endtime.value = (new Date()).getTime();
 
14
                Frm.mark.value = Score;
 
15
                Frm.detail.value = Detail;
 
16
                Frm.submit();
 
17
        }
 
18
}