From f87697e22f289cc96fc4e79da81575115b3e89a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sat, 8 Feb 2020 16:41:06 +0100 Subject: added messaging --- js/login.js | 2 +- js/messaging.js | 303 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 304 insertions(+), 1 deletion(-) create mode 100644 js/messaging.js (limited to 'js') diff --git a/js/login.js b/js/login.js index 564214f..6a68d98 100644 --- a/js/login.js +++ b/js/login.js @@ -17,7 +17,7 @@ function setupEventListeners() { event.preventDefault(); login(); } -}); + }); } // Handle login button click diff --git a/js/messaging.js b/js/messaging.js new file mode 100644 index 0000000..250bf62 --- /dev/null +++ b/js/messaging.js @@ -0,0 +1,303 @@ +function htmlEncode(value){ + // Create a in-memory element, set its inner text (which is automatically encoded) + // Then grab the encoded contents back out. The element never exists on the DOM. + return $('