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:
1 parent
a772e454e6
commit
9d9b6ed918
12 files changed
+188
No files matched your search
@@ -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="Practical safety-planning, technology-safety, and support resources for people experiencing domestic abuse in Northwest Iowa." />
|
||||
|
||||
Reference in new issue
Block a user