-
-
Save geckotang/de2ecd1436e36a80af2f to your computer and use it in GitHub Desktop.
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 $box = $('#box'), $panels, $panel, f, i; | |
function exec() { | |
for (i=0; i<$panels.length; i++){ | |
$panel = $($panels[i]); | |
if ($panel.data('type') === 'a') { | |
$panel.click(); | |
return true; | |
} | |
} | |
} | |
(function execloop(){ | |
$panels = $box.find('span'); | |
exec(); | |
window.requestAnimationFrame(execloop); | |
}()); |
コンソールで何回も実行しておくと、lv28027に。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
孤獨求色lv10657