Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onblur = function (){
- if(showStarted){
- clearTimeout(timeOutVar);
- showStarted = false;
- }
- };
- window.onfoucs = function (){
- if(!showStarted){
- startShow();
- }
- };
- function startShow(){
- showStarted = true;
- changeSlide();
- timeoutVar = setTimeout(startShow, pauseTime);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement