Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent f9156f2 commit 5d152b1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/source/_static/js/landing_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ function initializeAllCards() {
});
}


document.addEventListener("DOMContentLoaded", () => {
fetch(PROJECTS_FILE)
.then((response) => {
Expand All @@ -197,15 +196,15 @@ document.addEventListener("DOMContentLoaded", () => {
// Display families
const familyCounts = collectFamilies(data);
displayFamilies(familyCounts);

// Display tags
const tagCounts = collectTags(data);
displayTags(tagCounts);

// Render all cards
initializeAllCards();
})
.catch((error) => {
console.error("Error fetching the projects data:", error);
});
})
});

0 comments on commit 5d152b1

Please sign in to comment.