From a814ef4e939fe42c49955d920201eb34ba8ca3d0 Mon Sep 17 00:00:00 2001 From: sijanec Date: Tue, 25 Aug 2020 23:24:12 +0200 Subject: added developer's note to the login screen --- dist/js/chats.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 dist/js/chats.js (limited to 'dist/js/chats.js') diff --git a/dist/js/chats.js b/dist/js/chats.js old mode 100644 new mode 100755 -- cgit v1.2.3 From d9969379798e23b2a62f8bf6eab3967d0497b1a8 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sun, 30 Aug 2020 20:14:01 +0200 Subject: popravil meal selection --- dist/js/chats.js | 540 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 503 insertions(+), 37 deletions(-) (limited to 'dist/js/chats.js') diff --git a/dist/js/chats.js b/dist/js/chats.js index 7403d0c..daf10ab 100755 --- a/dist/js/chats.js +++ b/dist/js/chats.js @@ -1,38 +1,504 @@ +// const API_ENDPOINT = "https://gimb.tk/test.php"; +const DIRECTORY_URL = "/directory.json"; +const CHATS_BEGIN_TAG = ""; +const CHATS_END_TAG = ""; +const CHAT_REGEX = /([\S\s]+)/g; +const CHATS_SUBJECT_PREFIX = "ba-ctlmsg-chat-"; -const DIRECTORY_URL="/directory.json";const CHATS_BEGIN_TAG="";const CHATS_END_TAG="";const CHAT_REGEX=/([\S\s]+)/g;const CHATS_SUBJECT_PREFIX="ba-ctlmsg-chat-";let directory=null;let currentlyChattingWith=null;let sogovornik=null;let firstPageOfMessages=null;async function checkLogin(){localforage.getItem("logged_in").then(function(value){if(value!==true){window.location.replace("/index.html");}}).catch(function(err){console.log(err);});} -function getKeyByValue(object,value){return Object.keys(object).find(key=>object[key]===value);} -function htmlEncode(value){return $("