Methods
addLecture()
createClassroomInfo(schedule, lectureCode) → {div}
Creates boxes that represent lecture schedules in the schedule table.
Generates HTML elements with this form:
Generates HTML elements with this form:
<div class="lecture-classrooms">
<div class="classroom-info">
<input type="checkbox" id="classroom-01" name="MAC0110">
<label class="classroom" for="classroom-01">
<div class="classroom-number">N1</div>
<div class="classroom-teacher">Nome do Professor</div>
<div class="classroom-toggle">+</div>
</label>
</div>
</div>
Parameters:
Name | Type | Description |
---|---|---|
schedule |
Schedule | |
lectureCode |
String |
Returns:
- Type
- div
createLectureInfo(lecture) → {HTML_Element}
Creates the Info section of a lecture, inside lecture explorer.
Parameters:
Name | Type | Description |
---|---|---|
lecture |
Lecture |
Returns:
div.lecture-info
- Type
- HTML_Element
createScheduleBox(schedule, lectureCode) → {div}
Creates boxes that represent lecture schedules in the schedule table.
Generates HTML elements with this form:
Generates HTML elements with this form:
<div class="lecture">
<span class="timespan">10:00 11:40</span>
<span class="lecture-code">MAC0110</span>
</div>
Parameters:
Name | Type | Description |
---|---|---|
schedule |
Schedule | |
lectureCode |
String |
Returns:
- Type
- div
(inner) calcPositionForTime(schedule) → {Object}
Creates a string containing CSS calc() function to correctly position vertically the classroom schedule box
Parameters:
Name | Type | Description |
---|---|---|
schedule |
Schedule |
Returns:
{
positionBegin : string,
positionEnd : string
}
- Type
- Object