Implement giveaway closure logic with new giveaway-gate.js, update .htaccess for redirection after giveaway ends, and modify index.html and styles to reflect giveaway status. Enhance script.js to manage giveaway timer and visibility of related elements.

This commit is contained in:
blake committed 2026-10-23 11:14:02 -05:00
1 parent e376355464
commit 4a7d0a2665
6 files changed
+57 -22

No files matched your search

+7
View File
@@ -5,6 +5,13 @@ DirectorySlash Off
<IfModule mod_rewrite.c>
RewriteEngine On
# Giveaway stays up through the end of November 1, 2026 (Central),
# which is 2026-11-02 06:00:00 UTC. After that, /giveaway sends visitors home.
# This redirect is temporary so the page can be reused: update this timestamp
# together with GIVEAWAY_CLOSE in giveaway-gate.js.
RewriteCond %{TIME} >=20261102060000
RewriteRule ^giveaway(?:/index\.html)?/?$ / [R=302,L]
# Old /html/... addresses
RewriteRule ^html/services/([^/]+)/?(?:index\.html)?$ /services/$1 [R=301,L]
RewriteRule ^html/(about|giveaway)/?(?:index\.html)?$ /$1 [R=301,L]