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.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/app/lang.js b/src/app/lang.js
new file mode 100644
index 0000000..5cc9708
--- /dev/null
+++ b/src/app/lang.js
@@ -0,0 +1,12 @@
+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])
+ }
+ }
+
+ document.body.innerHTML = html.join("");
+}