From 3a3246dfecab404df90513989bf84a270e17d1f1 Mon Sep 17 00:00:00 2001 From: sijanec Date: Sat, 26 Sep 2020 21:42:10 +0200 Subject: DNM: started lopolisc/untested, added server nginx conf fileas --- 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 $("