includes/clientside/static/loader.js
changeset 420 301f546688d1
parent 189 fd0e9c7a7b28
child 520 4c16e87cfeae
equal deleted inserted replaced
419:b8b4e38825db 420:301f546688d1
     1 // Some final stuff - loader routines, etc.
     1 // Some final stuff - loader routines, etc.
     2 
     2 
     3 function mdgInnerLoader(e)
     3 function mdgInnerLoader(e)
     4 {
     4 {
     5   jws.startup();
       
     6   if(window.location.hash == '#comments') ajaxComments();
     5   if(window.location.hash == '#comments') ajaxComments();
     7   window.onkeydown=isKeyPressed;
     6   window.onkeydown=isKeyPressed;
     8   window.onkeyup=function(e) { isKeyPressed(e); };
     7   window.onkeyup=function(e) { isKeyPressed(e); };
     9   Fat.fade_all();
     8   Fat.fade_all();
    10   fadeInfoBoxes();
     9   fadeInfoBoxes();
    16     dbx_set_key();
    15     dbx_set_key();
    17   }
    16   }
    18   initSliders();
    17   initSliders();
    19   runOnloadHooks(e);
    18   runOnloadHooks(e);
    20 }
    19 }
    21 if(window.onload) var ld = window.onload;
    20 var ld;
    22 else var ld = function() {return;};
    21 if(window.onload) ld = window.onload;
       
    22 else ld = function() {return;};
    23 function enano_init(e) {
    23 function enano_init(e) {
    24   ld(e);
    24   if ( typeof(ld) == 'function' )
       
    25   {
       
    26     ld(e);
       
    27   }
    25   mdgInnerLoader(e);
    28   mdgInnerLoader(e);
    26 }
    29 }
    27 
    30 
    28 if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH )
    31 if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH )
    29 {
    32 {