first commit

This commit is contained in:
mrtoine 2025-09-12 10:57:48 +02:00
commit b216a187bd
34 changed files with 4829 additions and 0 deletions

11
Static/js/readJson.js Normal file
View file

@ -0,0 +1,11 @@
const readJson = (filePath) => {
return fetch(filePath)
.then(response => {
if(!response.ok) {
throw new Error(`Erreur lors du chargement du fichier JSON : ${response.statusText}`);
}
return response.json();
})
};
export { readJson };