Global

Members

content

Source:
Example
{
       content: "CSE 110 Lecture",
       tags: ["Lecture", ...],
       from: hh:mm AM, (12hr)
       to: hh:mm PM (12hr)
   }

Methods

addCustomTag(tagName)

add custom tag
Parameters:
Name Type Description
tagName string for the name of tag
Source:
Returns:
true/false if successful

addEvent(key:, event:)

addEvent add an event into local storage
Parameters:
Name Type Description
key: 2021-05-17
event: the json data returned from Event.content
Source:
Returns:
true/false if successful
addLink
Parameters:
Name Type Description
key 2021-05-17
link string that represents link of media
Source:
Returns:
true/false if successful

addTask(key:, task:)

addTask add a task into local storage
Parameters:
Name Type Description
key: 2021-05-17
task: the json data returned from Task.content
Source:
Returns:
true/false if successful

convert12To24(oldTime)

Parameters:
Name Type Description
oldTime string "hh:mm AM"
Source:
Returns:
"hh:mm" (24hr)

convert24To12(oldTime)

Parameters:
Name Type Description
oldTime string "hh:mm (24hr)"
Source:
Returns:
"hh:mm AM" (12hr)

eventsIntercept(a, b)

returns if events a and b intercept
Parameters:
Name Type Description
a Object an event obj
b Object an event obj
Source:

getCustomTagColor(tagName)

get color for a custom tag
Parameters:
Name Type Description
tagName string for the name of tag
Source:
Returns:
the tag color

getData(key:)

get/set the relevant data for the day specified in key
Parameters:
Name Type Description
key: 2021-05-17
Source:

getDaysKey()

getDaysKey returns a string that represents the key that corresponds to the current date
Source:
Returns:
2021-05-17

getEventWidths(eventArr)

Parameters:
Name Type Description
eventArr Array event objects eventArr
Source:
Returns:
array of integers that represent width

getName()

getName Returns a descriptive name for a day.
Source:

getWeek()

getWeek Returns an array of keys for the days of the week.
Source:

minutesSinceMidnight(time)

ex: 12:00 AM returns 0
Parameters:
Name Type Description
time string
Source:

populate(key)

Changes the date title, removes existing content, populates page with current date's content
Parameters:
Name Type Description
key string The date of the journal
Source:

populateW(keyT)

Changes the date title, removes existing content, populates page with current date's content
Parameters:
Name Type Description
keyT string The date of the journal
Source:

rectsIntercept(a, b)

returns if rects a and b intercept
Parameters:
Name Type Description
a Object a rect obj
b Object a rect obj
Source:

removeAll()

Removes the current content from the log, notepad, and media tab
Source:

removeAll()

TODO: Removes the current content from the weekly log
Source:

returnStudentInfo(name, major, gpa)

Print information representing a student. This function will print the values given. This documentation was updated on Thursday, May 27.
Parameters:
Name Type Description
name string The name of the student.
major string The student's major.
gpa number The student's GPA.
Source:

sortPoints(a, b)

helper function for Array.sort()
Parameters:
Name Type Description
a Object a point obj
b Object a point obj
Source:
Returns:
Integer <0 if a < b

test()

temporary test function to satisfy linter
Source:

test()

temporary test function to satisfy linter dont run this
Source:

toggle(elementID, displayType)

Toggle the display of the HTML element with elementID between displayType and none
Parameters:
Name Type Description
elementID string The ID for the HTML element
displayType string The desired display type
Source:

toggleOptionsDisplay()

toggle the css display value for the tag selection options
Source:

updateNotepad(key:, text:)

update paragraph
Parameters:
Name Type Description
key: 2021-05-17
text: content of the notepad
Source:
Returns:
true/false if successful

.onkeyup()

Saves notepad content to localStorage when pressing the navigation button
Source:
Listens to Events:
  • sidebarButton#event:onkeyup