altcha 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/altcha.js +705 -606
- package/dist/altcha.umd.cjs +1 -1
- package/dist_external/altcha.css +41 -1
- package/dist_external/altcha.js +669 -570
- package/dist_external/altcha.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,7 +76,11 @@ Additional options:
|
|
|
76
76
|
|
|
77
77
|
- __auto__ - Automatically verify without user interaction (possible values: `onfocus`, `onload`, `onsubmit`).
|
|
78
78
|
- __blockspam__ - Only used in conjunction with the `spamfilter` option. If enabled, it will block form submission and fail verification if the Spam Filter returns a negative classification. This effectively prevents submission of the form.
|
|
79
|
+
- __delay__ - The artificial delay in milliseconds to apply before the verification (defaults to 0).
|
|
79
80
|
- __expire__ - The challenge expiration (duration in milliseconds).
|
|
81
|
+
- __floating__ - Enable floating UI (possible values: `auto`, `top`, `bottom`).
|
|
82
|
+
- __floatinganchor__ - The CSS selector of the "anchor" to which the floating UI will be attached to (defaults to the `button[type="submit"]` in the related form).
|
|
83
|
+
- __floatingoffset__ - The Y offset from the anchor element for the floating UI expressed in pixels (defaults to `12`).
|
|
80
84
|
- __hidefooter__ - Hide the footer (ALTCHA link).
|
|
81
85
|
- __hidelogo__ - Hide the ALTCHA logo.
|
|
82
86
|
- __maxnumber__ - The max. number to iterate to (defaults to 1,000,000).
|
|
@@ -124,7 +128,11 @@ export interface Configure {
|
|
|
124
128
|
signature: string;
|
|
125
129
|
};
|
|
126
130
|
debug?: boolean;
|
|
131
|
+
delay?: number;
|
|
127
132
|
expire?: number;
|
|
133
|
+
floating?: 'auto' | 'top' | 'bottom';
|
|
134
|
+
floatinganchor?: string;
|
|
135
|
+
floatingoffset?: number;
|
|
128
136
|
hidefooter?: boolean;
|
|
129
137
|
hidelogo?: boolean;
|
|
130
138
|
maxnumber?: number;
|