111 lines
3.6 KiB
HTML
111 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>The Matrix</title>
|
|
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<meta name="theme-color" content="#00ff41" />
|
|
|
|
<!-- iOS PWA -->
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
<meta name="apple-mobile-web-app-title" content="The Matrix" />
|
|
<link rel="apple-touch-icon" href="/icons/icon-192.png" />
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { background: #000; overflow: hidden; font-family: 'Courier New', monospace; }
|
|
canvas { display: block; }
|
|
#ui-overlay {
|
|
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
|
|
pointer-events: none; z-index: 10;
|
|
}
|
|
#hud {
|
|
position: fixed; top: 16px; left: 16px;
|
|
color: #00ff41; font-size: 12px; line-height: 1.6;
|
|
text-shadow: 0 0 8px #00ff41;
|
|
pointer-events: none;
|
|
}
|
|
#hud h1 { font-size: 16px; letter-spacing: 4px; margin-bottom: 8px; color: #00ff88; }
|
|
#status-panel {
|
|
position: fixed; top: 16px; right: 16px;
|
|
color: #00ff41; font-size: 11px; line-height: 1.8;
|
|
text-shadow: 0 0 6px #00ff41; max-width: 240px;
|
|
}
|
|
#chat-panel {
|
|
position: fixed; bottom: 16px; left: 16px; right: 16px;
|
|
max-height: 180px; overflow-y: auto;
|
|
color: #00ff41; font-size: 11px; line-height: 1.6;
|
|
text-shadow: 0 0 4px #00ff41;
|
|
pointer-events: none;
|
|
}
|
|
.chat-entry { opacity: 0.8; }
|
|
.chat-entry .agent-name { color: #00ff88; font-weight: bold; }
|
|
.chat-ts { color: #004d18; font-size: 10px; }
|
|
#connection-status {
|
|
position: fixed; bottom: 16px; right: 16px;
|
|
font-size: 11px; color: #555;
|
|
pointer-events: none;
|
|
}
|
|
#connection-status.connected { color: #00ff41; text-shadow: 0 0 6px #00ff41; }
|
|
#chat-clear-btn {
|
|
position: fixed; bottom: 16px; right: 110px;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 10px; color: #004d18;
|
|
background: transparent; border: 1px solid #004d18;
|
|
padding: 2px 6px; cursor: pointer;
|
|
pointer-events: all; z-index: 20;
|
|
text-shadow: none;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
#chat-clear-btn:hover { color: #00ff41; border-color: #00ff41; }
|
|
|
|
/* WebGL context-loss recovery overlay */
|
|
#webgl-recovery-overlay {
|
|
display: none;
|
|
position: fixed; inset: 0; z-index: 200;
|
|
background: rgba(0, 0, 0, 0.88);
|
|
justify-content: center;
|
|
align-items: center;
|
|
pointer-events: none;
|
|
}
|
|
#webgl-recovery-overlay .recovery-text {
|
|
color: #00ff41;
|
|
font-family: 'Courier New', monospace;
|
|
font-size: 16px;
|
|
letter-spacing: 3px;
|
|
text-shadow: 0 0 18px #00ff41, 0 0 6px #00ff41;
|
|
animation: ctx-blink 1.2s step-end infinite;
|
|
}
|
|
@keyframes ctx-blink {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.25; }
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="ui-overlay">
|
|
<div id="hud">
|
|
<h1>TIMMY TOWER WORLD</h1>
|
|
<div id="agent-count">AGENTS: 0</div>
|
|
<div id="active-jobs">JOBS: 0</div>
|
|
<div id="fps">FPS: --</div>
|
|
</div>
|
|
<div id="status-panel">
|
|
<div id="agent-list"></div>
|
|
</div>
|
|
<div id="chat-panel"></div>
|
|
<div id="connection-status">OFFLINE</div>
|
|
</div>
|
|
|
|
<button id="chat-clear-btn" title="Clear chat history">CLEAR</button>
|
|
|
|
<div id="webgl-recovery-overlay">
|
|
<span class="recovery-text">GPU context lost — recovering...</span>
|
|
</div>
|
|
|
|
<script type="module" src="./js/main.js"></script>
|
|
</body>
|
|
</html>
|