Comments (5)
You can do something like this
Lines 22 to 27 in 0e426e4
So to disable/enable the button you would define the button like this:
<button id="submit" disabled>Submit</button>
and in the EventListener above you would just add the line
document.getElementById('submit').disabled = false;
to enable the button
from doomcaptcha.
hi @smartm0use ,
in the demo page you can click the submit button, but it doesnt send the form until you complete the captcha, I thought it would be a good idea to highlight the captcha to red to help the user understand that he must complete the captcha first.
the solution by @Wuelle is a good one, but you shoud upload the doom captcha in your server.
i'm not sure if this helps you, but thanks for your comment
from doomcaptcha.
Thank you for your replies.
Instead, what about integrating it in Wordpress (Contact Form 7)? Any way to have it?
from doomcaptcha.
@smartm0use i think Its only copy & paste the Doom captcha JavaScript line (the blue line) before the [submit] tag of WP Contact Form and save it....
from doomcaptcha.
Yes, pasting the script before [submit] tag does the trick. Anyway I also tried to add some custom javascript to enable/disable button or to prevent form to be submitted, but custom logic seems not to work within Contact Form 7...
from doomcaptcha.
Related Issues (10)
- Using local ressources leads to red border on captcha frame HOT 2
- Missing CONTRIBUING
- Include DOOM Captcha into a Flarum Extension?
- Pinky is too weak
- Link to GitHub repo from demo and link to demo from repo? HOT 2
- Game tries to load with negative "enemies" parameter HOT 2
- Headshots not counted HOT 4
- Missing LICENSE HOT 4
- the background is not actually from doom HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doomcaptcha.