<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" id="favicon" href="/flw/favicon.png">
<title>No Internet</title>
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
iframe {
border: none;
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
display: block;
}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1QGZ7TXTPV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-1QGZ7TXTPV');
</script>
<!--<script data-ad-client="ca-pub-5973885450501896" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>-->
</head>
<body>
<iframe id="browserFrame" src=""></iframe>
<script>
function setCookie(name, value, hours) {
const date = new Date();
date.setTime(date.getTime() + (hours * 60 * 60 * 1000));
const expires = "expires=" + date.toUTCString();
document.cookie = name + "=" + value + ";" + expires + ";path=/";
}
function getCookie(name) {
const decodedCookie = decodeURIComponent(document.cookie);
const cookieArray = decodedCookie.split(';');
for (let i = 0; i < cookieArray.length; i++) {
let cookie = cookieArray[i].trim();
if (cookie.indexOf(name + "=") === 0) {
return cookie.substring(name.length + 1, cookie.length);
}
}
return "";
}
function getRandomPage() {
const randomIndex = Math.floor(Math.random() * 11) + 1;
return `generic/${randomIndex}.html`;
}
function detectBrowser() {
const ua = navigator.userAgent;
if (ua.indexOf("Chrome") > -1 && ua.indexOf("Edg") === -1 && ua.indexOf("OPR") === -1) {
return "chrome/";
} else if (ua.indexOf("Safari") > -1 && ua.indexOf("Chrome") === -1) {
return "safari/";
} else if (ua.indexOf("Firefox") > -1) {
return "firefox/";
} else if (ua.indexOf("Edg") > -1) {
return "edge/";
} else if (ua.indexOf("OPR") > -1 || ua.indexOf("Opera") > -1) {
return "opera/";
} else {
let selectedPage = getCookie("selectedGenericPage");
if (!selectedPage) {
selectedPage = getRandomPage();
setCookie("selectedGenericPage", selectedPage, 24);
}
return selectedPage;
}
}
function updateParentTitle() {
const iframe = document.getElementById("browserFrame");
try {
// Check if the iframe content is accessible (same-origin policy)
const iframeTitle = iframe.contentDocument.title;
if (iframeTitle) {
document.title = iframeTitle;
}
} catch (e) {
console.warn("Unable to access iframe content due to cross-origin restrictions.");
}
}
// Set the iframe src based on browser detection
const iframeSrc = detectBrowser();
document.getElementById("browserFrame").src = iframeSrc;
// Update the parent title when iframe loads, if same-origin
document.getElementById("browserFrame").onload = updateParentTitle;
</script>
<!-- © Photricity Web Design (photricity.com) -->
</body>
</html>