Skip to content

Commit

Permalink
Update bellschedule coloring and scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
n3a9 committed Sep 1, 2017
1 parent 34b8450 commit a56739e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 35 deletions.
13 changes: 5 additions & 8 deletions scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,16 +667,13 @@ function createPeriod(parent, name, start, end, date, showTime) {
if (periodWrapper.periodName == "P6") {
periodWrapper.classList.add("periodsix");
}
if (periodWrapper.periodName == "Lunch") {
periodWrapper.classList.add("lunchtime");
}
if (periodWrapper.periodName == "P7") {
periodWrapper.classList.add("periodseven");
}
if (periodWrapper.periodName == "P8") {
periodWrapper.classList.add("periodeight");
}
if (periodWrapper.periodName == "School Meeting" || periodWrapper.periodName == "Advisory") {
/*if (periodWrapper.periodName == "Lunch") {
periodWrapper.classList.add("lunchtime");
}*/
/*if (periodWrapper.periodName == "School Meeting" || periodWrapper.periodName == "Advisory") {
periodWrapper.classList.add("meeting");
}
if (periodWrapper.periodName == "Office Hours") {
Expand All @@ -686,7 +683,7 @@ function createPeriod(parent, name, start, end, date, showTime) {
periodWrapper.periodName == "Soph Mtg." || periodWrapper.periodName == "Frosh Mtg." ||
periodWrapper.periodName == "Senior Mtg.") {
periodWrapper.classList.add("meetingtwo");
}
}*/
}
if (length > 0) {
periodWrapper.style.height = (length - 1) + "px"; //minus 1 to account for 1px border
Expand Down
34 changes: 7 additions & 27 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,51 +177,31 @@ table {
}

.periodone {
background-color: rgba(18, 41, 246, .55);
background-color: #f9d689;
}

.periodtwo {
background-color: rgba(249, 122, 44, .82);
background-color: #efa7cc;
}

.periodthree {
background-color: rgba(249, 210, 42, .65);
background-color: #9df2aa;
}

.periodfour {
background-color: rgba(99, 41, 228, .5);
background-color: #dd8d8d;
}

.periodfive {
background-color: rgba(64, 228, 62, .66);
background-color: #9bccef;
}

.periodsix {
background-color: rgba(11, 137, 72, .75);
}

.lunchtime {
background-color: rgba(255, 46, 67, .7);
background-color: #abaaf7;
}

.periodseven {
background-color: rgba(48, 228, 227, .66);
}

.periodeight {
background-color: rgba(206, 52, 228, .66);
}

.officehours {
background-color: rgba(249, 22, 215, .5);
}

.meeting {
background-color: rgba(77, 80, 123, .28);
}

.meetingtwo {
background-color: rgba(196, 233, 242, .6);
background-color: #aeefde;
}

.period,
Expand Down

0 comments on commit a56739e

Please sign in to comment.