Created
April 20, 2020 01:40
-
-
Save faller222/4ec44f3b34ce6e4953e03457c768895b to your computer and use it in GitHub Desktop.
Codigo JS para ejecutar el test de memoria
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
setInterval(function(){ | |
if($(".count").length==0){ | |
var grid = $(".grid.x4").get(0); | |
var boxes = grid.getElementsByClassName("fa"); | |
var classes=[]; | |
for(var i=0;i<boxes.length ;i++){ | |
var className = boxes[i].classList[1]; | |
if(classes.lastIndexOf(className)==-1){ | |
classes.push(className) | |
} | |
} | |
for(var i=0;i<8;i++){ | |
$("."+classes[i]).trigger("tap") | |
} | |
}},80) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment