glass/src/app/header.html
2025-07-09 22:43:28 +09:00

34 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-security-policy" content="script-src 'self' 'unsafe-inline'" />
<title>Pickle Glass Header</title>
<style>
html,
body {
margin: 0;
padding: 0;
overflow: hidden;
background: transparent;
}
</style>
</head>
<body>
<div id="header-container" tabindex="0" style="outline: none;">
</div>
<script type="module" src="../../public/build/header.js"></script>
<script>
const params = new URLSearchParams(window.location.search);
if (params.get('glass') === 'true') {
document.body.classList.add('has-glass');
// --- ADDED: Link to centralized glass-bypass styles ---
const link = document.createElement('link');
link.rel = 'stylesheet';
link.href = '../common/styles/glass-bypass.css';
document.head.appendChild(link);
}
</script>
</body>
</html>