buch of stuff; simple-captcha; mdtable; some more stuff
This commit is contained in:
29
bots/index.html
Normal file
29
bots/index.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Captcha</title>
|
||||
<script type="module" src="simple-captcha.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="myForm">
|
||||
<!-- Call the custom element, it will handle all the graphics stuff -->
|
||||
<simple-captcha id="captcha"></simple-captcha>
|
||||
</form>
|
||||
|
||||
<script type="module">
|
||||
// handle stuff here
|
||||
// something like a blog submit thing, that would be cool imo!
|
||||
const captcha = document.getElementById("captcha");
|
||||
|
||||
captcha.addEventListener("valid", () => {
|
||||
alert("correct!");
|
||||
});
|
||||
|
||||
captcha.addEventListener("invalid", () => {
|
||||
alert("wrong!");
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user