mirror of
https://github.com/altcha-org/altcha.git
synced 2026-01-25 12:26:32 +00:00
46 lines
890 B
HTML
46 lines
890 B
HTML
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
font-family: sans-serif;
|
|
}
|
|
main {
|
|
padding: 1rem;
|
|
}
|
|
.buttons {
|
|
margin-top: 1rem;
|
|
}
|
|
</style>
|
|
|
|
<script async defer src="./dist/altcha.js" type="module"></script>
|
|
|
|
<script>
|
|
window.addEventListener('load', () => {
|
|
document.querySelector('#altcha').addEventListener('statechange', (ev) => {
|
|
console.log('State change:', ev.detail);
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<main>
|
|
|
|
<form action="/submit" method="post">
|
|
|
|
<altcha-widget
|
|
id="altcha"
|
|
challengeurl=""
|
|
debug
|
|
test
|
|
></altcha-widget>
|
|
|
|
<div class="buttons">
|
|
<button type="submit">Submit</button>
|
|
<button type="reset">Reset</button>
|
|
</div>
|
|
</form>
|
|
|
|
</main>
|
|
</body>
|
|
</html> |