author

Javascript code posted by rfo
created at 10 Apr 00:35, updated at 10 Apr 23:05

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
myscript = function(){
    var config = {
        navigationID:'nav',
        visibleClass:'show'
    };
    var nav = document.getElementById(config.navigationID);
    function init(){
        show();
        if(nav.className === config.visibleClass){
            reset();
        };
// do stuff
    };
    function show(){
        var c = nav.className;
// do stuff
    };
    function reset(){
// do stuff
    };
}();
440 Bytes in 2 ms with coderay