From e877ecaa6b7cfe630f69cc04ba3e1af53eaa4c67 Mon Sep 17 00:00:00 2001 From: Sriram Hariharan Date: Sat, 10 Aug 2019 19:00:16 -0500 Subject: [PATCH] refactored and cleaned up calendar --- calendar.html | 3 + js/Template.js | 32 +++ js/background.js | 71 ------ js/calendar.js | 599 ++++++++++++++++++++++---------------------- js/config.js | 26 +- js/courseCatalog.js | 38 ++- js/util.js | 70 ++++++ js/utplanner.js | 4 +- 8 files changed, 442 insertions(+), 401 deletions(-) diff --git a/calendar.html b/calendar.html index 07b34c99..99c9ab02 100644 --- a/calendar.html +++ b/calendar.html @@ -36,4 +36,7 @@ + + + \ No newline at end of file diff --git a/js/Template.js b/js/Template.js index f96f0cab..64ba781b 100644 --- a/js/Template.js +++ b/js/Template.js @@ -50,4 +50,36 @@ class Template { static extensionButton() { return `` } + + static calendarLine(line) { + return `

+ ${line[0]}: + ${line[1]} to ${line[2]} + + ${line[4]} + +

` + } + + + static calendarModal() { + return `