diff --git a/.htaccess b/.htaccess index 01a5e16..7e5e626 100644 --- a/.htaccess +++ b/.htaccess @@ -4,8 +4,22 @@ ErrorDocument 404 /404.html RewriteEngine On + + # One public host: https://whispersoflhj.org/ + RewriteCond %{HTTP_HOST} ^(?:www\.)?whispersoflhj\.(?:com|org)(?::\d+)?$ [NC] + RewriteCond %{HTTPS} !=on [OR] + RewriteCond %{HTTP_HOST} !^whispersoflhj\.org(?::\d+)?$ [NC] + RewriteRule ^ https://whispersoflhj.org%{REQUEST_URI} [R=301,L,NE] + RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L,NE] + + # Benefit brunch: after the morning of October 11, 2026 on the server clock, + # send /events/ home and mark that response noindex. %{TIME} follows the server + # timezone, so this is the morning after the brunch in US time zones. + # Keep 20261011060000 in sync with endsAt in script.js (2026-10-11T05:00:00Z). + RewriteCond expr "%{TIME} >= 20261011060000" + RewriteRule ^events(?:/index\.html)?/?$ / [R=302,L,E=brunch_over:1] @@ -25,6 +39,7 @@ ErrorDocument 404 /404.html Header always set Strict-Transport-Security "max-age=31536000" Header always set X-Content-Type-Options "nosniff" Header always set X-Frame-Options "DENY" + Header always set X-Robots-Tag "noindex" env=brunch_over diff --git a/README.md b/README.md index 0916f8e..62e3ab0 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,8 @@ The website has no build process, package manager, database, or server-side appl ## Hosting +The public site is [https://whispersoflhj.org/](https://whispersoflhj.org/). `.htaccess` redirects `www.whispersoflhj.org` and `whispersoflhj.com` to that host and sends HTTP requests to HTTPS. + The production server should support Apache `.htaccess` directives for: - HTTPS redirects @@ -63,6 +65,14 @@ The production server should support Apache `.htaccess` directives for: - Compression and browser caching - Redirects from previous page URLs +## Benefit Brunch + +The October 10, 2026 brunch stays up through the end of that Saturday, US Central time. At midnight, the announcement comes down on its own. + +`/events/` then sends people home. The events page does that before it paints, and Apache redirects the URL with `noindex` so crawlers do not keep it. The date, place, and ticket copy can stay in `events/index.html`. After that night, the page is no longer served. + +The cutoff is `2026-10-11T05:00:00Z` in `script.js` and `events/index.html`. `.htaccess` uses `20261011060000`, which follows the server clock and falls on the morning after the brunch in US time zones. For a later event, change those three together and replace the copy on the events page. + ## Privacy This repository must not contain credentials, private client documents, unapproved photographs, survivor information, or other confidential material. diff --git a/accessibility/index.html b/accessibility/index.html index 7ddb6ca..9e410af 100644 --- a/accessibility/index.html +++ b/accessibility/index.html @@ -21,7 +21,14 @@ - + + + + + + + + diff --git a/events/index.html b/events/index.html index 550328c..4c3a352 100644 --- a/events/index.html +++ b/events/index.html @@ -10,8 +10,15 @@ if (type === "back_forward" && sessionStorage.getItem("quick-exit") === "1") { document.documentElement.hidden = true; location.replace("https://www.google.com/"); + return; } } catch (error) {} + + var brunchEndsAt = Date.parse("2026-10-11T05:00:00Z"); + if (isFinite(brunchEndsAt) && Date.now() >= brunchEndsAt) { + document.documentElement.hidden = true; + location.replace("../"); + } })(); @@ -21,7 +28,14 @@ - + + + + + + + + diff --git a/get-help/index.html b/get-help/index.html index ef531f4..b0d3252 100644 --- a/get-help/index.html +++ b/get-help/index.html @@ -21,7 +21,14 @@ - + + + + + + + + diff --git a/get-involved/index.html b/get-involved/index.html index aeefc39..bd71f45 100644 --- a/get-involved/index.html +++ b/get-involved/index.html @@ -21,7 +21,14 @@ - + + + + + + + + diff --git a/img/share.png b/img/share.png new file mode 100644 index 0000000..a1f57df Binary files /dev/null and b/img/share.png differ diff --git a/index.html b/index.html index c0119e8..dc9c1a6 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,14 @@ - + + + + + + + + diff --git a/privacy/index.html b/privacy/index.html index fdabfa0..cdcc4e2 100644 --- a/privacy/index.html +++ b/privacy/index.html @@ -21,7 +21,14 @@ - + + + + + + + + diff --git a/script.js b/script.js index 5b8058a..b2a7299 100644 --- a/script.js +++ b/script.js @@ -6,14 +6,21 @@ const QUICK_EXIT_URL = "https://www.google.com/"; const QUICK_EXIT_KEY = "quick-exit"; const MOBILE_NAV_QUERY = window.matchMedia("(max-width: 88em)"); -// Flip active to false when there is no event. That clears the -// announcement and sends anyone on the events page back home. +// Benefit Brunch stays up through Saturday, October 10, 2026, US Central time. +// endsAt is midnight at the start of Sunday (CDT, UTC−5). +// After that, the announcement comes down and /events/ sends visitors home. +// Keep this instant in sync with the events page head script and the .htaccess brunch rule. const eventAnnouncement = { - active: true, label: "Benefit Brunch", date: "Oct 10", + endsAt: "2026-10-11T05:00:00Z", }; +function eventIsActive() { + const endsAt = Date.parse(eventAnnouncement.endsAt); + return Number.isFinite(endsAt) && Date.now() < endsAt; +} + function navigationType() { const navigation = performance.getEntriesByType("navigation")[0]; return navigation ? navigation.type : ""; @@ -67,11 +74,11 @@ function isEventsPage() { return /\/events\/(?:index\.html)?$/.test(window.location.pathname); } -if (!eventAnnouncement.active && isEventsPage()) { +if (!eventIsActive() && isEventsPage()) { document.documentElement.hidden = true; const home = "../".repeat(directoryDepth()); window.location.replace(home || "./"); -} else if (eventAnnouncement.active) { +} else if (eventIsActive()) { const href = `${"../".repeat(directoryDepth())}events/`; document.querySelectorAll(".announcement-message").forEach((message) => { diff --git a/shop-church/index.html b/shop-church/index.html index 7144384..2be343b 100644 --- a/shop-church/index.html +++ b/shop-church/index.html @@ -21,7 +21,14 @@ - + + + + + + + + diff --git a/staying-safe/index.html b/staying-safe/index.html index b1b80c3..2ca367d 100644 --- a/staying-safe/index.html +++ b/staying-safe/index.html @@ -21,7 +21,14 @@ - + + + + + + + + diff --git a/talitha-koum/index.html b/talitha-koum/index.html index 549e624..de5a3d7 100644 --- a/talitha-koum/index.html +++ b/talitha-koum/index.html @@ -21,7 +21,14 @@ - + + + + + + + + diff --git a/what-we-do/index.html b/what-we-do/index.html index 95e2cad..d437339 100644 --- a/what-we-do/index.html +++ b/what-we-do/index.html @@ -21,7 +21,14 @@ - + + + + + + + + diff --git a/who-we-are/index.html b/who-we-are/index.html index 3c49fcf..c7f3031 100644 --- a/who-we-are/index.html +++ b/who-we-are/index.html @@ -21,7 +21,14 @@ - + + + + + + + +