add empty space event

This commit is contained in:
2020-10-19 11:36:17 +02:00
parent a2bd89cc8b
commit fe1f6dd59c
2 changed files with 7628 additions and 1 deletions

View File

@@ -301,6 +301,12 @@
return result;
}
}
class EmptySpaceAppointment extends Appointment {
constructor(start, end, type = 0) {
super("Free", start, end, type);
}
}
class Day {
constructor(name, appointment_list) {
@@ -354,6 +360,7 @@
}
var schedule = new Schedule([
new Day("Monday", [
new EmptySpaceAppointment("9:00", "9:30"),
new Appointment("Lecture HCI", "9:30", "11:00", 4),
new Appointment("Lecture Analysis", "12:00", "13:30", 4),
new Appointment("Innebandy", "17:00", "18:30", 4),