Skip to content

Commit c99bf2d

Browse files
committed
Experiment
1 parent e3941dc commit c99bf2d

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed
File renamed without changes.

index.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,21 @@ <h2>Loading...</h2>
100100

101101
const list = document.createElement("ul");
102102
data.forEach((el) => {
103-
const listItem = document.createElement("li");
104-
const anchor = document.createElement("a");
103+
// only show folders that start with a (year) number or contain release
104+
if (/^\d/.test(el.name) || el.name.startsWith("release_")) {
105+
const listItem = document.createElement("li");
106+
const anchor = document.createElement("a");
105107

106-
if (el.type === "file") {
107-
anchor.setAttribute("href", el.download_url);
108-
} else if (el.type === "dir") {
109-
anchor.setAttribute("href", "?path=" + encodeURIComponent(el.path));
110-
}
108+
if (el.type === "file") {
109+
anchor.setAttribute("href", el.download_url);
110+
} else if (el.type === "dir") {
111+
anchor.setAttribute("href", "?path=" + encodeURIComponent(el.path));
112+
}
111113

112-
anchor.textContent = el.name;
113-
listItem.replaceChildren(anchor);
114-
list.appendChild(listItem);
114+
anchor.textContent = el.name;
115+
listItem.replaceChildren(anchor);
116+
list.appendChild(listItem);
117+
}
115118
});
116119
const heading = document.createElement("h2");
117120
const pathEl = document.createElement("code");

meetup100/moved_to_here

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../2024-meetup-melbourne/

0 commit comments

Comments
 (0)