diff options
author | pzread <netfirewall@gmail.com> | 2013-03-01 22:30:00 +0800 |
---|---|---|
committer | pzread <netfirewall@gmail.com> | 2013-03-01 22:30:00 +0800 |
commit | 56688ed6d0b18f68ac8ddd82c4944c5d2777d20a (patch) | |
tree | bb943e164f82b4a826f1d9ce253bfabf912c0004 /web/data.js | |
parent | 69d7b55a1c9d3100d42b9c91ab995de44b13d73b (diff) | |
download | taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.gz taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.bz2 taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.lz taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.xz taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.zst taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.zip |
Taiwan Online Judge Alpha 1
Diffstat (limited to 'web/data.js')
-rw-r--r-- | web/data.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/web/data.js b/web/data.js deleted file mode 100644 index 874ce80..0000000 --- a/web/data.js +++ /dev/null @@ -1,39 +0,0 @@ -var data_callback; -var data_paramo; -var data_ajaxupdate; - -function data_init(){ - data_callback = $.Callbacks(); - - data_paramo = new Object(); - data_paramo.laststamp = '_'; - - data_ajaxupdate = null; -} -function data_update(force){ - if(data_ajaxupdate != null){ - data_ajaxupdate.abort(); - } - if(force){ - data_paramo.laststamp = '_'; - } - - data_ajaxupdate = $.post('data_update.php', - {'param':JSON.stringify(data_paramo)}, - function(res){ - var reto; - - if(res == 'Esame'){ - data_update(); - }else if(res[0] != 'E'){ - reto = JSON.parse(res); - data_paramo.laststamp = reto.laststamp; - - data_callback.fire(reto); - - data_ajaxupdate = null; - data_update(false); - } - } - ); -} |