Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://cpstest.org/reaction-time-test
- function loop() {
- var score = document.getElementById("averageReflexScore"); // define element score
- if (score.textContent.length == 0 && clpadBody.style.background == "rgb(4, 185, 98)"){ // check if score.textContent length is 0. And check for green background.
- reactionClick(); // call click function (this is built in from the website itself)
- }
- }
- setInterval(loop, 0); // set loop on function called "loop" with timeout = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement