Created
August 24, 2011 14:48
-
-
Save josephdunn/1168232 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
djbutton = $($('a').get(0)); | |
var djit = function() { | |
if (djbutton.css('display') != 'none') { | |
e = new jQuery.Event('click'); | |
e.pageX=1; | |
e.pageY=1; | |
turntable.lastMotionTime=new Date().getTime(); | |
djbutton.hover().trigger(e); | |
console.log(new Date() + ' -- triggered DJ'); | |
} else { | |
setTimeout(djit, 500); | |
} | |
}; | |
djit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment