SPLASH

Here the Javascript code available to be inserted in your web page to implement a splash screen.

Please check the context of implementation for each of the functions.



Code:

/**
 * SQJS.initAppWithSplash
 * 
 * Init the web app to start with the Splash
 * 
 * Context:
 * - Call this function in the load event (ie. by a window.AddEventListener) of the webpage 
 * 
 * @param {string} mainContainerId, the container ID for the webpage content
 * @param {string} title, the title of the splash screen
 * @param {string} logoURI, the logo to display in the splash screen
 * @param {string} BG, the background for the splash screen
 * @param {int} timeout, the splash screen timeout
 * @returns {void}
 * 
 * This function is part of SqueeJS.
 */
function SQJS.initAppWithSplash(mainContainerId, title, logoURI, BG, timeout){};

/**
 * SQJS.initAppWithoutSplash
 * 
 * Init the web app to start withOUT the Splash
 * 
 * Context:
 * - Call this function in the load event (ie. by a window.AddEventListener) of the webpage 
 * 
 * @param {string} mainContainerId, the container ID for the webpage content
 * @returns {void}
 * 
 * This function is part of SqueeJS.
 */
function SQJS.initAppWithoutSplash(mainContainerId){};



Usage example:


    <script>
    window.addEventListener("load", function() {

      SQJS.initAppWithSplash("content", "SqueeJS", "/res/logo.png", "#FFFFFF", 2500);

    }, true);
    </script>