prune_captcha 1.17.0__tar.gz → 1.18.0__tar.gz
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.
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/PKG-INFO +2 -1
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/README.md +1 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha/static/prune_captcha/js/captcha.js +17 -3
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha.egg-info/PKG-INFO +2 -1
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/pyproject.toml +1 -1
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/MANIFEST.in +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha/__init__.py +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha/apps.py +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha/static/prune_captcha/css/captcha.css +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha/templates/prune_captcha/captcha.html +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha/utils.py +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha.egg-info/SOURCES.txt +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha.egg-info/dependency_links.txt +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha.egg-info/requires.txt +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha.egg-info/top_level.txt +0 -0
- {prune_captcha-1.17.0 → prune_captcha-1.18.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: prune_captcha
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.18.0
|
4
4
|
Summary: A tool to protect formulaire from spam.
|
5
5
|
Author-email: Arnout <bastien@prune.sh>
|
6
6
|
Project-URL: Made_by, https://prune.sh/
|
@@ -116,6 +116,7 @@ Important: You must import the static files (css, js) present in "prune_captcha/
|
|
116
116
|
|
117
117
|
| Version | Date | Notes |
|
118
118
|
| ------- | ---------- | ---------------------------------- |
|
119
|
+
| 1.18.0 | 2025-05-22 | create "addHiddenInputs" func |
|
119
120
|
| 1.17.0 | 2025-05-21 | fix pos_answer |
|
120
121
|
| 1.16.1 | 2025-05-21 | fix static |
|
121
122
|
| 1.16.0 | 2025-05-21 | fix static |
|
@@ -98,6 +98,7 @@ Important: You must import the static files (css, js) present in "prune_captcha/
|
|
98
98
|
|
99
99
|
| Version | Date | Notes |
|
100
100
|
| ------- | ---------- | ---------------------------------- |
|
101
|
+
| 1.18.0 | 2025-05-22 | create "addHiddenInputs" func |
|
101
102
|
| 1.17.0 | 2025-05-21 | fix pos_answer |
|
102
103
|
| 1.16.1 | 2025-05-21 | fix static |
|
103
104
|
| 1.16.0 | 2025-05-21 | fix static |
|
{prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha/static/prune_captcha/js/captcha.js
RENAMED
@@ -1,11 +1,25 @@
|
|
1
1
|
const puzzlePiece = document.querySelector(".puzzle-piece");
|
2
2
|
const puzzleContainer = document.querySelector(".puzzle-container");
|
3
|
+
|
4
|
+
const addHiddenInputs = () => {
|
5
|
+
const form = document.querySelector("form");
|
6
|
+
|
7
|
+
["pos_x_answer", "pos_y_answer"].forEach((name) => {
|
8
|
+
const input = document.createElement("input");
|
9
|
+
input.type = "text";
|
10
|
+
input.name = name;
|
11
|
+
input.placeholder = name
|
12
|
+
.replace(/_/g, " ")
|
13
|
+
.replace(/\b\w/g, (c) => c.toUpperCase());
|
14
|
+
input.style.display = "none";
|
15
|
+
form.appendChild(input);
|
16
|
+
});
|
17
|
+
};
|
18
|
+
addHiddenInputs();
|
19
|
+
|
3
20
|
const inputPosX = document.querySelector('input[name="pos_x_answer"]');
|
4
21
|
const inputPosY = document.querySelector('input[name="pos_y_answer"]');
|
5
22
|
|
6
|
-
inputPosX.parentElement.style.display = "none";
|
7
|
-
inputPosY.parentElement.style.display = "none";
|
8
|
-
|
9
23
|
let isDragging = false;
|
10
24
|
let offsetX = 0;
|
11
25
|
let offsetY = 0;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: prune_captcha
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.18.0
|
4
4
|
Summary: A tool to protect formulaire from spam.
|
5
5
|
Author-email: Arnout <bastien@prune.sh>
|
6
6
|
Project-URL: Made_by, https://prune.sh/
|
@@ -116,6 +116,7 @@ Important: You must import the static files (css, js) present in "prune_captcha/
|
|
116
116
|
|
117
117
|
| Version | Date | Notes |
|
118
118
|
| ------- | ---------- | ---------------------------------- |
|
119
|
+
| 1.18.0 | 2025-05-22 | create "addHiddenInputs" func |
|
119
120
|
| 1.17.0 | 2025-05-21 | fix pos_answer |
|
120
121
|
| 1.16.1 | 2025-05-21 | fix static |
|
121
122
|
| 1.16.0 | 2025-05-21 | fix static |
|
@@ -26,7 +26,7 @@ classifiers = [
|
|
26
26
|
keywords = ["captcha", "django", "code-quality"]
|
27
27
|
urls = {Made_by = "https://prune.sh/"}
|
28
28
|
name = "prune_captcha"
|
29
|
-
version = "1.
|
29
|
+
version = "1.18.0"
|
30
30
|
description = "A tool to protect formulaire from spam."
|
31
31
|
readme = "README.md"
|
32
32
|
dependencies = [
|
File without changes
|
File without changes
|
File without changes
|
{prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha/static/prune_captcha/css/captcha.css
RENAMED
File without changes
|
{prune_captcha-1.17.0 → prune_captcha-1.18.0}/prune_captcha/templates/prune_captcha/captcha.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|