equal
deleted
inserted
replaced
4 |
4 |
5 function mdgInnerLoader(e) |
5 function mdgInnerLoader(e) |
6 { |
6 { |
7 window.onkeydown = isKeyPressed; |
7 window.onkeydown = isKeyPressed; |
8 window.onkeyup = function(e) { isKeyPressed(e); }; |
8 window.onkeyup = function(e) { isKeyPressed(e); }; |
9 Fat.fade_all(); |
9 |
10 fadeInfoBoxes(); |
10 if ( typeof(dbx_set_key) == 'function') |
11 jBoxInit(); |
|
12 if(typeof (dbx_set_key) == 'function') |
|
13 { |
11 { |
14 dbx_set_key(); |
12 dbx_set_key(); |
15 } |
13 } |
16 initSliders(); |
14 |
17 runOnloadHooks(e); |
15 runOnloadHooks(e); |
18 } |
|
19 |
|
20 // if some dumb plugin set an onload function, preserve it |
|
21 var ld; |
|
22 if ( window.onload) |
|
23 { |
|
24 ld = window.onload; |
|
25 } |
|
26 else |
|
27 { |
|
28 ld = function() {return;}; |
|
29 } |
16 } |
30 |
17 |
31 // Enano's main init function. |
18 // Enano's main init function. |
32 function enano_init(e) |
19 function enano_init(e) |
33 { |
20 { |
34 if ( typeof(ld) == 'function' ) |
|
35 { |
|
36 ld(e); |
|
37 } |
|
38 mdgInnerLoader(e); |
21 mdgInnerLoader(e); |
39 |
22 |
40 // we're loaded; set flags to true |
23 // we're loaded; set flags to true |
41 onload_complete = true; |
24 onload_complete = true; |
42 } |
25 } |