includes/clientside/static/loader.js
changeset 582 a38876c0793c
parent 581 5e8fd89c02ea
child 588 20484deb89cd
equal deleted inserted replaced
581:5e8fd89c02ea 582:a38876c0793c
     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 }