tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test-batching.html (632B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3  <head>
      4    <meta charset="utf-8">
      5    <title>Webconsole batch console calls test page</title>
      6  </head>
      7  <body>
      8    <p>batch console calls test page</p>
      9    <script>
     10    /* exported batchLog, batchLogAndClear */
     11    "use strict";
     12 
     13    function batchLog(numMessages = 0) {
     14      for (let i = 0; i < numMessages; i++) {
     15        console.log(i);
     16      }
     17    }
     18 
     19    function batchLogAndClear(numMessages = 0) {
     20      for (let i = 0; i < numMessages; i++) {
     21        console.log(i);
     22        if (i === numMessages - 1) {
     23          console.clear();
     24        }
     25      }
     26    }
     27    </script>
     28  </body>
     29 </html>