From 17851ac2e23f01124f9489b910a63237df774fad Mon Sep 17 00:00:00 2001 From: LUCASTUCIOUS Date: Fri, 10 Mar 2023 01:55:55 +0100 Subject: [PATCH] make footer in js --- footer.html | 25 +++++++++++++++++++++++++ index.html | 42 ++++++++++++------------------------------ js/footer.js | 6 ++++++ js/language.js | 1 + spells.html | 15 +++++++-------- 5 files changed, 51 insertions(+), 38 deletions(-) create mode 100644 footer.html create mode 100644 js/footer.js diff --git a/footer.html b/footer.html new file mode 100644 index 0000000..b173333 --- /dev/null +++ b/footer.html @@ -0,0 +1,25 @@ + +

+ fateforge.tool + by Lucastucious is licensed + under + CC BY-NC 4.0 +

+
+

CUVD +

+

+
\ No newline at end of file diff --git a/index.html b/index.html index 804a405..540e7ef 100644 --- a/index.html +++ b/index.html @@ -2,11 +2,16 @@ - + fateforge-tools + + + + + @@ -14,7 +19,9 @@ -

FateforgeTools

+ +

FateforgeTools

+
A suite of tools for Fateforge players and Masters.
@@ -35,35 +42,10 @@ - + - - - + + diff --git a/js/footer.js b/js/footer.js new file mode 100644 index 0000000..b83a79e --- /dev/null +++ b/js/footer.js @@ -0,0 +1,6 @@ +$(function () { + $("#footer").load("footer.html",function (responseTxt, statusTxt, xhr) { + console.log("bla"); + $("[data-localize]").localize("main", { pathPrefix: "lang" }); + }); + }); \ No newline at end of file diff --git a/js/language.js b/js/language.js index efcee53..9306632 100644 --- a/js/language.js +++ b/js/language.js @@ -1,4 +1,5 @@ // this code localizes all elements with a "data-localize" attribute + $("[data-localize]").localize("main", { pathPrefix: "lang" }); // You can also override the language detection and specify a language code. This code defines a function that sets the language to French. diff --git a/spells.html b/spells.html index 9bb1c1c..2a91a39 100644 --- a/spells.html +++ b/spells.html @@ -13,6 +13,8 @@ + + @@ -32,8 +34,8 @@
-
- +
+
@@ -46,7 +48,7 @@ -
+
@@ -56,11 +58,8 @@ + - - - - @@ -68,7 +67,7 @@ - +
Select a spell from the list to view it here