summaryrefslogtreecommitdiffstats
path: root/assets/js
diff options
context:
space:
mode:
authorsijanec <sijanecantonluka@gmail.com>2020-08-25 23:24:12 +0200
committersijanec <sijanecantonluka@gmail.com>2020-08-25 23:24:12 +0200
commita814ef4e939fe42c49955d920201eb34ba8ca3d0 (patch)
treea05097472183bfe337ec5b1f7e3b6a6cff8dcd4a /assets/js
parentfixed help screens and notices for make generate != make install (diff)
downloadbeziapp-a814ef4e939fe42c49955d920201eb34ba8ca3d0.tar
beziapp-a814ef4e939fe42c49955d920201eb34ba8ca3d0.tar.gz
beziapp-a814ef4e939fe42c49955d920201eb34ba8ca3d0.tar.bz2
beziapp-a814ef4e939fe42c49955d920201eb34ba8ca3d0.tar.lz
beziapp-a814ef4e939fe42c49955d920201eb34ba8ca3d0.tar.xz
beziapp-a814ef4e939fe42c49955d920201eb34ba8ca3d0.tar.zst
beziapp-a814ef4e939fe42c49955d920201eb34ba8ca3d0.zip
Diffstat (limited to 'assets/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