-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (71 loc) · 4.25 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<html>
<head>
<title>eNight</title>
<meta name="title" content="Electronics & Technology Night">
<meta name="description" content="Southeastern Connecticut's weekly Electronics, 3D Printing, and Technology Meetup">
<meta name="keywords" content="Technology, Meetup">
<meta name="robots" content="index, follow">
<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>
window.addEventListener('load', function() {
// your code here
//get date
//console.log("script running!");
const d = new Date();
console.log(d);
//is today Thursday?
if (d.getDay() == 4) {
console.log("today is thursday");
document.getElementById("thurs_status").innerHTML = "✔️";
document.getElementById("status").innerHTML = "Electronics Night TONIGHT! 6-8p";
} else {
document.getElementById("thurs_status").innerHTML = "❌";
document.getElementById("status").innerHTML = "Not tonight.";
}
console.log(d.getMonth());
//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 = "❌🦃🍂";
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 it's 🦃🍂";
document.getElementById("status").innerHTML = "No Electronics Night tonight! See you next week!";
}
else {
document.getElementById("thanks_status").innerHTML = "✔️";
};
});
</script>
</head>
<body>
<h1>Electronics Night</h1>
<p>Every Thursday but Thanksgiving.</p>
<ul>
<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>
<h3>What the heck is Electronics Night?</h3>
<p>Electronics Night is a weekly meetup of makers, hackers, artists, and engineers interested in all things technology. The group meets at <a href="https://sparkmakerspace.org">Spark Makerspace</a> at 7 Union St in New London from 6-8pm.</p>
<p>Bring something to show off or just stop by to see what others are working on.</p>
<p>Areas of interest include electronics, circuit and PCB design, 3D printing, electronic art, game design, web design, systems administration, reverse-engineering, and more. Most folks bring a laptop, though that's certainly not a requirement.</p>
<h4>Electronics aren't my thing, is this still the meetup for me?</h4>
<p>We are welcoming to nerds of all kinds! Whether you're into electronics, 3D printing, programming, game design, lasers, robots, or something else, swing by and say 'greetings!'</p>
<h4>Where can I park?</h4>
<p>Street parking in New London is free (and unlimited after 6pm). If there isn't a spot on the street, there's a municipal lot at <a href="https://goo.gl/maps/8fNxNbcXM6tUGfL8A">1 Eugine O'Neill Drive</a> (about a block away) that's free after 6pm.</p>
<h4>Other Questions?</h4>
<p>Email electronics at sparkmakerspace.org or swing by. You can also check out <a href="https://sparkmakerspace.org">sparkmakerspace.org</a>.</p>
<h4>I'm a regular at Electronics Night and I think you've missed something here!</h4>
<p>This site is automagically generated from the <a href="https://github.com/SparkMakerspace/electronicsnight.com">SparkMakerspace/electronicsnight.com</a> repository on GitHub. Pull requests and issues will be reviewed happily.</p>
</body>
</html>