Make categories collapsible

This commit is contained in:
Chandler Swift 2023-07-25 20:35:57 -05:00
parent 7957523c3c
commit 77ff710b0d
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F
2 changed files with 14 additions and 2 deletions

View file

@ -26,8 +26,10 @@ const map = new Map({
for (let category of layerCategories) {
const catDiv = document.createElement("div");
catDiv.innerHTML = `
<h3>${category.name}</h3>
<details open>
<summary>${category.name}</summary>
<ul></ul>
</details>
`;
for (let layer of category.layers) {
const li = document.createElement("li");