Add per-category details
This commit is contained in:
parent
ac2728b393
commit
6220dd76d5
2 changed files with 2 additions and 0 deletions
|
|
@ -25,4 +25,5 @@ let layers = [];
|
|||
export default {
|
||||
name: "Light Pollution",
|
||||
layers: layers,
|
||||
details: "For legend and more information, see <a href='https://www.cleardarksky.com/'>cleardarksky.com</a>.",
|
||||
};
|
||||
|
|
|
|||
1
main.js
1
main.js
|
|
@ -28,6 +28,7 @@ for (let category of layerCategories) {
|
|||
catDiv.innerHTML = `
|
||||
<details ${category.layers.filter(l => l.enabled).length > 0 ? "open" : ""}>
|
||||
<summary>${category.name}</summary>
|
||||
${category.details ? "<p>" + category.details + "</p>" : ""}
|
||||
<ul></ul>
|
||||
</details>
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue