Skip to content

Instantly share code, notes, and snippets.

@faller222
Created April 20, 2020 01:40
Show Gist options
  • Save faller222/4ec44f3b34ce6e4953e03457c768895b to your computer and use it in GitHub Desktop.
Save faller222/4ec44f3b34ce6e4953e03457c768895b to your computer and use it in GitHub Desktop.
Codigo JS para ejecutar el test de memoria
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