RiverRider commited on
Commit
d4e5465
·
verified ·
1 Parent(s): 88c6095

record how far a load got, so a memory kill reports its own ceiling

Browse files
Files changed (1) hide show
  1. probe.html +12 -0
probe.html CHANGED
@@ -129,4 +129,16 @@ document.getElementById("reset").onclick = () => {
129
  verdict.innerHTML = "";
130
  say("cleared");
131
  };
 
 
 
 
 
 
 
 
 
 
 
 
132
  </script>
 
129
  verdict.innerHTML = "";
130
  say("cleared");
131
  };
132
+
133
+ // Auto-start: the button was easy to miss, and the whole point is that opening
134
+ // the page is the entire interaction.
135
+ if (localStorage.getItem(K.running) !== "1") {
136
+ let n = 3;
137
+ const tick = setInterval(() => {
138
+ document.getElementById("inc").textContent =
139
+ n > 0 ? `Starting in ${n}… (tap to stop)` : "Running";
140
+ if (n-- <= 0) { clearInterval(tick); document.getElementById("inc").click(); }
141
+ }, 1000);
142
+ document.getElementById("inc").addEventListener("click", () => clearInterval(tick), { once: true });
143
+ }
144
  </script>