Files
netrunner-landing/public/doom.html
2026-05-11 15:12:26 +07:00

181 lines
4.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Netrunner Station | DOOM OS</title>
<link rel="stylesheet" href="https://v8.js-dos.com/latest/js-dos.css" />
<style>
:root {
--neon-blue: #00f2fe;
--neon-green: #39ff14;
--dark-bg: #05050a;
}
body,
html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: var(--dark-bg);
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
font-family: "Courier New", monospace;
}
/* Фоновая сетка */
body::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background-image:
linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
background-size: 30px 30px;
z-index: -1;
}
/* Основная рама консоли */
#cyber-frame {
position: relative;
width: 92vw;
height: 82vh;
border: 2px solid var(--neon-blue);
background: #000;
box-shadow:
0 0 40px rgba(0, 242, 254, 0.2),
inset 0 0 20px rgba(0, 242, 254, 0.2);
padding: 10px;
display: flex;
flex-direction: column;
}
/* Декоративные уголки */
#cyber-frame::before,
#cyber-frame::after {
content: "EXT-2049";
position: absolute;
top: -15px;
left: 20px;
background: var(--dark-bg);
color: var(--neon-blue);
padding: 0 10px;
font-size: 10px;
letter-spacing: 2px;
}
/* Эффект шума и линий на мониторе */
.crt-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
linear-gradient(
90deg,
rgba(255, 0, 0, 0.03),
rgba(0, 255, 0, 0.01),
rgba(0, 0, 255, 0.03)
);
background-size:
100% 3px,
3px 100%;
pointer-events: none;
z-index: 100;
}
#dos {
width: 100%;
height: 100%;
}
/* Техническая инфо-панель сверху */
.top-bar {
display: flex;
justify-content: space-between;
color: var(--neon-blue);
font-size: 11px;
margin-bottom: 5px;
border-bottom: 1px solid rgba(0, 242, 254, 0.3);
padding-bottom: 5px;
}
/* Нижний статус-бар */
.status-bar {
margin-top: 10px;
display: flex;
justify-content: space-between;
color: var(--neon-green);
font-size: 10px;
text-transform: uppercase;
}
.scanner {
color: var(--neon-blue);
animation: blink 1s infinite;
}
@keyframes blink {
50% {
opacity: 0.3;
}
}
/* Стилизация полос прокрутки и элементов js-dos */
.jsdos-side-panel {
background: rgba(0, 0, 0, 0.9) !important;
border-right: 1px solid var(--neon-blue);
}
</style>
</head>
<body>
<div id="cyber-frame">
<div class="crt-overlay"></div>
<div class="top-bar">
<div>CORE: 0x8F-NETRUNNER // STATION_ID: _NODE_01</div>
<div class="scanner">● DECRYPTING_GAME_DATA...</div>
</div>
<div id="dos"></div>
<div class="status-bar">
<div>LATENCY: 12ms // MEM: 4096KB</div>
<div>STATION v8 // [STATUS: OPERATIONAL]</div>
</div>
</div>
<script src="https://v8.js-dos.com/latest/js-dos.js"></script>
<script>
window.onload = function () {
const container = document.getElementById("dos");
const player = Dos(container, {
url: "/games/doom.zip",
autoStart: true,
kiosk: false,
});
player.then((ci) => {
// Силовое включение джойстика для мобилок
if (/Mobi|Android|iPhone/i.test(navigator.userAgent)) {
ci.setLayersVisibility(true);
}
// Немного подкрутим цвета эмулятора под наш стиль через CSS инъекцию, если нужно
console.log("Netrunner Console Linked.");
});
};
</script>
</body>
</html>