From b3cdcff0679cdbd5802ab5cba3fd7cbfdeb8838e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 1 Nov 2023 13:02:35 +0100 Subject: [PATCH] span --- static/js/cours.js | 2 +- templates/cours.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/cours.js b/static/js/cours.js index 2e2a93c..c8ea5f3 100644 --- a/static/js/cours.js +++ b/static/js/cours.js @@ -31,7 +31,7 @@ const buildFileTree = (parent, data) => { window.addEventListener("load", () => { const fileTreeElement = document.getElementsByTagName("aside")[0]; - const dataElement = fileTreeElement.getElementsByTagName("div")[0]; + const dataElement = fileTreeElement.getElementsByTagName("span")[0]; buildFileTree( fileTreeElement, diff --git a/templates/cours.html b/templates/cours.html index a46eca7..100c793 100644 --- a/templates/cours.html +++ b/templates/cours.html @@ -8,7 +8,7 @@
{{>navbar.html}}
{{#data}} {{^content}}