Skip to content

Commit

Permalink
A lil css and also I made it so you want three checks instead of a ch…
Browse files Browse the repository at this point in the history
…eck, an ex, and a check.
  • Loading branch information
fsckyou committed Mar 15, 2024
1 parent 5406abe commit 4331726
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
17 changes: 9 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="language" content="English">
<meta name="author" content="Spark Electronics Lab">
<link rel="stylesheet" type="text/css" href="simple.min.css">

<script>

Expand All @@ -31,18 +32,18 @@
//is this Thursday Thanksgiving?
if (d.getDay() < 4 && d.getMonth() == 10 && d.getDate() >= 20 && d.getDate() <= 27 ){
console.log("thanksgiving is this week (probably?)");
document.getElementById("thanks_status").innerHTML = "yes! 🦃";
document.getElementById("next_enight").innerHTML = "<strong>next week</strong>";
document.getElementById("status").innerHTML = "No Electronics Night this week! See you next week!";
document.getElementById("thanks_status").innerHTML = "❌🦃🍂";
document.getElementById("next_enight").innerHTML = "<strong>next week!</strong>";
document.getElementById("status").innerHTML = "Turkey Day this week! See you next week!";
}
//is today Thanksgiving? Use 10 because arrays start at 0. Also 20 and 27 for same reason.
else if (d.getDay() == 4 && d.getMonth() == 10 && d.getDate() >= 20 && d.getDate() <= 27 ){
console.log("today is thanksgiving (probably?)");
document.getElementById("thanks_status").innerHTML = "good chance ✔️";
document.getElementById("thanks_status").innerHTML = "good chance it's 🦃🍂";
document.getElementById("status").innerHTML = "No Electronics Night tonight! See you next week!";
}
else {
document.getElementById("thanks_status").innerHTML = "";
document.getElementById("thanks_status").innerHTML = "✔️";
};
});
</script>
Expand All @@ -51,9 +52,9 @@
<h1>Electronics Night</h1>
<p>Every Thursday but Thanksgiving.</p>
<ul>
<li>is today Thursday?<span id="thurs_status"></span></li>
<li>is this Thursday Thanksgiving? <span id="thanks_status"></span></li>
<li>The next instance of Electronics Night will be <span id="next_enight">on Thursday. ✔️</span></li>
<li>Today is Thursday?<span id="thurs_status"></span></li>
<li>Thanksgiving isn't this week? <span id="thanks_status"></span></li>
<li>The next Electronics Night will be <span id="next_enight">on Thursday. ✔️</span></li>
</ul>
<h2 id="status"></h2>
<p></p>
Expand Down
1 change: 1 addition & 0 deletions simple.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4331726

Please sign in to comment.