summaryrefslogtreecommitdiffstats
path: root/assets/js/login.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-08-30 21:02:29 +0200
committerGitHub <noreply@github.com>2020-08-30 21:02:29 +0200
commitd0cac8d886053feb2b688c0f7eff90dc378cebb3 (patch)
tree3a91690925513cdd8c54e6778a88e0afa6b9e813 /assets/js/login.js
parentMerge pull request #24 from beziapp/dev (diff)
parentkoslila => kosila @ bundle.js (diff)
downloadbeziapp-d0cac8d886053feb2b688c0f7eff90dc378cebb3.tar
beziapp-d0cac8d886053feb2b688c0f7eff90dc378cebb3.tar.gz
beziapp-d0cac8d886053feb2b688c0f7eff90dc378cebb3.tar.bz2
beziapp-d0cac8d886053feb2b688c0f7eff90dc378cebb3.tar.lz
beziapp-d0cac8d886053feb2b688c0f7eff90dc378cebb3.tar.xz
beziapp-d0cac8d886053feb2b688c0f7eff90dc378cebb3.tar.zst
beziapp-d0cac8d886053feb2b688c0f7eff90dc378cebb3.zip
Diffstat (limited to 'assets/js/login.js')
-rw-r--r--assets/js/login.js21
1 files changed, 19 insertions, 2 deletions
diff --git a/assets/js/login.js b/assets/js/login.js
index cdecf38..88bf501 100644
--- a/assets/js/login.js
+++ b/assets/js/login.js
@@ -1,7 +1,24 @@
// const API_ENDPOINT = "https://gimb.tk/test.php"; // deprecated
document.addEventListener("DOMContentLoaded", () => {
- setupEventListeners();
-})
+ setupEventListeners();
+ try {
+ load_server_message_at_login();
+ } catch (e) {
+ console.log("login.js: load_server-message-at-login: silently failed.");
+ }
+});
+
+function load_server_message_at_login() {
+ $.ajax({
+ url: "/server-message-at-login.html",
+ success: (data) => {
+ $("#server-message-at-login").html(data);
+ },
+ error: () => {
+ $("#server-message-at-login").html("");
+ }
+ });
+}
function setupEventListeners() {
// Setup login button listener