summaryrefslogtreecommitdiff
path: root/scripts/globalElements.js
diff options
context:
space:
mode:
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";
+ }
+}