summaryrefslogtreecommitdiff
path: root/scripts/globalElements.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2024-04-17 16:19:15 +0700
committeraltaf-creator <dev@altafcreator.com>2024-04-17 16:19:15 +0700
commitcd34dc6fb1cd47e578f761a7609bd976f253eac7 (patch)
tree3e488307733455c1a97b347a745d06f38ecf24e6 /scripts/globalElements.js
parent3d0ccfba34d6371b41e877189b78599ae7b2f98a (diff)
idk what i did, i forgot. go check the diffs
Diffstat (limited to 'scripts/globalElements.js')
-rw-r--r--scripts/globalElements.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/globalElements.js b/scripts/globalElements.js
new file mode 100644
index 0000000..01d8516
--- /dev/null
+++ b/scripts/globalElements.js
@@ -0,0 +1,13 @@
+// DEPENDENCIES:
+// * /scripts/global.js
+function updateGlobalElements() {
+ if (isLangIndonesia()) {
+ document.getElementById("lang-switcher-text").innerHTML = "Baca dalam Bahasa Inggris";
+ document.getElementById("link-author").innerHTML = "Tentang Penulis";
+ document.getElementById("link-school").innerHTML = "Tentang Sekolah";
+ document.getElementById("link-lessons").innerHTML = "Mata Pelajaran";
+ document.getElementById("toc-title").innerHTML = "Daftar Isi"
+ } else {
+ document.getElementById("lang-switcher-text").innerHTML = "Read in Indonesia";
+ }
+}