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/messaging.js | 788 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 649 insertions(+), 139 deletions(-) (limited to 'dist/js/messaging.js') diff --git a/dist/js/messaging.js b/dist/js/messaging.js index 1650563..0f55e1a 100755 --- a/dist/js/messaging.js +++ b/dist/js/messaging.js @@ -1,140 +1,650 @@ +const API_ENDPOINT = "https://gimb.tk/test.php"; +const DIRECTORY_URL = "/directory.json"; -const API_ENDPOINT="https://gimb.tk/test.php";const DIRECTORY_URL="/directory.json";const ENCRYPTED_MESSAGE_REGEX=/(\S+?)/;var directory=null;var messages={"0":[],"1":[],"2":[]} -var current_tab=0;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 htmlEncode(value){return $("