diff options
author | pzread <netfirewall@gmail.com> | 2013-06-26 01:49:13 +0800 |
---|---|---|
committer | pzread <netfirewall@gmail.com> | 2013-06-26 01:49:13 +0800 |
commit | 17c8c94e097018ccaf15f8a9296b03b5195cc3f7 (patch) | |
tree | f3c32a7a7a272f0ab0c2236928c4b78e36846d56 /src/js/index.js | |
parent | e0043639746fdbbf4958c67a3ef55c63c2fe51a5 (diff) | |
download | taiwan-online-judge-17c8c94e097018ccaf15f8a9296b03b5195cc3f7.tar.gz taiwan-online-judge-17c8c94e097018ccaf15f8a9296b03b5195cc3f7.tar.zst taiwan-online-judge-17c8c94e097018ccaf15f8a9296b03b5195cc3f7.zip |
Add square page. Add AsyncMCD. Add sqmod manage
Diffstat (limited to 'src/js/index.js')
-rw-r--r-- | src/js/index.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js index 3ea93fc..33e22b4 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -114,10 +114,18 @@ var index = new function(){ user.login_callback.add(function(){ var j_li; + + j_header.find('li.login').hide(); + j_header.find('li.register').hide(); + j_header.find('li.nickname').show(); + j_header.find('li.logout').show(); + - j_li = j_menu.find('div.menu li.profile') + j_li = j_menu.find('div.menu li.profile'); j_li.find('a').attr('href','/toj/user:' + user.uid + '/main/'); j_li.show(); + + j_menu.find('div.menu li.square').show(); j_menu.find('div.menu li.mail').show(); }); @@ -161,7 +169,7 @@ var index = new function(){ if(autofade != false){ setTimeout(function(){ j_alert.alert('close'); - },10000); + },5000); } j_alertbox.prepend(j_alert); |