Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 29th, 2020 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let timeout = 200;
  2. let init = 1;
  3. let intervalId;
  4.  
  5. function getBlock(number) {
  6.     let grid = document.getElementById("grid");
  7.     let str = String(number)
  8.    
  9.     return Array.from(grid.children).find(e => e.textContent === str)
  10. }
  11.  
  12. function iterateNext() {
  13.     let block = getBlock(init);
  14.     block.dispatchEvent(new Event("tap"))
  15.     init++
  16.    
  17.     if (init > 50) {
  18.         clearInterval(intervalId)
  19.     }
  20. }
  21.  
  22. function run() {
  23.     intervalId = setInterval(iterateNext, timeout);
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top