summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgenerate-schedule.py5
-rw-r--r--index.html38
-rw-r--r--static/styles.css3
3 files changed, 25 insertions, 21 deletions
diff --git a/generate-schedule.py b/generate-schedule.py
index 1541ca6..d35e33c 100755
--- a/generate-schedule.py
+++ b/generate-schedule.py
@@ -20,6 +20,7 @@ class Event:
info: str = None
special: bool = False
cancelled: bool = False
+ changed: bool = False
def render_schedule(events):
s = ''
@@ -41,7 +42,7 @@ def render_schedule(events):
if week_change:
s += '<br>\n'
- s += f'''<div class="event {'special' if event.special else ''} {'cancelled' if event.cancelled else ''}">
+ s += f'''<div class="event {'special' if event.special else ''} {'cancelled' if event.cancelled else ''} {'changed' if event.changed else ''}">
<div class="event-data">
<strong>{weekday}, {month} {day}</strong> &middot; {time}
</div>
@@ -131,7 +132,7 @@ schedule = [
Event(jefferson, date(2024, 11, 6), info='Elevator in lobby to third floor. Book Swap and <a href="https://booksthroughbarsnyc.org/donate/donate-books/">NYC Books Through Bars</a> Book Drive.', special=True),
Event(nook, date(2024, 11, 9)),
Event(mccarren, date(2024, 11, 11)),
- Event(abraco, date(2024, 11, 13), special=True, info='Wednesday Jefferson Market Library Quiet Reading moved for this week.'),
+ Event(abraco, date(2024, 11, 13), changed=True, info='Wednesday Jefferson Market Library Quiet Reading moved for this week.'),
Event(bushwicklibrary, date(2024, 11, 14), time='6p', special=True),
Event(nook, date(2024, 11, 16)),
Event(wyckoffbondgarden, date(2024, 11, 16), time='12p', special=True),
diff --git a/index.html b/index.html
index 2c50c0f..b0878ba 100644
--- a/index.html
+++ b/index.html
@@ -32,7 +32,7 @@
<hr>
<br>
- <div class="event ">
+ <div class="event ">
<div class="event-data">
<strong>Wednesday, October 30</strong> &middot; 6p
</div>
@@ -41,7 +41,7 @@
<span class="neighborhood">Greenwich Village</span>
<br><div class="info">1<sup>st</sup> floor Willa Cather Room; take a left at entrance, straight through children&rsquo;s room</div>
</div>
-</div><div class="event ">
+</div><div class="event ">
<div class="event-data">
<strong>Saturday, November 2</strong> &middot; 9a
</div>
@@ -50,7 +50,7 @@
<span class="neighborhood">Bushwick</span>
</div>
-</div><div class="event ">
+</div><div class="event ">
<div class="event-data">
<strong>Sunday, November 3</strong> &middot; 9p
</div>
@@ -60,7 +60,7 @@
</div>
</div><br>
-<div class="event special ">
+<div class="event special ">
<div class="event-data">
<strong>Monday, November 4</strong> &middot; 6:30p
</div>
@@ -69,7 +69,7 @@
<span class="neighborhood">Williamsburg</span>
<br><div class="info">Book Swap and <a href="https://booksthroughbarsnyc.org/donate/donate-books/">NYC Books Through Bars</a> Book Drive.</div>
</div>
-</div><div class="event special ">
+</div><div class="event special ">
<div class="event-data">
<strong>Wednesday, November 6</strong> &middot; 6p
</div>
@@ -78,7 +78,7 @@
<span class="neighborhood">Greenwich Village</span>
<br><div class="info">Elevator in lobby to third floor. Book Swap and <a href="https://booksthroughbarsnyc.org/donate/donate-books/">NYC Books Through Bars</a> Book Drive.</div>
</div>
-</div><div class="event ">
+</div><div class="event ">
<div class="event-data">
<strong>Saturday, November 9</strong> &middot; 9a
</div>
@@ -88,7 +88,7 @@
</div>
</div><br>
-<div class="event ">
+<div class="event ">
<div class="event-data">
<strong>Monday, November 11</strong> &middot; 6:30p
</div>
@@ -97,7 +97,7 @@
<span class="neighborhood">Williamsburg</span>
</div>
-</div><div class="event special ">
+</div><div class="event changed">
<div class="event-data">
<strong>Wednesday, November 13</strong> &middot; 6p
</div>
@@ -106,7 +106,7 @@
<span class="neighborhood">East Village</span>
<br><div class="info">Wednesday Jefferson Market Library Quiet Reading moved for this week.</div>
</div>
-</div><div class="event special ">
+</div><div class="event special ">
<div class="event-data">
<strong>Thursday, November 14</strong> &middot; 6p
</div>
@@ -115,7 +115,7 @@
<span class="neighborhood">Bushwick</span>
</div>
-</div><div class="event ">
+</div><div class="event ">
<div class="event-data">
<strong>Saturday, November 16</strong> &middot; 9a
</div>
@@ -124,7 +124,7 @@
<span class="neighborhood">Bushwick</span>
</div>
-</div><div class="event special ">
+</div><div class="event special ">
<div class="event-data">
<strong>Saturday, November 16</strong> &middot; 12p
</div>
@@ -134,7 +134,7 @@
<br><div class="info">Hosted by Carroll Gardens Library</div>
</div>
</div><br>
-<div class="event ">
+<div class="event ">
<div class="event-data">
<strong>Monday, November 18</strong> &middot; 6:30p
</div>
@@ -143,7 +143,7 @@
<span class="neighborhood">Williamsburg</span>
</div>
-</div><div class="event ">
+</div><div class="event ">
<div class="event-data">
<strong>Wednesday, November 20</strong> &middot; 6p
</div>
@@ -152,7 +152,7 @@
<span class="neighborhood">Greenwich Village</span>
<br><div class="info">1<sup>st</sup> floor Willa Cather Room; take a left at entrance, straight through children&rsquo;s room</div>
</div>
-</div><div class="event special ">
+</div><div class="event special ">
<div class="event-data">
<strong>Wednesday, November 20</strong> &middot; 6:30p
</div>
@@ -161,7 +161,7 @@
<span class="neighborhood">Prospect Heights</span>
<br><div class="info">Trustees Room</div>
</div>
-</div><div class="event special ">
+</div><div class="event special ">
<div class="event-data">
<strong>Thursday, November 21</strong> &middot; 6p
</div>
@@ -170,7 +170,7 @@
<span class="neighborhood">Bushwick</span>
</div>
-</div><div class="event ">
+</div><div class="event ">
<div class="event-data">
<strong>Saturday, November 23</strong> &middot; 9a
</div>
@@ -180,7 +180,7 @@
</div>
</div><br>
-<div class="event ">
+<div class="event ">
<div class="event-data">
<strong>Monday, November 25</strong> &middot; 6:30p
</div>
@@ -189,7 +189,7 @@
<span class="neighborhood">Williamsburg</span>
</div>
-</div><div class="event cancelled">
+</div><div class="event cancelled ">
<div class="event-data">
<strong>Wednesday, November 27</strong> &middot; 6p
</div>
@@ -198,7 +198,7 @@
<span class="neighborhood">Greenwich Village</span>
<br><div class="info"><strong>Cancelled due to Thanksgiving.</strong></div>
</div>
-</div><div class="event ">
+</div><div class="event ">
<div class="event-data">
<strong>Saturday, November 30</strong> &middot; 9a
</div>
diff --git a/static/styles.css b/static/styles.css
index a524ed1..6733e70 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -222,3 +222,6 @@ hr {
background: #fdd;
}
+.changed {
+ background: #fffbdd;
+}