show: function()

in src/browser/SplashScreenProxy.js [64:89]


    show: function () {
        if (!localSplash) {
            window.addEventListener('resize', onResize, false);
            localSplash = document.createElement('div');
            localSplash.style.backgroundColor = bgColor;
            localSplash.style.position = 'absolute';
            localSplash.style['z-index'] = '99999';

            localSplashImage = document.createElement('img');
            localSplashImage.src = imageSrc;
            localSplashImage.style.position = 'absolute';

            updateImageLocation();

            localSplash.appendChild(localSplashImage);
            document.body.appendChild(localSplash);

            // deviceready fires earlier than the plugin init on cold-start
            if (SplashScreen.shouldHideImmediately) {
                SplashScreen.shouldHideImmediately = false;
                window.setTimeout(function () {
                    SplashScreen.hide();
                }, 1000);
            }
        }
    },