aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/home.js
blob: dc13e34b72d5feeb6e74137dc9e9222e367df8c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var home = new function(){
    var that = this;

    that.ready = function(){
        var home_node = new vus.node('home');

        home_node.url_chg = function(direct,url_upart,url_dpart,param){
            if(direct == 'in'){
                index.set_menu('首頁');
                index.set_title('Taiwan Online Judge');
                index.clear_tabnav();
                com.loadpage('/toj/html/home.html');
            }
        };
        com.vus_root.child_set(home_node);
    };
}