Spaces:
Running
Running
Download index.html from TROVXGOD/hacker-interface: direct link, hf CLI and curl.
- Browser
- Download file 18.2 kB
-
https://huggingface.co/spaces/TROVXGOD/hacker-interface/resolve/main/index.html
- Command line
-
hf download hf://spaces/TROVXGOD/hacker-interface/index.html
-
curl -L -o index.html https://huggingface.co/spaces/TROVXGOD/hacker-interface/resolve/main/index.html
18.2 kB
| <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> | |