Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +2 -0
templates/index.html
CHANGED
@@ -256,6 +256,8 @@
|
|
256 |
console.log("Got token from reCAPTCHA");
|
257 |
// Set the token in the hidden input
|
258 |
document.getElementById('g-recaptcha-response').value = token;
|
|
|
|
|
259 |
// Disable button and change text
|
260 |
var button = document.getElementById('generate-button');
|
261 |
button.disabled = true;
|
|
|
256 |
console.log("Got token from reCAPTCHA");
|
257 |
// Set the token in the hidden input
|
258 |
document.getElementById('g-recaptcha-response').value = token;
|
259 |
+
// Log the value to verify it was set
|
260 |
+
console.log("Token set in input:", document.getElementById('g-recaptcha-response').value.substring(0, 10) + "...");
|
261 |
// Disable button and change text
|
262 |
var button = document.getElementById('generate-button');
|
263 |
button.disabled = true;
|