Spaces:
Running
Running
File size: 18,158 Bytes
53d9e6c 9a794f8 53d9e6c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 | <!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>// SYSTEM ACCESS //</title>
<style>
:root{
--blue:#00e0ff;
--blue-dim:#0088cc;
--cyan:#7df9ff;
--red:#ff0033;
--red-bright:#ff2244;
--bg:#02060c;
}
*{margin:0;padding:0;box-sizing:border-box;}
html,body{width:100%;height:100%;overflow:hidden;background:#000;font-family:"Courier New","Share Tech Mono",monospace;}
body{cursor:default;user-select:none;}
/* ---------- MATRIX BACKGROUND ---------- */
#matrix{position:fixed;inset:0;z-index:0;opacity:.22;}
/* ---------- CRT OVERLAY ---------- */
#crt{
position:fixed;inset:0;z-index:50;pointer-events:none;
background:
repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0px, rgba(0,0,0,.22) 1px, transparent 1px, transparent 3px);
mix-blend-mode:multiply;
}
#crt::after{
content:"";position:absolute;inset:0;
background:radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
#flicker{position:fixed;inset:0;z-index:49;pointer-events:none;background:rgba(120,220,255,.025);
animation:flick 4s infinite steps(60);}
@keyframes flick{0%,100%{opacity:.4}50%{opacity:.8}52%{opacity:.2}54%{opacity:.7}}
/* ---------- SCREENS ---------- */
.screen{position:fixed;inset:0;z-index:10;display:none;flex-direction:column;align-items:center;justify-content:center;
padding:20px;color:var(--blue);text-shadow:0 0 6px var(--blue),0 0 18px rgba(0,224,255,.6);}
.screen.active{display:flex;}
.mono{font-family:"Courier New",monospace;}
/* ---------- BOOT ---------- */
#boot{text-align:left;justify-content:center;}
#boot .term{width:min(640px,94vw);font-size:15px;line-height:1.5;white-space:pre-wrap;}
#boot .term .ok{color:#39ff88;text-shadow:0 0 6px #39ff88;}
#boot .bar-wrap{width:min(640px,94vw);height:16px;border:1px solid var(--blue);margin-top:18px;padding:2px;
box-shadow:0 0 12px rgba(0,224,255,.4) inset;}
#boot .bar{height:100%;width:0%;background:var(--blue);box-shadow:0 0 12px var(--blue);transition:width .1s linear;}
#boot .pct{margin-top:8px;font-size:13px;color:var(--cyan);}
/* ---------- PASSWORD ---------- */
#pass .title{font-size:clamp(20px,4vw,34px);letter-spacing:4px;color:var(--cyan);}
#pass .sub{font-size:13px;color:var(--blue-dim);margin:6px 0 26px;letter-spacing:2px;}
#pass .prompt{font-size:clamp(16px,3vw,24px);}
#pass .prompt .cursor{display:inline-block;width:.6em;background:var(--blue);animation:blink 1s steps(1) infinite;}
#pass .typed{color:#fff;text-shadow:0 0 8px #fff;}
#pass .hint{margin-top:22px;font-size:12px;color:var(--blue-dim);opacity:.7;letter-spacing:1px;}
@keyframes blink{0%,49%{opacity:1}50%,100%{opacity:0}}
/* ---------- WARNING (RED) ---------- */
#warn{background:radial-gradient(ellipse at center, #1a0005 0%, #050000 70%);}
#warn .icon{font-size:clamp(90px,22vw,180px);color:var(--red);font-weight:bold;line-height:1;
text-shadow:0 0 20px var(--red),0 0 60px var(--red);animation:pulse .5s ease-in-out infinite;}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
#warn .warn-title{font-size:clamp(22px,5vw,42px);color:var(--red);letter-spacing:6px;margin-top:10px;
text-shadow:0 0 14px var(--red),0 0 40px var(--red);animation:blink .6s steps(1) infinite;}
#warn .del{font-size:clamp(13px,2.6vw,18px);color:#ff8899;margin-top:18px;letter-spacing:3px;}
#warn .count{font-size:clamp(90px,20vw,170px);color:var(--red-bright);font-weight:bold;margin-top:4px;
text-shadow:0 0 30px var(--red),0 0 80px var(--red);}
#warn .denied{font-size:13px;color:#ff5566;margin-top:14px;letter-spacing:2px;}
/* ---------- EXPLOSION ---------- */
#boom{background:#000;z-index:40;}
#boom .flash{position:absolute;inset:0;background:#fff;}
#boom .msg{font-size:clamp(20px,5vw,40px);color:#fff;letter-spacing:4px;text-shadow:0 0 20px #fff;}
/* ---------- MAIN (ACCESS GRANTED) ---------- */
#main{background:radial-gradient(ellipse at center, #02121a 0%, #010409 75%);}
#main .granted{font-size:clamp(26px,6vw,54px);color:#39ff88;letter-spacing:6px;text-shadow:0 0 18px #39ff88,0 0 50px #39ff88;}
#main .sub{font-size:14px;color:var(--cyan);margin-top:14px;letter-spacing:3px;}
#main .box{width:min(560px,92vw);margin-top:26px;border:1px solid var(--blue);padding:18px;text-align:left;
font-size:14px;line-height:1.7;color:var(--cyan);box-shadow:0 0 20px rgba(0,224,255,.25);}
#main .box .l{color:#39ff88;}
/* ---------- RESTART ---------- */
.restart{margin-top:30px;font-size:14px;color:var(--cyan);border:1px solid var(--cyan);padding:10px 24px;
cursor:pointer;letter-spacing:3px;background:transparent;font-family:inherit;
text-shadow:0 0 6px var(--cyan);box-shadow:0 0 12px rgba(0,224,255,.3);}
.restart:hover{background:var(--cyan);color:#000;text-shadow:none;}
.restart.red{border-color:var(--red);color:var(--red);text-shadow:0 0 6px var(--red);box-shadow:0 0 12px rgba(255,0,51,.4);}
.restart.red:hover{background:var(--red);color:#000;}
/* ---------- SHAKE ---------- */
.shake{animation:shake .12s linear infinite;}
@keyframes shake{
0%{transform:translate(0,0)}25%{transform:translate(-4px,3px)}
50%{transform:translate(4px,-3px)}75%{transform:translate(-3px,-4px)}100%{transform:translate(3px,4px)}
}
</style>
</head>
<body>
<canvas id="matrix"></canvas>
<div id="flicker"></div>
<div id="crt"></div>
<!-- BOOT -->
<div class="screen active" id="boot">
<div class="term" id="boot-term"></div>
<div class="bar-wrap"><div class="bar" id="boot-bar"></div></div>
<div class="pct" id="boot-pct">0%</div>
</div>
<!-- PASSWORD -->
<div class="screen" id="pass">
<div class="title">// RESTRICTED ACCESS //</div>
<div class="sub">SECURE TERMINAL v2.7.1</div>
<div class="prompt">ENTER PASSWORD: <span class="typed" id="typed"></span><span class="cursor"></span></div>
<div class="hint">[ ПАРОЛЬ ВВОДИТСЯ С КЛАВИАТУРЫ · ENTER ДЛЯ ПОДТВЕРЖДЕНИЯ ]</div>
</div>
<!-- WARNING -->
<div class="screen" id="warn">
<div class="icon">!</div>
<div class="warn-title">ДОСТУП ЗАПРЕЩЁН</div>
<div class="del">СИСТЕМА БУДЕТ УДАЛЕНА ЧЕРЕЗ:</div>
<div class="count" id="count">10</div>
<div class="denied">[ НЕСАНКЦИОНИРОВАННЫЙ ВХОД ОБНАРУЖЕН ]</div>
</div>
<!-- EXPLOSION -->
<div class="screen" id="boom">
<div class="flash" id="flash"></div>
<div class="msg" id="boom-msg"></div>
</div>
<!-- MAIN -->
<div class="screen" id="main">
<div class="granted">ACCESS GRANTED</div>
<div class="sub">// ДОБРО ПОЖАЛОВАТЬ, ОПЕРАТОР //</div>
<div class="box" id="main-box">
<span class="l">[OK]</span> Идентификация пройдена<br>
<span class="l">[OK]</span> Уровень доступа: ROOT<br>
<span class="l">[OK]</span> Загрузка основного модуля...<br>
<span class="l">[..]</span> Основной интерфейс появится на следующем этапе.
</div>
</div>
<script>
/* ================= AUDIO ENGINE ================= */
let audioCtx = null;
function initAudio(){
if(!audioCtx){
const AC = window.AudioContext || window.webkitAudioContext;
if(!AC) return;
audioCtx = new AC();
}
if(audioCtx.state === 'suspended') audioCtx.resume();
}
function beep(freq, dur=0.08, type='square', vol=0.14, when=0){
if(!audioCtx) return;
const t = audioCtx.currentTime + when;
const o = audioCtx.createOscillator();
const g = audioCtx.createGain();
o.type = type; o.frequency.setValueAtTime(freq, t);
g.gain.setValueAtTime(vol, t);
g.gain.exponentialRampToValueAtTime(0.0001, t + dur);
o.connect(g); g.connect(audioCtx.destination);
o.start(t); o.stop(t + dur);
}
function bootSound(){
if(!audioCtx) return;
const t = audioCtx.currentTime;
const o = audioCtx.createOscillator();
const g = audioCtx.createGain();
o.type='sawtooth';
o.frequency.setValueAtTime(120, t);
o.frequency.exponentialRampToValueAtTime(900, t+0.5);
g.gain.setValueAtTime(0.12, t);
g.gain.exponentialRampToValueAtTime(0.0001, t+0.6);
o.connect(g); g.connect(audioCtx.destination);
o.start(t); o.stop(t+0.6);
beep(1800,0.1,'square',0.08,0.62);
}
function typeSound(){ beep(1200+Math.random()*400, 0.03, 'square', 0.06); }
function errorSound(){
for(let i=0;i<3;i++){
beep(200,0.18,'sawtooth',0.22,i*0.35);
beep(150,0.18,'sawtooth',0.22,i*0.35+0.18);
}
}
function countBeep(){ beep(440,0.12,'square',0.18); }
function explosionSound(){
if(!audioCtx) return;
const dur=1.6, sr=audioCtx.sampleRate;
const buf=audioCtx.createBuffer(1, sr*dur, sr);
const d=buf.getChannelData(0);
for(let i=0;i<d.length;i++){ d[i]=(Math.random()*2-1)*Math.pow(1-i/d.length,1.8); }
const src=audioCtx.createBufferSource(); src.buffer=buf;
const f=audioCtx.createBiquadFilter(); f.type='lowpass';
f.frequency.setValueAtTime(1200,audioCtx.currentTime);
f.frequency.exponentialRampToValueAtTime(80,audioCtx.currentTime+dur);
const g=audioCtx.createGain(); g.gain.value=0.6;
src.connect(f); f.connect(g); g.connect(audioCtx.destination);
src.start();
}
/* ================= MATRIX ================= */
const cv=document.getElementById('matrix'), ctx=cv.getContext('2d');
let W,H,cols,drops;
function sizeMatrix(){
W=cv.width=innerWidth; H=cv.height=innerHeight;
cols=Math.floor(W/16); drops=Array(cols).fill(1);
}
sizeMatrix(); addEventListener('resize',sizeMatrix);
const chars='アイウエオカキクケコサシスセソ0123456789ABCDEF<>/\\|{}[]#$%&*+=?';
function drawMatrix(){
ctx.fillStyle='rgba(2,6,12,0.08)';
ctx.fillRect(0,0,W,H);
ctx.font='16px monospace';
for(let i=0;i<cols;i++){
const ch=chars[Math.floor(Math.random()*chars.length)];
ctx.fillStyle='#00e0ff';
ctx.fillText(ch, i*16, drops[i]*16);
if(drops[i]*16>H && Math.random()>0.975) drops[i]=0;
drops[i]++;
}
}
setInterval(drawMatrix, 50);
/* ================= SCREENS ================= */
function show(id){
document.querySelectorAll('.screen').forEach(s=>s.classList.remove('active'));
document.getElementById(id).classList.add('active');
}
/* ================= BOOT SEQUENCE ================= */
const bootLines=[
['SYSTEM BOOT SEQUENCE INITIATED...',0],
['LOADING KERNEL MODULES',0],
[' core.ko .................... [OK]','ok'],
[' crypto.ko .................. [OK]','ok'],
[' network.ko ................. [OK]','ok'],
['MOUNTING ENCRYPTED VOLUME',0],
[' /dev/sda1 .................. [OK]','ok'],
['INITIALIZING SECURITY LAYER',0],
[' firewall ................... [OK]','ok'],
[' intrusion.detection ........ [OK]','ok'],
['ESTABLISHING SECURE CHANNEL',0],
[' handshake .................. [OK]','ok'],
['ACCESS CONTROL ENABLED',0],
];
const bootTerm=document.getElementById('boot-term');
const bootBar=document.getElementById('boot-bar');
const bootPct=document.getElementById('boot-pct');
let bootTimer=null;
function startBoot(){
bootTerm.innerHTML='';
bootBar.style.width='0%';
bootPct.textContent='0%';
let i=0;
const total=bootLines.length;
const pctStep=100/total;
function next(){
if(i>=bootLines.length){
setTimeout(()=>{ show('pass'); focusPass(); }, 500);
return;
}
const [txt,cls]=bootLines[i];
const div=document.createElement('div');
if(cls==='ok'){ div.innerHTML=txt.replace('[OK]','<span class="ok">[OK]</span>'); }
else div.textContent=txt;
bootTerm.appendChild(div);
typeSound();
i++;
const p=Math.round(i*pctStep);
bootBar.style.width=p+'%';
bootPct.textContent=p+'%';
bootTimer=setTimeout(next, 150+Math.random()*120);
}
next();
}
/* ================= PASSWORD ================= */
const CORRECT='V-103';
const typedEl=document.getElementById('typed');
let input='';
let passActive=false;
function focusPass(){ passActive=true; }
function resetPass(){ input=''; typedEl.textContent=''; }
document.addEventListener('keydown', e=>{
initAudio();
const p=document.getElementById('pass');
const passOn=p.classList.contains('active');
if(passOn){
if(e.key==='Enter'){
e.preventDefault();
if(input.toUpperCase()===CORRECT){
grantAccess();
} else {
startWarning();
}
return;
}
if(e.key==='Backspace'){ input=input.slice(0,-1); typeSound(); }
else if(e.key.length===1 && !e.ctrlKey && !e.metaKey && !e.altKey){
input+=e.key; typeSound();
}
typedEl.textContent=input;
}
});
/* ================= ACCESS GRANTED ================= */
function grantAccess(){
beep(880,0.1,'square',0.16);
beep(1320,0.1,'square',0.16,0.12);
beep(1760,0.18,'square',0.16,0.24);
resetPass();
show('main');
}
/* ================= WARNING + COUNTDOWN ================= */
let countTimer=null;
function startWarning(){
errorSound();
resetPass();
show('warn');
const countEl=document.getElementById('count');
let n=10;
countEl.textContent=n;
countBeep();
countTimer=setInterval(()=>{
n--;
if(n<=0){
clearInterval(countTimer);
explode();
} else {
countEl.textContent=n;
countBeep();
}
},1000);
}
/* ================= EXPLOSION ================= */
function explode(){
explosionSound();
show('boom');
const flash=document.getElementById('flash');
const msg=document.getElementById('boom-msg');
document.body.classList.add('shake');
flash.style.opacity=1;
msg.textContent='';
// white flash then fade
let f=1;
const fi=setInterval(()=>{ f-=0.08; flash.style.opacity=Math.max(0,f); if(f<=0) clearInterval(fi); },40);
setTimeout(()=>{
document.body.classList.remove('shake');
msg.innerHTML='СИСТЕМА УНИЧТОЖЕНА';
const btn=document.createElement('div');
btn.className='restart red';
btn.textContent='[ ПЕРЕЗАГРУЗКА ]';
btn.onclick=()=>{ msg.innerHTML=''; btn.remove(); restart(); };
msg.appendChild(document.createElement('br'));
msg.appendChild(btn);
},1800);
}
function restart(){
if(countTimer) clearInterval(countTimer);
resetPass();
show('boot');
startBoot();
}
/* ================= INIT ================= */
startBoot();
</script>
</body>
</html>
<script data-huggingchat-badge="script">
(function () {
try {
if (document.querySelector("[data-huggingchat-badge]:not(script)")) return;
var host = document.createElement("div");
host.setAttribute("data-huggingchat-badge", "");
var styles = [["all","initial"],["position","fixed"],["right","12px"],["bottom","12px"],["z-index","2147483647"],["display","block"],["visibility","visible"],["opacity","1"],["pointer-events","auto"],["width","auto"],["height","auto"],["margin","0"],["padding","0"],["max-width","none"],["max-height","none"],["transform","none"],["filter","none"],["clip-path","none"],["color-scheme","light"]];
for (var i = 0; i < styles.length; i++) {
host.style.setProperty(styles[i][0], styles[i][1], "important");
}
host.attachShadow({ mode: "closed" }).innerHTML = "<style>\n:host { all: initial; }\na {\n display: flex;\n align-items: center;\n gap: 5px;\n box-sizing: border-box;\n height: 26px;\n padding: 0 9px 0 7px;\n border-radius: 999px;\n border: 1px solid rgba(0, 0, 0, 0.07);\n background: rgba(255, 255, 255, 0.92);\n -webkit-backdrop-filter: saturate(180%) blur(8px);\n backdrop-filter: saturate(180%) blur(8px);\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(0, 0, 0, 0.06);\n color: #111827;\n font: 500 11px/1 ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;\n letter-spacing: 0.01em;\n text-decoration: none;\n white-space: nowrap;\n opacity: 0.72;\n transition: opacity 0.15s ease, transform 0.15s ease;\n}\na:hover, a:focus-visible { opacity: 1; transform: translateY(-1px); }\nsvg { width: 14px; height: 14px; flex: none; }\n@media print { a { display: none; } }\n<\/style><a href=\"https://huggingface.co/chat\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><svg viewBox=\"0 0 32 32\" fill=\"none\" aria-hidden=\"true\"><path d=\"M16.0006 25.9992C13.8266 25.999 11.7118 25.2901 9.97686 23.9799C8.2419 22.6698 6.98127 20.8298 6.38599 18.7388C5.79071 16.6478 5.89323 14.4198 6.678 12.3923C7.46278 10.3648 8.88705 8.64837 10.735 7.50308C12.5829 6.35779 14.7538 5.84606 16.9187 6.04544C19.0837 6.24481 21.1246 7.14442 22.7323 8.60795C24.34 10.0715 25.4268 12.0192 25.8281 14.1559C26.2293 16.2926 25.9232 18.5019 24.9561 20.449C24.7703 20.8042 24.7223 21.2155 24.8211 21.604L25.4211 23.8316C25.4803 24.0518 25.4805 24.2837 25.4216 24.5039C25.3627 24.7242 25.2468 24.925 25.0856 25.0862C24.9244 25.2474 24.7235 25.3633 24.5033 25.4222C24.283 25.4811 24.0512 25.4809 23.831 25.4217L21.6034 24.8217C21.2172 24.7248 20.809 24.7729 20.4558 24.9567C19.0683 25.6467 17.5457 26.0068 16.0006 26.0068V25.9992Z\" fill=\"currentColor\"/><path d=\"M9.62598 16.0013C9.62598 15.3799 10.1294 14.8765 10.7508 14.8765C11.3721 14.8765 11.8756 15.3799 11.8756 16.0013C11.8756 17.0953 12.3102 18.1448 13.0838 18.9184C13.8574 19.692 14.9069 20.1266 16.001 20.1267C17.095 20.1267 18.1445 19.692 18.9181 18.9184C19.6918 18.1448 20.1264 17.0953 20.1264 16.0013C20.1264 15.3799 20.6299 14.8765 21.2512 14.8765C21.8725 14.8765 22.3759 15.3799 22.3759 16.0013C22.3759 17.6921 21.7046 19.3137 20.509 20.5093C19.3134 21.7049 17.6918 22.3762 16.001 22.3762C14.3102 22.3762 12.6885 21.7049 11.4929 20.5093C10.2974 19.3137 9.62598 17.6921 9.62598 16.0013Z\" fill=\"#fff\"/><\/svg><span>Made with HuggingChat<\/span><\/a>";
function attach() {
var parent = document.body || document.documentElement;
if (parent && host.parentNode !== parent) parent.appendChild(host);
}
attach();
// Artifacts that rewrite document.body wholesale would drop the badge.
if (document.body && typeof MutationObserver === "function") {
new MutationObserver(attach).observe(document.body, { childList: true });
} else {
document.addEventListener("DOMContentLoaded", attach);
}
} catch (e) {}
})();
</script>
|