includes/clientside/static/loader.js
changeset 189 fd0e9c7a7b28
parent 57 b354deeaa4c4
child 420 301f546688d1
equal deleted inserted replaced
188:b4aaca42c8a4 189:fd0e9c7a7b28
     1 // Some final stuff - loader routines, etc.
     1 // Some final stuff - loader routines, etc.
     2 
       
     3 var __tmpEnanoStartup9843275;
       
     4   
       
     5 function enanoStartup(e) {
       
     6   if ( !e )
       
     7   {
       
     8     // Delay initting sliders until images are loaded
       
     9     if ( typeof(window.onload) == 'function' )
       
    10       __tmpEnanoStartup9843275 = window.onload;
       
    11     else
       
    12       __tmpEnanoStartup9843275 = function(){};
       
    13     window.onload = function(e){__tmpEnanoStartup9843275(e);initSliders();};
       
    14   }
       
    15   else
       
    16   {
       
    17     initSliders();
       
    18   }
       
    19 }
       
    20 
     2 
    21 function mdgInnerLoader(e)
     3 function mdgInnerLoader(e)
    22 {
     4 {
    23   jws.startup();
     5   jws.startup();
    24   enanoStartup(e);
       
    25   if(window.location.hash == '#comments') ajaxComments();
     6   if(window.location.hash == '#comments') ajaxComments();
    26   window.onkeydown=isKeyPressed;
     7   window.onkeydown=isKeyPressed;
    27   window.onkeyup=function(e) { isKeyPressed(e); };
     8   window.onkeyup=function(e) { isKeyPressed(e); };
    28   Fat.fade_all();
     9   Fat.fade_all();
    29   fadeInfoBoxes();
    10   fadeInfoBoxes();
    32   jBoxInit();
    13   jBoxInit();
    33   if(typeof (dbx_set_key) == 'function')
    14   if(typeof (dbx_set_key) == 'function')
    34   {
    15   {
    35     dbx_set_key();
    16     dbx_set_key();
    36   }
    17   }
       
    18   initSliders();
    37   runOnloadHooks(e);
    19   runOnloadHooks(e);
    38 }
    20 }
    39 if(window.onload) var ld = window.onload;
    21 if(window.onload) var ld = window.onload;
    40 else var ld = function() {return;};
    22 else var ld = function() {return;};
    41 function enano_init(e) {
    23 function enano_init(e) {