aboutsummaryrefslogtreecommitdiff
path: root/src/app/lang.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/lang.js')
-rw-r--r--src/app/lang.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/app/lang.js b/src/app/lang.js
index 8cf3d4b..5cc9708 100644
--- a/src/app/lang.js
+++ b/src/app/lang.js
@@ -1,10 +1,12 @@
-html = document.body.innerHTML.split("%%");
+function setlang() {
+ html = document.body.innerHTML.split("%%");
-for (let i = 0; i < html.length; i++) {
- if (html[i][0] != " " &&
- html[i][html[i].length - 1] != " ") {
- html[i] = lang(html[i])
+ for (let i = 0; i < html.length; i++) {
+ if (html[i][0] != " " &&
+ html[i][html[i].length - 1] != " ") {
+ html[i] = lang(html[i])
+ }
}
-}
-document.body.innerHTML = html.join("");
+ document.body.innerHTML = html.join("");
+}