Skip to content

Commit

Permalink
Fixing Time
Browse files Browse the repository at this point in the history
  • Loading branch information
HastDu authored Oct 28, 2024
1 parent ace7316 commit 4d98ec4
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions public/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,55 +37,55 @@ setInterval(() => {
}

if(schedule1.includes(dow)) {
if(hours < 6 && minutes < 55) {
if(hours < 5 && minutes < 55) {
var selector = "Before School"
};
if(hours > 6 && minutes > 55) {
if(hours > 5 && minutes > 55) {
var selector = "0 Hour"
};
if(hours > 7 && minutes > 50) {
if(hours > 6 && minutes > 50) {
var selector = "Before 1st"
};
if(hours > 7 && minutes > 55) {
if(hours > 6 && minutes > 55) {
var selector = "1st Hour"
};
if(hours > 8 && minutes > 50) {
if(hours > 7 && minutes > 50) {
var selector = "Before 2nd"
};
if(hours > 8 && minutes > 55) {
if(hours > 7 && minutes > 55) {
var selector = "2nd Hour"
};
if(hours > 9 && minutes > 50) {
if(hours > 8 && minutes > 50) {
var selector = "Before 3rd"
};
if(hours > 9 && minutes > 55) {
if(hours > 8 && minutes > 55) {
var selector = "3rd Hour"
};
if(hours > 10 && minutes > 55) {
if(hours > 9 && minutes > 55) {
var selector = "Before 4th / 1st Lunch"
};
if(hours > 11 && minutes > 25) {
if(hours > 10 && minutes > 25) {
var selector = "4th Hour"
};
if(hours > 11 && minutes > 55) {
if(hours > 10 && minutes > 55) {
var selector = "4th Hour / 2nd Lunch"
};
if(hours > 12 && minutes > 25) {
if(hours > 11 && minutes > 25) {
var selector = "Before 5th"
};
if(hours > 12 && minutes > 30) {
if(hours > 11 && minutes > 30) {
var selector = "5th Hour"
};
if(hours > 13 && minutes > 25) {
if(hours > 12 && minutes > 25) {
var selector = "Before 6th"
};
if(hours > 13 && minutes > 30) {
if(hours > 12 && minutes > 30) {
var selector = "6th Hour"
};
if(hours > 14 && minutes > 25) {
if(hours > 13 && minutes > 25) {
var selector = "End of school / Clubs"
};
if(hours > 15 && minutes > 25) {
if(hours > 14 && minutes > 25) {
var selector = "End of school"
};

Expand Down

0 comments on commit 4d98ec4

Please sign in to comment.