Created
November 18, 2014 18:43
-
-
Save paulobarcelos/5d9d8c2859f85fc5749a to your computer and use it in GitHub Desktop.
eu sou sou hacker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sync = function(){console.log('sync')} | |
var leftPage = false | |
var t = 0; | |
var c = function(){ | |
if((Date.now()-t) > 500){ | |
leftPage=true | |
} | |
else if(leftPage){ | |
leftPage=false; sync() | |
}; | |
t = Date.now(); | |
setTimeout(c, 100) | |
} | |
c(); |
puro ráki
rackudo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ai é hacker hein?