Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +530 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: my-generic-space
|
3 |
+
emoji: π³
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: blue
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,530 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>OilRig Crew :: Terminal</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');
|
11 |
+
|
12 |
+
:root {
|
13 |
+
--base03: #002b36;
|
14 |
+
--base02: #073642;
|
15 |
+
--base01: #586e75;
|
16 |
+
--base00: #657b83;
|
17 |
+
--base0: #839496;
|
18 |
+
--base1: #93a1a1;
|
19 |
+
--base2: #eee8d5;
|
20 |
+
--base3: #fdf6e3;
|
21 |
+
--yellow: #b58900;
|
22 |
+
--orange: #cb4b16;
|
23 |
+
--red: #dc322f;
|
24 |
+
--magenta: #d33682;
|
25 |
+
--violet: #6c71c4;
|
26 |
+
--blue: #268bd2;
|
27 |
+
--cyan: #2aa198;
|
28 |
+
--green: #859900;
|
29 |
+
}
|
30 |
+
|
31 |
+
body {
|
32 |
+
font-family: 'Source Code Pro', monospace;
|
33 |
+
background-color: var(--base03);
|
34 |
+
color: var(--base0);
|
35 |
+
overflow-x: hidden;
|
36 |
+
height: 100vh;
|
37 |
+
margin: 0;
|
38 |
+
padding: 0;
|
39 |
+
user-select: none;
|
40 |
+
}
|
41 |
+
|
42 |
+
.terminal {
|
43 |
+
background-color: var(--base02);
|
44 |
+
border: 1px solid var(--base01);
|
45 |
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
|
46 |
+
border-radius: 5px;
|
47 |
+
height: 70vh;
|
48 |
+
min-height: 500px;
|
49 |
+
width: 80vw;
|
50 |
+
min-width: 800px;
|
51 |
+
margin: 0;
|
52 |
+
padding: 20px;
|
53 |
+
position: absolute;
|
54 |
+
overflow: hidden;
|
55 |
+
resize: both;
|
56 |
+
cursor: move;
|
57 |
+
}
|
58 |
+
|
59 |
+
.terminal-header {
|
60 |
+
display: flex;
|
61 |
+
justify-content: space-between;
|
62 |
+
align-items: center;
|
63 |
+
margin-bottom: 15px;
|
64 |
+
border-bottom: 1px solid var(--base01);
|
65 |
+
padding-bottom: 10px;
|
66 |
+
cursor: move;
|
67 |
+
}
|
68 |
+
|
69 |
+
.terminal-title {
|
70 |
+
color: var(--cyan);
|
71 |
+
font-weight: bold;
|
72 |
+
font-size: 1.1rem;
|
73 |
+
}
|
74 |
+
|
75 |
+
.terminal-controls span {
|
76 |
+
display: inline-block;
|
77 |
+
width: 12px;
|
78 |
+
height: 12px;
|
79 |
+
border-radius: 50%;
|
80 |
+
margin-left: 5px;
|
81 |
+
cursor: pointer;
|
82 |
+
}
|
83 |
+
|
84 |
+
.control-close { background-color: var(--red); }
|
85 |
+
.control-minimize { background-color: var(--yellow); }
|
86 |
+
.control-maximize { background-color: var(--green); }
|
87 |
+
|
88 |
+
.prompt {
|
89 |
+
color: var(--green);
|
90 |
+
margin-right: 10px;
|
91 |
+
}
|
92 |
+
|
93 |
+
.cursor {
|
94 |
+
display: inline-block;
|
95 |
+
width: 10px;
|
96 |
+
height: 20px;
|
97 |
+
background-color: var(--base0);
|
98 |
+
animation: blink 1s infinite;
|
99 |
+
vertical-align: middle;
|
100 |
+
}
|
101 |
+
|
102 |
+
@keyframes blink {
|
103 |
+
0%, 100% { opacity: 1; }
|
104 |
+
50% { opacity: 0; }
|
105 |
+
}
|
106 |
+
|
107 |
+
.command {
|
108 |
+
color: var(--blue);
|
109 |
+
}
|
110 |
+
|
111 |
+
.output {
|
112 |
+
margin: 10px 0;
|
113 |
+
line-height: 1.5;
|
114 |
+
white-space: pre-wrap;
|
115 |
+
}
|
116 |
+
|
117 |
+
.ascii-art {
|
118 |
+
color: var(--cyan);
|
119 |
+
line-height: 1.2;
|
120 |
+
font-size: 0.6rem;
|
121 |
+
margin: 15px 0;
|
122 |
+
}
|
123 |
+
|
124 |
+
.link {
|
125 |
+
color: var(--blue);
|
126 |
+
text-decoration: underline;
|
127 |
+
cursor: pointer;
|
128 |
+
}
|
129 |
+
|
130 |
+
.link:hover {
|
131 |
+
color: var(--cyan);
|
132 |
+
}
|
133 |
+
|
134 |
+
.glitch {
|
135 |
+
position: relative;
|
136 |
+
}
|
137 |
+
|
138 |
+
.glitch::before, .glitch::after {
|
139 |
+
content: attr(data-text);
|
140 |
+
position: absolute;
|
141 |
+
top: 0;
|
142 |
+
left: 0;
|
143 |
+
width: 100%;
|
144 |
+
height: 100%;
|
145 |
+
}
|
146 |
+
|
147 |
+
.glitch::before {
|
148 |
+
left: 2px;
|
149 |
+
text-shadow: -2px 0 var(--magenta);
|
150 |
+
clip: rect(24px, 550px, 90px, 0);
|
151 |
+
animation: glitch-anim-1 2s infinite linear alternate-reverse;
|
152 |
+
}
|
153 |
+
|
154 |
+
.glitch::after {
|
155 |
+
left: -2px;
|
156 |
+
text-shadow: -2px 0 var(--cyan);
|
157 |
+
clip: rect(85px, 550px, 140px, 0);
|
158 |
+
animation: glitch-anim-2 2s infinite linear alternate-reverse;
|
159 |
+
}
|
160 |
+
|
161 |
+
@keyframes glitch-anim-1 {
|
162 |
+
0% { clip: rect(32px, 9999px, 76px, 0); }
|
163 |
+
20% { clip: rect(108px, 9999px, 23px, 0); }
|
164 |
+
40% { clip: rect(91px, 9999px, 29px, 0); }
|
165 |
+
60% { clip: rect(98px, 9999px, 52px, 0); }
|
166 |
+
80% { clip: rect(60px, 9999px, 74px, 0); }
|
167 |
+
100% { clip: rect(38px, 9999px, 60px, 0); }
|
168 |
+
}
|
169 |
+
|
170 |
+
@keyframes glitch-anim-2 {
|
171 |
+
0% { clip: rect(65px, 9999px, 119px, 0); }
|
172 |
+
20% { clip: rect(25px, 9999px, 145px, 0); }
|
173 |
+
40% { clip: rect(50px, 9999px, 41px, 0); }
|
174 |
+
60% { clip: rect(30px, 9999px, 92px, 0); }
|
175 |
+
80% { clip: rect(82px, 9999px, 73px, 0); }
|
176 |
+
100% { clip: rect(60px, 9999px, 87px, 0); }
|
177 |
+
}
|
178 |
+
|
179 |
+
.scanlines {
|
180 |
+
position: absolute;
|
181 |
+
top: 0;
|
182 |
+
left: 0;
|
183 |
+
width: 100%;
|
184 |
+
height: 100%;
|
185 |
+
background: linear-gradient(
|
186 |
+
to bottom,
|
187 |
+
rgba(0, 0, 0, 0.1) 0%,
|
188 |
+
rgba(0, 0, 0, 0.1) 50%,
|
189 |
+
transparent 50%
|
190 |
+
);
|
191 |
+
background-size: 100% 3px;
|
192 |
+
pointer-events: none;
|
193 |
+
z-index: 10;
|
194 |
+
}
|
195 |
+
|
196 |
+
.typing {
|
197 |
+
border-right: 2px solid var(--green);
|
198 |
+
animation: blink-caret 0.75s step-end infinite;
|
199 |
+
}
|
200 |
+
|
201 |
+
@keyframes blink-caret {
|
202 |
+
from, to { border-color: transparent; }
|
203 |
+
50% { border-color: var(--green); }
|
204 |
+
}
|
205 |
+
|
206 |
+
.resize-handle {
|
207 |
+
position: absolute;
|
208 |
+
right: 0;
|
209 |
+
bottom: 0;
|
210 |
+
width: 20px;
|
211 |
+
height: 20px;
|
212 |
+
background: var(--base01);
|
213 |
+
cursor: nwse-resize;
|
214 |
+
z-index: 20;
|
215 |
+
}
|
216 |
+
|
217 |
+
#background-grid {
|
218 |
+
position: fixed;
|
219 |
+
top: 0;
|
220 |
+
left: 0;
|
221 |
+
width: 100%;
|
222 |
+
height: 100%;
|
223 |
+
background-image:
|
224 |
+
linear-gradient(var(--base01) 1px, transparent 1px),
|
225 |
+
linear-gradient(90deg, var(--base01) 1px, transparent 1px);
|
226 |
+
background-size: 40px 40px;
|
227 |
+
z-index: -1;
|
228 |
+
opacity: 0.2;
|
229 |
+
}
|
230 |
+
|
231 |
+
#watermark {
|
232 |
+
position: fixed;
|
233 |
+
bottom: 10px;
|
234 |
+
right: 10px;
|
235 |
+
color: var(--base01);
|
236 |
+
font-size: 0.8rem;
|
237 |
+
z-index: -1;
|
238 |
+
}
|
239 |
+
</style>
|
240 |
+
</head>
|
241 |
+
<body>
|
242 |
+
<div id="background-grid"></div>
|
243 |
+
<div id="watermark">OILRIG TERMINAL v2.4.1</div>
|
244 |
+
|
245 |
+
<div class="terminal" id="terminal-window">
|
246 |
+
<div class="scanlines"></div>
|
247 |
+
<div class="terminal-header" id="terminal-header">
|
248 |
+
<div class="terminal-title">OilRig Crew Terminal v2.4.1</div>
|
249 |
+
<div class="terminal-controls">
|
250 |
+
<span class="control-close" id="control-close"></span>
|
251 |
+
<span class="control-minimize" id="control-minimize"></span>
|
252 |
+
<span class="control-maximize" id="control-maximize"></span>
|
253 |
+
</div>
|
254 |
+
</div>
|
255 |
+
|
256 |
+
<div class="ascii-art">
|
257 |
+
<pre>
|
258 |
+
___ _ _ _ ____ ___ _____
|
259 |
+
/ _ \ | | | || | | _ \ / _ \ |_ _|
|
260 |
+
| | | || | | || | | |_) | | | | | |
|
261 |
+
| | | || | | || |___ | _ <| |_| | | |
|
262 |
+
\___/ |_| |_||_____||_| \_\\___/ |_|
|
263 |
+
</pre>
|
264 |
+
</div>
|
265 |
+
|
266 |
+
<div class="output">
|
267 |
+
<span class="text-yellow-400">SYSTEM INITIALIZED</span> - Solaris OS v4.2.1<br>
|
268 |
+
<span class="text-green-400">SECURE CONNECTION ESTABLISHED</span> - AES-256 Encrypted<br>
|
269 |
+
<span class="text-blue-400">REMOTE ACCESS GRANTED</span> - Welcome back, Operator<br><br>
|
270 |
+
|
271 |
+
<span class="text-cyan-400">OilRig Crew Manifest v2.0</span><br>
|
272 |
+
------------------------------<br>
|
273 |
+
<span class="text-green-400">> </span>Deep Sea Operations<br>
|
274 |
+
<span class="text-green-400">> </span>Offshore Drilling<br>
|
275 |
+
<span class="text-green-400">> </span>Subsurface Exploration<br>
|
276 |
+
<span class="text-green-400">> </span>Resource Extraction<br>
|
277 |
+
<span class="text-green-400">> </span>Black Site Maintenance<br><br>
|
278 |
+
|
279 |
+
<span class="text-red-400">WARNING:</span> Unauthorized access will be met with immediate countermeasures.<br>
|
280 |
+
All activities are logged and monitored by <span class="glitch" data-text="OVERWATCH">OVERWATCH</span>.<br><br>
|
281 |
+
|
282 |
+
Type <span class="command">help</span> for available commands.
|
283 |
+
</div>
|
284 |
+
|
285 |
+
<div class="input-line flex items-center">
|
286 |
+
<span class="prompt">[root@oilrig ~]#</span>
|
287 |
+
<input type="text" id="command-input" class="bg-transparent border-none outline-none flex-grow text-green-400" autofocus>
|
288 |
+
<span class="cursor"></span>
|
289 |
+
</div>
|
290 |
+
|
291 |
+
<div id="output-container" class="overflow-y-auto max-h-[40vh]"></div>
|
292 |
+
<div class="resize-handle" id="resize-handle"></div>
|
293 |
+
</div>
|
294 |
+
|
295 |
+
<script>
|
296 |
+
document.addEventListener('DOMContentLoaded', function() {
|
297 |
+
const terminal = document.getElementById('terminal-window');
|
298 |
+
const terminalHeader = document.getElementById('terminal-header');
|
299 |
+
const commandInput = document.getElementById('command-input');
|
300 |
+
const outputContainer = document.getElementById('output-container');
|
301 |
+
const closeBtn = document.getElementById('control-close');
|
302 |
+
const minimizeBtn = document.getElementById('control-minimize');
|
303 |
+
const maximizeBtn = document.getElementById('control-maximize');
|
304 |
+
const resizeHandle = document.getElementById('resize-handle');
|
305 |
+
|
306 |
+
// Make terminal draggable
|
307 |
+
let isDragging = false;
|
308 |
+
let offsetX, offsetY;
|
309 |
+
|
310 |
+
terminalHeader.addEventListener('mousedown', function(e) {
|
311 |
+
if (e.target === terminalHeader || e.target.classList.contains('terminal-title')) {
|
312 |
+
isDragging = true;
|
313 |
+
offsetX = e.clientX - terminal.getBoundingClientRect().left;
|
314 |
+
offsetY = e.clientY - terminal.getBoundingClientRect().top;
|
315 |
+
terminal.style.cursor = 'grabbing';
|
316 |
+
}
|
317 |
+
});
|
318 |
+
|
319 |
+
document.addEventListener('mousemove', function(e) {
|
320 |
+
if (!isDragging) return;
|
321 |
+
|
322 |
+
const x = e.clientX - offsetX;
|
323 |
+
const y = e.clientY - offsetY;
|
324 |
+
|
325 |
+
// Keep terminal within viewport
|
326 |
+
const maxX = window.innerWidth - terminal.offsetWidth;
|
327 |
+
const maxY = window.innerHeight - terminal.offsetHeight;
|
328 |
+
|
329 |
+
terminal.style.left = Math.min(Math.max(0, x), maxX) + 'px';
|
330 |
+
terminal.style.top = Math.min(Math.max(0, y), maxY) + 'px';
|
331 |
+
});
|
332 |
+
|
333 |
+
document.addEventListener('mouseup', function() {
|
334 |
+
isDragging = false;
|
335 |
+
terminal.style.cursor = 'move';
|
336 |
+
});
|
337 |
+
|
338 |
+
// Make terminal resizable
|
339 |
+
let isResizing = false;
|
340 |
+
|
341 |
+
resizeHandle.addEventListener('mousedown', function(e) {
|
342 |
+
isResizing = true;
|
343 |
+
e.preventDefault();
|
344 |
+
});
|
345 |
+
|
346 |
+
document.addEventListener('mousemove', function(e) {
|
347 |
+
if (!isResizing) return;
|
348 |
+
|
349 |
+
const width = e.clientX - terminal.getBoundingClientRect().left;
|
350 |
+
const height = e.clientY - terminal.getBoundingClientRect().top;
|
351 |
+
|
352 |
+
terminal.style.width = Math.max(600, width) + 'px';
|
353 |
+
terminal.style.height = Math.max(400, height) + 'px';
|
354 |
+
|
355 |
+
// Adjust output container height
|
356 |
+
outputContainer.style.maxHeight = (parseInt(terminal.style.height) - 300) + 'px';
|
357 |
+
});
|
358 |
+
|
359 |
+
document.addEventListener('mouseup', function() {
|
360 |
+
isResizing = false;
|
361 |
+
});
|
362 |
+
|
363 |
+
// Terminal controls
|
364 |
+
closeBtn.addEventListener('click', function() {
|
365 |
+
terminal.style.transform = 'scale(0.8)';
|
366 |
+
terminal.style.opacity = '0';
|
367 |
+
setTimeout(() => {
|
368 |
+
terminal.style.display = 'none';
|
369 |
+
document.body.style.backgroundColor = 'var(--base03)';
|
370 |
+
document.body.innerHTML = '<div class="text-center text-red-400 text-2xl mt-20">TERMINAL DISCONNECTED</div>';
|
371 |
+
}, 300);
|
372 |
+
});
|
373 |
+
|
374 |
+
minimizeBtn.addEventListener('click', function() {
|
375 |
+
terminal.style.transform = 'scale(0.9)';
|
376 |
+
terminal.style.opacity = '0.5';
|
377 |
+
setTimeout(() => {
|
378 |
+
terminal.style.display = 'none';
|
379 |
+
setTimeout(() => {
|
380 |
+
terminal.style.display = 'block';
|
381 |
+
terminal.style.transform = 'scale(1)';
|
382 |
+
terminal.style.opacity = '1';
|
383 |
+
}, 1000);
|
384 |
+
}, 300);
|
385 |
+
});
|
386 |
+
|
387 |
+
maximizeBtn.addEventListener('click', function() {
|
388 |
+
if (terminal.style.width === '90vw' && terminal.style.height === '90vh') {
|
389 |
+
terminal.style.width = '80vw';
|
390 |
+
terminal.style.height = '70vh';
|
391 |
+
terminal.style.left = '10vw';
|
392 |
+
terminal.style.top = '15vh';
|
393 |
+
} else {
|
394 |
+
terminal.style.width = '90vw';
|
395 |
+
terminal.style.height = '90vh';
|
396 |
+
terminal.style.left = '5vw';
|
397 |
+
terminal.style.top = '5vh';
|
398 |
+
}
|
399 |
+
outputContainer.style.maxHeight = (parseInt(terminal.style.height) - 300) + 'px';
|
400 |
+
});
|
401 |
+
|
402 |
+
// Position terminal initially
|
403 |
+
terminal.style.left = '10vw';
|
404 |
+
terminal.style.top = '15vh';
|
405 |
+
|
406 |
+
// Command processing
|
407 |
+
const commands = {
|
408 |
+
'help': 'Available commands: about, crew, projects, contact, clear, status, map, login, panic',
|
409 |
+
'about': 'OilRig Crew - Specialized in deep sea operations and resource extraction. Established 2008.',
|
410 |
+
'crew': 'Crew Members:\n- CAPTAIN: ββββββββ\n- ENGINEER: βββββ\n- GEOLOGIST: βββββββ\n- DIVER: ββββββββ\n- SYSTEMS: ββββββββ\n\n[ACCESS RESTRICTED]',
|
411 |
+
'projects': 'Active Projects:\n1. Project DEEPWELL (Status: Operational)\n2. Project BLACKTIDE (Status: Classified)\n3. Project SUNKEN (Status: In Development)\n\nType "projects [id]" for details',
|
412 |
+
'contact': 'Secure comms only. Use encrypted channels.\nFrequency: 147.870MHz\nEncryption Key: ORC-ββββ-2023',
|
413 |
+
'clear': function() { outputContainer.innerHTML = ''; },
|
414 |
+
'projects 1': 'Project DEEPWELL:\nLocation: ββββββββββββ\nDepth: 2,450m\nPurpose: Resource extraction\nStatus: Operational\n\n[FURTHER DETAILS CLASSIFIED]',
|
415 |
+
'projects 2': 'Project BLACKTIDE:\n[ACCESS DENIED]\nClearance level required: ORANGE-5',
|
416 |
+
'projects 3': 'Project SUNKEN:\nExperimental deep-sea habitat\nPhase: Testing\nETA: Q4 2023\n\n[LOGS CORRUPTED]',
|
417 |
+
'login': 'Already authenticated via secure channel.\nUser: OPERATOR\nAccess Level: 3\nPermissions: Read/Write',
|
418 |
+
'status': 'System Status:\n- Power: 98%\n- Pressure: Stable\n- Comms: Encrypted\n- Security: Active\n\nAll systems nominal.',
|
419 |
+
'map': 'Generating location map...\n\nββββββββββββββββββββ\nββββ YOU ARE HERE ββββ\nββββββββββββββββββββ\n\nCoordinates encrypted.',
|
420 |
+
'panic': function() {
|
421 |
+
outputContainer.innerHTML += '<div class="output text-red-400">EMERGENCY PROTOCOL INITIATED</div>';
|
422 |
+
outputContainer.innerHTML += '<div class="output text-red-400">PURGING DATA...</div>';
|
423 |
+
setTimeout(() => {
|
424 |
+
outputContainer.innerHTML += '<div class="output text-red-400">TERMINAL LOCKED</div>';
|
425 |
+
commandInput.disabled = true;
|
426 |
+
document.body.classList.add('bg-red-900');
|
427 |
+
setTimeout(() => {
|
428 |
+
outputContainer.innerHTML += '<div class="output text-yellow-400">SYSTEM REBOOTING...</div>';
|
429 |
+
setTimeout(() => {
|
430 |
+
location.reload();
|
431 |
+
}, 2000);
|
432 |
+
}, 2000);
|
433 |
+
}, 1500);
|
434 |
+
},
|
435 |
+
'echo': function(args) {
|
436 |
+
return args.join(' ');
|
437 |
+
},
|
438 |
+
'date': function() {
|
439 |
+
return new Date().toLocaleString();
|
440 |
+
},
|
441 |
+
'whoami': 'operator',
|
442 |
+
'uname': 'Solaris 4.2.1',
|
443 |
+
'ls': 'bin/ etc/ home/ logs/ projects/ secure/ tmp/',
|
444 |
+
'cd': 'Directory change not permitted in secure terminal.',
|
445 |
+
'sudo': 'Access denied. Insufficient privileges.',
|
446 |
+
'exit': 'Terminal session cannot be closed from within. Use physical disconnect.'
|
447 |
+
};
|
448 |
+
|
449 |
+
commandInput.addEventListener('keypress', function(e) {
|
450 |
+
if (e.key === 'Enter') {
|
451 |
+
const input = commandInput.value.trim();
|
452 |
+
commandInput.value = '';
|
453 |
+
|
454 |
+
// Display the command
|
455 |
+
outputContainer.innerHTML += `
|
456 |
+
<div class="input-line flex items-center">
|
457 |
+
<span class="prompt">[root@oilrig ~]#</span>
|
458 |
+
<span class="command">${input}</span>
|
459 |
+
</div>
|
460 |
+
`;
|
461 |
+
|
462 |
+
// Process the command
|
463 |
+
const parts = input.split(' ');
|
464 |
+
const cmd = parts[0].toLowerCase();
|
465 |
+
const args = parts.slice(1);
|
466 |
+
|
467 |
+
let response = 'Command not recognized. Type "help" for available commands.';
|
468 |
+
|
469 |
+
if (commands.hasOwnProperty(cmd)) {
|
470 |
+
if (typeof commands[cmd] === 'function') {
|
471 |
+
response = commands[cmd](args);
|
472 |
+
} else {
|
473 |
+
response = commands[cmd];
|
474 |
+
}
|
475 |
+
}
|
476 |
+
|
477 |
+
// Special Easter eggs
|
478 |
+
if (cmd === 'hello') {
|
479 |
+
response = '01001000 01100101 01101100 01101100 01101111 00100000 01110111 01101111 01110010 01101100 01100100';
|
480 |
+
}
|
481 |
+
|
482 |
+
if (cmd === 'matrix') {
|
483 |
+
response = 'Wake up, Operator...';
|
484 |
+
document.body.classList.add('bg-green-900');
|
485 |
+
setTimeout(() => {
|
486 |
+
document.body.classList.remove('bg-green-900');
|
487 |
+
}, 1000);
|
488 |
+
}
|
489 |
+
|
490 |
+
if (cmd === 'reboot') {
|
491 |
+
response = 'Initiating system reboot sequence...';
|
492 |
+
setTimeout(() => {
|
493 |
+
location.reload();
|
494 |
+
}, 2000);
|
495 |
+
}
|
496 |
+
|
497 |
+
// Display the response
|
498 |
+
outputContainer.innerHTML += `<div class="output">${response.replace(/\n/g, '<br>')}</div>`;
|
499 |
+
|
500 |
+
// Scroll to bottom
|
501 |
+
outputContainer.scrollTop = outputContainer.scrollHeight;
|
502 |
+
}
|
503 |
+
});
|
504 |
+
|
505 |
+
// Initial animation
|
506 |
+
setTimeout(() => {
|
507 |
+
outputContainer.innerHTML += `
|
508 |
+
<div class="output">
|
509 |
+
<span class="text-cyan-400">System Diagnostics:</span><br>
|
510 |
+
<span class="text-green-400">></span> Memory: 78% available<br>
|
511 |
+
<span class="text-green-400">></span> Storage: 42% utilized<br>
|
512 |
+
<span class="text-green-400">></span> Network: 5 active connections<br>
|
513 |
+
<span class="text-green-400">></span> Security: Firewall active<br>
|
514 |
+
<span class="text-green-400">></span> Sensors: All nominal<br><br>
|
515 |
+
|
516 |
+
<span class="text-yellow-400">Last system update: 24 hours ago</span><br>
|
517 |
+
<span class="text-blue-400">Next maintenance window: 48 hours</span>
|
518 |
+
</div>
|
519 |
+
`;
|
520 |
+
outputContainer.scrollTop = outputContainer.scrollHeight;
|
521 |
+
}, 1000);
|
522 |
+
|
523 |
+
// Focus input when clicking anywhere in terminal
|
524 |
+
terminal.addEventListener('click', function() {
|
525 |
+
commandInput.focus();
|
526 |
+
});
|
527 |
+
});
|
528 |
+
</script>
|
529 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 𧬠<a href="https://enzostvs-deepsite.hf.space?remix=gladiopeace/my-generic-space" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
530 |
+
</html>
|