Debian Codegraph @

fixtures/page-wait-stable.html

raw
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="progress"></div>
5
6 <script>
7 window.onload = function () {
8 var pg = document.getElementById('progress')
9 var count = 0
10 function tick() {
11 count += 1
12 pg.textContent = count + '%'
13
14 if (count < 100) setTimeout(tick, 10)
15 }
16 tick()
17 }
18 </script>
19 </body>
20 </html>