diff --git a/docs/images/hexpansions/nullsector.jpg b/docs/images/hexpansions/nullsector.jpg new file mode 100644 index 0000000..fdb6141 Binary files /dev/null and b/docs/images/hexpansions/nullsector.jpg differ diff --git a/docs/index.js b/docs/index.js new file mode 100644 index 0000000..845fb95 --- /dev/null +++ b/docs/index.js @@ -0,0 +1,20 @@ +showmoreBtn = document.getElementById("showmore"); +if (showmoreBtn) { + collapsibleItems = document.getElementsByClassName("img-container collapsible collapsed"); + showmoreBtn.textContent = "SHOW " + collapsibleItems.length + " MORE"; + showmoreBtn.addEventListener('click', function () { + if (showmoreBtn.textContent.endsWith("MORE")) { + collapsibleItems = document.getElementsByClassName("img-container collapsible collapsed"); + Array.prototype.forEach.call(collapsibleItems, item => { + item.classList.remove("collapsed"); + showmoreBtn.textContent = "SHOW LESS"; + }); + } else { + collapsibleItems = document.getElementsByClassName("img-container collapsible"); + Array.prototype.forEach.call(collapsibleItems, item => { + item.classList.add("collapsed"); + showmoreBtn.textContent = "SHOW " + collapsibleItems.length + " MORE"; + }); + } + }); +} diff --git a/docs/index.md b/docs/index.md index b727777..0c8e8f7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -49,7 +49,7 @@ Hexpansions are accessories that plug into the badge's expansion connectors. Alm 1. If you want to add your hexpansions to this gallery, you can [add them to the registry](https://github.com/hughrawlinson/hexpansion-registry) or [add them to this issue](https://github.com/emfcamp/badge-2024-documentation/issues/149) or let us know on the IRC/Matrix! We'd love to feature all of your creations! -
Link: GitHub
Link: GitHub
Link: Printables
Link: Printables
Link: GCHQ
Link: Thingiverse
Link: Thingiverse
Link: Printables
Link: Printables
Link: Printables
Link: Printables
Link: Printables
Link: Printables
Link: GitHub
Link: GitHub
Link: GitHub
Link: Printables
Link: GitHub
Link: Printables
Link: GitHub
Link: GitHub
Petals on a badge
Sofware link may be available later...
Link: Twitter
DESCRIPTION REDACTED BY POLYBIUS BIOTECH SECURITY
+