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 ++++++ node_modules/.bin/xss | 1 + node_modules/commander/CHANGELOG.md | 419 ++++++++ node_modules/commander/LICENSE | 22 + node_modules/commander/Readme.md | 428 ++++++++ node_modules/commander/index.js | 1224 ++++++++++++++++++++++ node_modules/commander/package.json | 70 ++ node_modules/commander/typings/index.d.ts | 310 ++++++ node_modules/cssfilter/LICENSE | 22 + node_modules/cssfilter/README.md | 86 ++ node_modules/cssfilter/lib/css.js | 110 ++ node_modules/cssfilter/lib/default.js | 398 +++++++ node_modules/cssfilter/lib/index.js | 32 + node_modules/cssfilter/lib/parser.js | 74 ++ node_modules/cssfilter/lib/util.js | 35 + node_modules/cssfilter/package.json | 77 ++ node_modules/xss/LICENSE | 23 + node_modules/xss/README.md | 499 +++++++++ node_modules/xss/README.zh.md | 485 +++++++++ node_modules/xss/bin/xss | 67 ++ node_modules/xss/dist/test.html | 15 + node_modules/xss/dist/xss.js | 1609 +++++++++++++++++++++++++++++ node_modules/xss/dist/xss.min.js | 1 + node_modules/xss/lib/cli.js | 45 + node_modules/xss/lib/default.js | 415 ++++++++ node_modules/xss/lib/index.js | 40 + node_modules/xss/lib/parser.js | 239 +++++ node_modules/xss/lib/util.js | 34 + node_modules/xss/lib/xss.js | 211 ++++ node_modules/xss/package.json | 92 ++ node_modules/xss/typings/xss.d.ts | 189 ++++ package-lock.json | 25 + pages/about.html | 1 + pages/absences.html | 3 +- pages/gradings.html | 101 -- pages/messaging.html | 141 +++ pages/teachers.html | 3 +- pages/timetable.html | 3 +- 39 files changed, 7749 insertions(+), 105 deletions(-) create mode 100644 js/messaging.js create mode 120000 node_modules/.bin/xss create mode 100644 node_modules/commander/CHANGELOG.md create mode 100644 node_modules/commander/LICENSE create mode 100644 node_modules/commander/Readme.md create mode 100644 node_modules/commander/index.js create mode 100644 node_modules/commander/package.json create mode 100644 node_modules/commander/typings/index.d.ts create mode 100644 node_modules/cssfilter/LICENSE create mode 100644 node_modules/cssfilter/README.md create mode 100644 node_modules/cssfilter/lib/css.js create mode 100644 node_modules/cssfilter/lib/default.js create mode 100644 node_modules/cssfilter/lib/index.js create mode 100644 node_modules/cssfilter/lib/parser.js create mode 100644 node_modules/cssfilter/lib/util.js create mode 100644 node_modules/cssfilter/package.json create mode 100644 node_modules/xss/LICENSE create mode 100644 node_modules/xss/README.md create mode 100644 node_modules/xss/README.zh.md create mode 100755 node_modules/xss/bin/xss create mode 100644 node_modules/xss/dist/test.html create mode 100644 node_modules/xss/dist/xss.js create mode 100644 node_modules/xss/dist/xss.min.js create mode 100644 node_modules/xss/lib/cli.js create mode 100644 node_modules/xss/lib/default.js create mode 100644 node_modules/xss/lib/index.js create mode 100644 node_modules/xss/lib/parser.js create mode 100644 node_modules/xss/lib/util.js create mode 100644 node_modules/xss/lib/xss.js create mode 100644 node_modules/xss/package.json create mode 100644 node_modules/xss/typings/xss.d.ts create mode 100644 package-lock.json delete mode 100644 pages/gradings.html create mode 100644 pages/messaging.html 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 $(' + + + + + +

Messages

+ + + + +
+ + + + + + + diff --git a/pages/teachers.html b/pages/teachers.html index 6c4bc19..728c630 100644 --- a/pages/teachers.html +++ b/pages/teachers.html @@ -54,6 +54,7 @@
  • Grades
  • Teachers
  • Absences
  • +
  • Messaging
  • @@ -99,4 +100,4 @@ - \ No newline at end of file + diff --git a/pages/timetable.html b/pages/timetable.html index f3426f1..57a31c7 100644 --- a/pages/timetable.html +++ b/pages/timetable.html @@ -63,6 +63,7 @@
  • Grades
  • Teachers
  • Absences
  • +
  • Messaging
  • @@ -103,4 +104,4 @@ - \ No newline at end of file + -- cgit v1.2.3