Files
placeholder/index.html
T

78 lines
2.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Site Under Construction</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<div class="banner">🚧</div>
<h1>Service Temporarily Down</h1>
<p class="subtitle">This site is currently under construction.</p>
<p class="note">Were working on something better. Please check back soon.</p>
<div class="visitor-panel">
<h2>Recent Visitors</h2>
<p class="visitor-note">Showing the last 50 visitors. IP octets are masked for privacy.</p>
<div class="table-wrap">
<table id="visitors">
<thead>
<tr>
<th>#</th>
<th>IP Address</th>
<th>Location</th>
<th>Time</th>
</tr>
</thead>
<tbody id="visitor-body">
<!-- Populated by JS (static demo below) -->
</tbody>
</table>
</div>
<button id="refresh" class="btn">Refresh</button>
</div>
<footer>Protected access · Visitor logging is masked for privacy</footer>
</div>
<script>
const DEMO = [
{ ip: "192.168.1.42", loc: "Overland Park, KS", time: "2026-06-18 07:12" },
{ ip: "10.0.10.55", loc: "Kansas City, MO", time: "2026-06-18 07:10" },
{ ip: "172.16.0.9", loc: "Olathe, KS", time: "2026-06-18 07:05" },
{ ip: "192.168.2.201", loc: "Lenexa, KS", time: "2026-06-18 06:58" },
{ ip: "10.20.30.40", loc: " Shawnee, KS", time: "2026-06-18 06:50" }
];
function maskIp(ip) {
const parts = ip.split('.');
if (parts.length !== 4) return '****';
return `${parts[0]}.***.***`;
}
function render(rows) {
const body = document.getElementById('visitor-body');
body.innerHTML = '';
rows.slice(0, 50).forEach((row, idx) => {
const tr = document.createElement('tr');
tr.innerHTML = `
<td>${idx + 1}</td>
<td class="mono">${maskIp(row.ip)}</td>
<td>${row.loc}</td>
<td>${row.time}</td>
`;
body.appendChild(tr);
});
}
document.getElementById('refresh').addEventListener('click', () => {
render(DEMO);
});
render(DEMO);
</script>
</body>
</html>