This commit is contained in:
Daniel Regeci
2024-02-12 15:24:32 +01:00
parent 14b235e762
commit f8e15857ce
6 changed files with 538 additions and 505 deletions

View File

@@ -86,6 +86,9 @@ document.querySelector('#altcha').addEventListener('statechange', (ev) => {
});
```
> [!IMPORTANT]
> Ensure that you attach event listeners after the ALTCHA script loads, such as within window.addEventListener('load', ...), to ensure the events trigger correctly.
## Contributing
See [Contributing Guide](https://github.com/altcha-org/altcha/blob/main/CONTRIBUTING.md) and please follow our [Code of Conduct](https://github.com/altcha-org/altcha/blob/main/CODE_OF_CONDUCT.md).

2
dist/altcha.iife.js vendored

File diff suppressed because one or more lines are too long

1031
dist/altcha.js vendored

File diff suppressed because it is too large Load Diff

2
dist/altcha.umd.cjs vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "altcha",
"version": "0.1.5",
"version": "0.1.6",
"license": "MIT",
"author": {
"name": "Daniel Regeci"

View File

@@ -15,6 +15,7 @@
export let challengejson: string | undefined = undefined;
export let debug: boolean = false;
export let hidefooter: boolean = false;
export let hidelogo: boolean = false;
export let name: string = 'altcha';
export let maxnumber: number | undefined = undefined;
export let mockerror: boolean = false;
@@ -282,6 +283,7 @@
{/if}
</div>
{#if hidelogo !== true}
<div>
<a href={website} target="_blank" class="altcha-logo">
<svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -291,6 +293,7 @@
</svg>
</a>
</div>
{/if}
</div>
{#if error}