werksitecore / SplashScreen

Create Splash Screen for Website/Mobiles, splash screen will display until the website completed loading all the images
http://smenonk.github.io/SplashScreen
4 stars 3 forks source link

Add global variable IntervalPageCompleted #2

Closed Jerome2606 closed 9 years ago

Jerome2606 commented 9 years ago

In order to manually clear the splashscreen after a click for example, I add a global variable in order to use clearTimeout to delete the event. Use like: var element = document.getElementById('splashscreen'); clearTimeout(element.IntervalPageCompleted);