From 36524d8012aee725a50608b9188bdff76245f662 Mon Sep 17 00:00:00 2001 From: baiobelfer Date: Wed, 16 Oct 2024 14:53:18 +0200 Subject: [PATCH] update loadCriteria --- js/script.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index 78cfe5b..f928438 100644 --- a/js/script.js +++ b/js/script.js @@ -56,6 +56,13 @@ async function loadClasses() { } } +async function loadCriteria () { + const criteriaFilePath = '/data/criteria.json'; + const criteria = await fetchJSONFile(classFilePath); + + console.log ("break") +} + const classData = [] // Funkcja do przetwarzania danych o klasach i uczniach @@ -68,7 +75,7 @@ function processClassData(classInfo, studentsData) { // Uruchomienie wczytywania klas loadClasses(); - +loadCriteria(); // // //