From 92fe5ba8e933010350dd3d9b7424532dda2b14d8 Mon Sep 17 00:00:00 2001 From: malik Date: Wed, 24 Jan 2024 23:07:50 +0100 Subject: [PATCH] test --- index.html | 2 +- js/lang.js | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index d006db8..fda0139 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ - +
diff --git a/js/lang.js b/js/lang.js index 27cc78e..6e6c6a1 100644 --- a/js/lang.js +++ b/js/lang.js @@ -1,6 +1,4 @@ -var dataReload = document.querySelectorAll("[data-reload]"); - var language = { eng: { welcometitle: "Hello Internet!", @@ -18,10 +16,14 @@ if(window.location.hash) { } } -for (i = 0; i <= dataReload.length; i++) { - dataReload[i].onclick = function() { + function langReload() { + if(localStorage) + + localStorage.setItem('Language') = ger + + location.reload(true); }; -} +