From cd34dc6fb1cd47e578f761a7609bd976f253eac7 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Wed, 17 Apr 2024 16:19:15 +0700 Subject: idk what i did, i forgot. go check the diffs --- scripts/global.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scripts/global.js (limited to 'scripts/global.js') diff --git a/scripts/global.js b/scripts/global.js new file mode 100644 index 0000000..df82ef6 --- /dev/null +++ b/scripts/global.js @@ -0,0 +1,21 @@ +// RETURN VALUE +// TYPE : bool +// DESCRIPTION : true = indonesia; false = english (fallback); +function isLangIndonesia() { + if (localStorage.getItem("lang") == "id") { + return true + } else { + return false + } +} + +// RETURN VALUE +// TYPE : bool +// DESCRIPTION : true = dark; false = light (fallback); +function isDarkMode() { + if (localStorage.getItem("theme") == "dark") { + return true + } else { + return false + } +} -- cgit v1.2.3