Skip to content

Commit

Permalink
Change hexpansion gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Jun 15, 2024
1 parent 11fe760 commit b97ae85
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 69 deletions.
Binary file added docs/images/hexpansions/nullsector.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions docs/index.js
Original file line number Diff line number Diff line change
@@ -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";
});
}
});
}
Loading

0 comments on commit b97ae85

Please sign in to comment.