db-gn 1.1.0 → 1.1.2
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 +3 -2
- package/datauri.txt +3 -0
- package/index.html +1 -1
- package/package.json +1 -1
- package/v2.html +4 -3
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ The project currently contains access to over **2608 games**.
|
|
|
26
26
|
|
|
27
27
|
## Demo
|
|
28
28
|
|
|
29
|
-
# https://ltorl.github.io/dancing-bunny
|
|
29
|
+
# https://ltorl.github.io/dancing-bunny
|
|
30
30
|
|
|
31
31
|
---
|
|
32
32
|
|
|
@@ -57,7 +57,8 @@ https://raw.githubusercontent.com/ltorl/dancing-bunny/refs/heads/main/index.html
|
|
|
57
57
|
1. Open the raw HTML file
|
|
58
58
|
2. Copy the source
|
|
59
59
|
3. Paste into:
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
* CodeTester
|
|
61
62
|
* W3Schools Tryit
|
|
62
63
|
* Code.org Web Lab
|
|
63
64
|
* OneCompiler
|
package/datauri.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
data://text/html;base64,PGJ1dHRvbiBvbmNsaWNrPSIoKCk9Pntkb2N1bWVudC5ib2R5LmlubmVySFRNTD0nPGlmcmFtZSBzcmM9JnF1b3Q7aHR0cHM6Ly9jZG4uanNkZWxpdnIubmV0L25wbS9kYi1nbkBsYXRlc3QvaW5kZXguc3ZnJnF1b3Q7IHN0eWxlPSZxdW90O3dpZHRoOjEwMCU7aGVpZ2h0OjEwMCU7Ym9yZGVyOjAmcXVvdDs+PC9pZnJhbWU+J30pKCkiPkNsaWNrPC9idXR0b24+
|
|
2
|
+
|
|
3
|
+
this is a link btw ^^
|
package/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<button onclick="(()=>{document.body.innerHTML='<iframe src="https://cdn.jsdelivr.net/npm/db-gn@latest/index.svg" style="width:100%;height:100%;border:0"></iframe>'})()">Click
|
|
1
|
+
<button onclick="(()=>{document.body.innerHTML='<iframe src="https://cdn.jsdelivr.net/npm/db-gn@latest/index.svg" style="width:100%;height:100%;border:0"></iframe>'})()">Click</button>
|
package/package.json
CHANGED
package/v2.html
CHANGED
|
@@ -1669,7 +1669,6 @@
|
|
|
1669
1669
|
closeAutoclickMenu();
|
|
1670
1670
|
});
|
|
1671
1671
|
window.addEventListener("resize", closeAutoclickMenu);
|
|
1672
|
-
window.addEventListener("blur", closeAutoclickMenu);
|
|
1673
1672
|
|
|
1674
1673
|
return menu;
|
|
1675
1674
|
}
|
|
@@ -1796,8 +1795,10 @@
|
|
|
1796
1795
|
text.className = "ac-all-label";
|
|
1797
1796
|
text.textContent = label;
|
|
1798
1797
|
|
|
1799
|
-
|
|
1800
|
-
|
|
1798
|
+
// On as soon as anything in the group is on, so one click always
|
|
1799
|
+
// turns the whole group off rather than first switching it all on.
|
|
1800
|
+
const anyOn = clickers.some(c => c.enabled);
|
|
1801
|
+
const sw = makeAutoclickSwitch(anyOn, `Turn all ${label.toLowerCase()} ${anyOn ? "off" : "on"}`, (on) => {
|
|
1801
1802
|
clickers.forEach(c => setClickerEnabled(c, on));
|
|
1802
1803
|
renderAutoclickMenu();
|
|
1803
1804
|
}, clickers.length === 0);
|