Add quick exit functionality to prevent navigation back to the site after a user exits. Implemented in multiple HTML files and updated script.js for session management.

This commit is contained in:
blake committed 2026-09-29 15:20:57 -05:00
1 parent a772e454e6
commit 9d9b6ed918
12 files changed
+188

No files matched your search

+12
View File
@@ -2,6 +2,18 @@
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<script>
(function () {
try {
var navigation = performance.getEntriesByType("navigation")[0];
var type = navigation && navigation.type;
if (type === "back_forward" && sessionStorage.getItem("quick-exit") === "1") {
document.documentElement.hidden = true;
location.replace("https://www.google.com/");
}
} catch (error) {}
})();
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="referrer" content="no-referrer" />
<meta name="description" content="Learn how Whispers of Love, Hope, and Joy began, what guides its work, and how its community continues to grow across Northwest Iowa." />