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.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app/lang.js b/src/app/lang.js
new file mode 100644
index 0000000..8cf3d4b
--- /dev/null
+++ b/src/app/lang.js
@@ -0,0 +1,10 @@
+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("");