summaryrefslogtreecommitdiff
path: root/static/js/proof-of-work.js
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2026-02-16 12:26:20 -0500
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2026-02-16 12:26:20 -0500
commitc00ace03d64001c6fb49d7ba7e25d75386eb6ae9 (patch)
treec0a0773eefd1a53b0f8c85dc530812ade19c561f /static/js/proof-of-work.js
parentc7cdffa549be231fff7a8a38dbc7caaadd9663a3 (diff)
Fix comment form
Diffstat (limited to 'static/js/proof-of-work.js')
-rw-r--r--static/js/proof-of-work.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/static/js/proof-of-work.js b/static/js/proof-of-work.js
index b4b5c57..f2f0484 100644
--- a/static/js/proof-of-work.js
+++ b/static/js/proof-of-work.js
@@ -81,7 +81,7 @@ function raceEndpoint() {
}
window.addEventListener("load", () => {
- let trigger = document.getElementById("pow-trigger");
+ let trigger = document.getElementById("proof-of-work-trigger");
trigger.removeAttribute("hidden");
trigger.addEventListener("click", (e) => {
trigger.innerHTML = "Please wait...";
@@ -96,8 +96,11 @@ window.addEventListener("load", () => {
trigger.disabled = true;
// Hide the primary captcha, too, to make it clear that it isn't necessary to complete.
- let primaryChallenge = document.getElementById("captcha-challenge-primary");
+ let primaryChallenge = document.getElementById("captcha-image-wrapper");
primaryChallenge.hidden = true;
+ let solutionInput = document.getElementById("captcha-solution");
+ solutionInput.hidden = true;
+ solutionInput.removeAttribute("required");
})
.catch((err) => {
console.log(err);