From fc66b376cb3a2c73843cc882d500cfd743c0790e Mon Sep 17 00:00:00 2001 From: sijanec Date: Sun, 17 May 2020 00:13:40 +0200 Subject: dist should work, TODO: minify and bundle --- js/settings.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 js/settings.js (limited to 'js/settings.js') diff --git a/js/settings.js b/js/settings.js deleted file mode 100644 index fda9ea5..0000000 --- a/js/settings.js +++ /dev/null @@ -1,19 +0,0 @@ -// settings.js -- TODO - -async function setLanguage(langCode) { - localforage.setItem("chosenLang", langCode).then((value) => { - console.log("Language set: " + value); - UIAlert(D("languageSet"), "setLanguage(): languageSet"); - }); -} - -document.addEventListener("DOMContentLoaded", async () => { - $(".settings-language-selector").click(function () { - let languageToSet = $(this).attr("data-language"); - setLanguage(languageToSet); - }); - - // Setup side menu - const menus = document.querySelectorAll(".side-menu"); - M.Sidenav.init(menus, { edge: "right", draggable: true }); -}); -- cgit v1.2.3