Skip to content

Commit

Permalink
begin shift to SY2425
Browse files Browse the repository at this point in the history
  • Loading branch information
domlet committed Jun 11, 2024
1 parent aa07bb9 commit 1036e1b
Show file tree
Hide file tree
Showing 8 changed files with 312 additions and 6 deletions.
Empty file removed data-SY2425.js
Empty file.
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions data/SY2425.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const SY2425 = {
schoolyear: "SY2425",
terms: [
{
termCode: "sv_SY2425",
termName: "Summer Vacation",
beg: new Date("July 01, 2024"),
end: new Date("Aug 06, 2024"),
},
{
termCode: "t1_SY2425",
termName: "T1",
beg: new Date("Aug 07, 2024"),
end: new Date("Oct 13, 2024"),
},
{
termCode: "t2_SY2425",
termName: "T2",
beg: new Date("Oct 16, 2024"),
end: new Date("Dec 22, 2024"),
},
{
termCode: "t3_SY2425",
termName: "T3",
beg: new Date("Jan 09, 2025"),
end: new Date("Mar 8, 2025"),
},
{
termCode: "t4_SY2425",
termName: "T4",
beg: new Date("Mar 11, 2025"),
end: new Date("May 10, 2025"),
},
{
termCode: "ps_SY2425",
termName: "Postsession",
beg: new Date("May 13, 2025"),
end: new Date("May 23, 2025"),
},
{
termCode: "ss_SY2425",
termName: "Summer School",
beg: new Date("Jun 03, 2025"),
end: new Date("Jun 28, 2025"),
},
],
dates: [{}],
};
256 changes: 256 additions & 0 deletions data/zodiac.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,256 @@
const SY2324 = {
dates: [
{
beg: new Date("3 / 21 / 24"),
end: new Date("4 / 20 / 24"),
eventType: "zodiac",
name: "♈ Aries",
description: "",
},
{
beg: new Date("4 / 21 / 24"),
end: new Date("5 / 20 / 24"),
eventType: "zodiac",
name: "♉ Taurus",
description: "",
},
{
beg: new Date("5 / 21 / 24"),
end: new Date("6 / 21 / 24"),
eventType: "zodiac",
name: "♊ Gemini",
description: "",
},
{
beg: new Date("6 / 22 / 24"),
end: new Date("7 / 22 / 24"),
eventType: "zodiac",
name: "♋ Cancer",
description: "",
},
{
beg: new Date("7 / 23 / 24"),
end: new Date("8 / 23 / 24"),
eventType: "zodiac",
name: "♌ Leo",
description: "",
},
{
beg: new Date("8 / 24 / 24"),
end: new Date("9 / 22 / 24"),
eventType: "zodiac",
name: "♍ Virgo",
description: "",
},
{
beg: new Date("9 / 23 / 24"),
end: new Date("10 / 22 / 24"),
eventType: "zodiac",
name: "♎ Libra",
description: "",
},
{
beg: new Date("10 / 23 / 24"),
end: new Date("11 / 22 / 24"),
eventType: "zodiac",
name: "♏ Scorpio",
description: "",
},
{
beg: new Date("11 / 23 / 24"),
end: new Date("12 / 21 / 24"),
eventType: "zodiac",
name: "♐ Sagittarius",
description: "",
},
{
beg: new Date("12 / 22 / 24"),
end: new Date("1 / 20 / 25"),
eventType: "zodiac",
name: "♑ Capricorn",
description: "",
},
{
beg: new Date("1 / 21 / 24"),
end: new Date("2 / 19 / 24"),
eventType: "zodiac",
name: "♒ Aquarius",
description: "",
},
{
beg: new Date("2 / 20 / 24"),
end: new Date("3 / 20 / 24"),
eventType: "zodiac",
name: "♓ Pisces",
description: "",
},
{
beg: new Date("3 / 21 / 25"),
end: new Date("4 / 20 / 25"),
eventType: "zodiac",
name: "♈ Aries",
description: "",
},
{
beg: new Date("4 / 21 / 25"),
end: new Date("5 / 20 / 25"),
eventType: "zodiac",
name: "♉ Taurus",
description: "",
},
{
beg: new Date("5 / 21 / 25"),
end: new Date("6 / 21 / 25"),
eventType: "zodiac",
name: "♊ Gemini",
description: "",
},
{
beg: new Date("6 / 22 / 25"),
end: new Date("7 / 22 / 25"),
eventType: "zodiac",
name: "♋ Cancer",
description: "",
},
{
beg: new Date("7 / 23 / 25"),
end: new Date("8 / 23 / 25"),
eventType: "zodiac",
name: "♌ Leo",
description: "",
},
{
beg: new Date("8 / 24 / 25"),
end: new Date("9 / 22 / 25"),
eventType: "zodiac",
name: "♍ Virgo",
description: "",
},
{
beg: new Date("9 / 23 / 25"),
end: new Date("10 / 22 / 25"),
eventType: "zodiac",
name: "♎ Libra",
description: "",
},
{
beg: new Date("10 / 23 / 25"),
end: new Date("11 / 22 / 25"),
eventType: "zodiac",
name: "♏ Scorpio",
description: "",
},
{
beg: new Date("11 / 23 / 25"),
end: new Date("12 / 21 / 25"),
eventType: "zodiac",
name: "♐ Sagittarius",
description: "",
},
{
beg: new Date("12 / 22 / 25"),
end: new Date("1 / 20 / 26"),
eventType: "zodiac",
name: "♑ Capricorn",
description: "",
},
{
beg: new Date("1 / 21 / 25"),
end: new Date("2 / 19 / 25"),
eventType: "zodiac",
name: "♒ Aquarius",
description: "",
},
{
beg: new Date("2 / 20 / 25"),
end: new Date("3 / 20 / 25"),
eventType: "zodiac",
name: "♓ Pisces",
description: "",
},
{
beg: new Date("3 / 21 / 26"),
end: new Date("4 / 20 / 26"),
eventType: "zodiac",
name: "♈ Aries",
description: "",
},
{
beg: new Date("4 / 21 / 26"),
end: new Date("5 / 20 / 26"),
eventType: "zodiac",
name: "♉ Taurus",
description: "",
},
{
beg: new Date("5 / 21 / 26"),
end: new Date("6 / 21 / 26"),
eventType: "zodiac",
name: "♊ Gemini",
description: "",
},
{
beg: new Date("6 / 22 / 26"),
end: new Date("7 / 22 / 26"),
eventType: "zodiac",
name: "♋ Cancer",
description: "",
},
{
beg: new Date("7 / 23 / 26"),
end: new Date("8 / 23 / 26"),
eventType: "zodiac",
name: "♌ Leo",
description: "",
},
{
beg: new Date("8 / 24 / 26"),
end: new Date("9 / 22 / 26"),
eventType: "zodiac",
name: "♍ Virgo",
description: "",
},
{
beg: new Date("9 / 23 / 26"),
end: new Date("10 / 22 / 26"),
eventType: "zodiac",
name: "♎ Libra",
description: "",
},
{
beg: new Date("10 / 23 / 26"),
end: new Date("11 / 22 / 26"),
eventType: "zodiac",
name: "♏ Scorpio",
description: "",
},
{
beg: new Date("11 / 23 / 26"),
end: new Date("12 / 21 / 26"),
eventType: "zodiac",
name: "♐ Sagittarius",
description: "",
},
{
beg: new Date("12 / 22 / 26"),
end: new Date("1 / 20 / 27"),
eventType: "zodiac",
name: "♑ Capricorn",
description: "",
},
{
beg: new Date("1 / 21 / 26"),
end: new Date("2 / 19 / 26"),
eventType: "zodiac",
name: "♒ Aquarius",
description: "",
},
{
beg: new Date("2 / 20 / 26"),
end: new Date("3 / 20 / 26"),
eventType: "zodiac",
name: "♓ Pisces",
description: "",
},
],
};
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous" />
<link rel="stylesheet" href="style.css" />
<link rel="icon" href="favicon.ico" type="image/x-icon">
<script type="text/javascript" src="data-SY2223.js"></script>
<script type="text/javascript" src="data-SY2324.js"></script>
<script type="text/javascript" src="data/SY2223.js"></script>
<script type="text/javascript" src="data/SY2324.js"></script>
<script type="text/javascript" src="data/SY2425.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</head>

Expand Down Expand Up @@ -39,6 +40,7 @@
</div>
</div>

<!-- Three statements about the current date. -->
<div id="stats" class="container-fluid py-3 px-0">
<div class="d-flex px-0">
<div class="col flex-fill pr-1">
Expand Down Expand Up @@ -126,7 +128,7 @@ <h2>Dates to Note:</h2>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script src="script.js"></script>
<script src="scriptEvents.js"></script>
<script src="scriptEventLists.js"></script>

<script>
// Keep screen awake:
Expand Down
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Define school years and terms:
const lastSY = SY2223;
const currentSY = SY2324;
const nextSY = SY2324;
const nextSY = SY2425;
const dateToday = new Date();
// Function to count number of days between two dates
function dateDiffInDays(a, b) {
Expand Down Expand Up @@ -154,10 +154,10 @@ function showDotsAndCalc() {
document.getElementById("daysRemainYearContainer").innerHTML =
"We have <strong>" +
daysUntilNextSY +
"</strong> summer days until <strong>" +
"</strong> daysRemainYearContainer <strong>" +
nextSY.schoolyear +
"</strong> begins.";
// document.getElementById("daysRemainYearContainer").innerHTML = "Enjoy <strong>" + daysUntilNextSY + "</strong> summer days until <strong>" + nextSY.schoolyear + "</strong> begins on " + nextSY.terms[0].beg.toLocaleString('en-US', { month: 'long', day: 'numeric' }) + ".";
// document.getElementById("daysRemainYearContainer").innerHTML = "Enjoy <strong>" + daysUntilNextSY + "</strong> daysRemainYearContainer <strong>" + nextSY.schoolyear + "</strong> begins on " + nextSY.terms[0].beg.toLocaleString('en-US', { month: 'long', day: 'numeric' }) + ".";
} else {
document.getElementById("daysRemainYearContainer").innerHTML =
"There are <strong>" +
Expand Down
File renamed without changes.

0 comments on commit 1036e1b

Please sign in to comment.