Skip to content

Commit 9e4a87a

Browse files
KvarkasCopilot
andauthored
Update contribute.md
Fix from AI Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent cc9901d commit 9e4a87a

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

contribute.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,19 @@ If you find mRemoteNG useful and would like to contribute, it would be greatly a
185185
<script>
186186
function filterRecords(year) {
187187
const listItems = document.querySelectorAll("#records-list li");
188-
listItems.forEach(item => {
189-
if (item.getAttribute("data-year") === year) {
190-
item.style.display = "block"; // Show matching items
191-
} else {
192-
item.style.display = "none"; // Hide non-matching items
193-
}
194-
});
188+
if (year === "all") {
189+
listItems.forEach(item => {
190+
item.style.display = "block"; // Show all items
191+
});
192+
} else {
193+
listItems.forEach(item => {
194+
if (item.getAttribute("data-year") === year) {
195+
item.style.display = "block"; // Show matching items
196+
} else {
197+
item.style.display = "none"; // Hide non-matching items
198+
}
199+
});
200+
}
195201
}
196202
// Default view: Show all records
197203
window.onload = () => filterRecords("2025"); // Or set to "all" to show everything initially

0 commit comments

Comments
 (0)