diff --git a/books.html b/books.html index 4e935f0..eae563e 100644 --- a/books.html +++ b/books.html @@ -3,27 +3,26 @@ - + Books - fateforge.tools - + - + + English + + + Français +

FateforgeTools

@@ -31,14 +30,17 @@ - - -
+

+
-
-
- +
+ + +
+
+ +
@@ -52,8 +54,7 @@ - - + \ No newline at end of file diff --git a/js/books.js b/js/books.js index c936693..47c5e00 100644 --- a/js/books.js +++ b/js/books.js @@ -1,16 +1,16 @@ var lastbook; var currentbook; -fetch("/lang/books-en.json") - .then((response) => response.json()) - .then((data) => { - console.log(data); +fetch("/data/books-en.json") + .then((response) => response.json()) + .then((data) => { + console.log(data); - const gallery = document.getElementsByClassName("gallery")[0]; + const gallery = document.getElementsByClassName("gallery")[0]; - for (const key in data) { - console.log(data[key].code, data[key].title, data[key].cover); - var bookHTML = `