Spaces:
Runtime error
Runtime error
| <html lang="ro"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
| <title>Sistem Blocat</title> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap'); | |
| * { margin: 0; padding: 0; box-sizing: border-box; -webkit-user-select: none; user-select: none; } | |
| :root { | |
| --red: #ff0033; | |
| --red-dim: #990020; | |
| --bg: #0a0000; | |
| --panel-bg: #0f0000; | |
| --green: #00ff88; | |
| --text: #ffcccc; | |
| } | |
| body { | |
| background: var(--bg); | |
| color: var(--text); | |
| font-family: 'Share Tech Mono', monospace; | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| overflow: hidden; | |
| } | |
| /* SCANLINE OVERLAY */ | |
| body::before { | |
| content: ''; | |
| position: fixed; | |
| inset: 0; | |
| background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px); | |
| pointer-events: none; | |
| z-index: 9999; | |
| } | |
| /* GLITCH FLICKER */ | |
| @keyframes flicker { | |
| 0%,100%{opacity:1} 92%{opacity:1} 93%{opacity:0.4} 95%{opacity:1} 97%{opacity:0.7} 98%{opacity:1} | |
| } | |
| body { animation: flicker 5s infinite; } | |
| /* ===== LOCK SCREEN ===== */ | |
| #lockScreen { | |
| position: fixed; inset: 0; | |
| background: var(--bg); | |
| display: flex; flex-direction: column; | |
| align-items: center; justify-content: center; | |
| gap: 32px; | |
| padding: 24px; | |
| z-index: 100; | |
| } | |
| .skull { | |
| font-size: 80px; | |
| animation: pulse 1.5s ease-in-out infinite; | |
| } | |
| @keyframes pulse { | |
| 0%,100%{transform:scale(1);filter:drop-shadow(0 0 10px var(--red))} | |
| 50%{transform:scale(1.1);filter:drop-shadow(0 0 30px var(--red))} | |
| } | |
| .title { | |
| font-family: 'Orbitron', sans-serif; | |
| font-size: clamp(18px, 5vw, 32px); | |
| font-weight: 900; | |
| color: var(--red); | |
| text-align: center; | |
| letter-spacing: 4px; | |
| text-shadow: 0 0 20px var(--red), 0 0 40px var(--red-dim); | |
| animation: glitch 3s infinite; | |
| } | |
| @keyframes glitch { | |
| 0%,100%{text-shadow:0 0 20px var(--red),0 0 40px var(--red-dim); transform:none} | |
| 92%{transform:none} | |
| 93%{transform:skewX(-5deg) translateX(-3px); text-shadow:3px 0 0 cyan,-3px 0 0 var(--red)} | |
| 94%{transform:skewX(3deg) translateX(2px); text-shadow:-3px 0 0 cyan,3px 0 0 var(--red)} | |
| 95%{transform:none;text-shadow:0 0 20px var(--red)} | |
| } | |
| .subtitle { | |
| color: #ff6666; | |
| font-size: clamp(11px, 3vw, 14px); | |
| text-align: center; | |
| opacity: 0.8; | |
| line-height: 1.8; | |
| } | |
| .attempts-bar { | |
| display: flex; gap: 12px; | |
| } | |
| .attempt-dot { | |
| width: 18px; height: 18px; | |
| border-radius: 50%; | |
| background: var(--red); | |
| box-shadow: 0 0 10px var(--red); | |
| transition: all 0.3s; | |
| } | |
| .attempt-dot.used { | |
| background: #333; | |
| box-shadow: none; | |
| } | |
| .input-wrapper { | |
| position: relative; | |
| width: min(320px, 90vw); | |
| } | |
| #passwordInput { | |
| width: 100%; | |
| background: #1a0000; | |
| border: 2px solid var(--red-dim); | |
| border-radius: 6px; | |
| color: var(--red); | |
| font-family: 'Share Tech Mono', monospace; | |
| font-size: 18px; | |
| padding: 14px 50px 14px 16px; | |
| outline: none; | |
| letter-spacing: 2px; | |
| transition: border-color 0.3s, box-shadow 0.3s; | |
| -webkit-user-select: text; | |
| user-select: text; | |
| } | |
| #passwordInput:focus { | |
| border-color: var(--red); | |
| box-shadow: 0 0 20px rgba(255,0,51,0.3); | |
| } | |
| #passwordInput.shake { | |
| animation: shake 0.4s; | |
| } | |
| @keyframes shake { | |
| 0%,100%{transform:translateX(0)} | |
| 20%{transform:translateX(-8px)} | |
| 40%{transform:translateX(8px)} | |
| 60%{transform:translateX(-5px)} | |
| 80%{transform:translateX(5px)} | |
| } | |
| .submit-btn { | |
| position: absolute; right: 10px; top: 50%; | |
| transform: translateY(-50%); | |
| background: none; border: none; | |
| color: var(--red); font-size: 22px; | |
| cursor: pointer; | |
| transition: transform 0.2s, color 0.2s; | |
| } | |
| .submit-btn:hover { transform: translateY(-50%) scale(1.2); color: #ff6666; } | |
| .hint { | |
| font-size: 12px; | |
| color: #663333; | |
| text-align: center; | |
| } | |
| .error-msg { | |
| color: #ff4466; | |
| font-size: 13px; | |
| text-align: center; | |
| min-height: 20px; | |
| transition: opacity 0.3s; | |
| } | |
| /* CAMERA FLASH */ | |
| #cameraFlash { | |
| position: fixed; inset: 0; | |
| background: white; | |
| opacity: 0; | |
| pointer-events: none; | |
| z-index: 9998; | |
| transition: opacity 0.05s; | |
| } | |
| #cameraFlash.flash { opacity: 1; } | |
| /* NOTIFICATION POPUP */ | |
| #notification { | |
| position: fixed; | |
| top: 20px; left: 50%; transform: translateX(-50%); | |
| background: #1a1a1a; | |
| border: 1px solid #333; | |
| border-radius: 12px; | |
| padding: 12px 20px; | |
| display: flex; align-items: center; gap: 12px; | |
| font-size: 13px; | |
| color: #ccc; | |
| box-shadow: 0 4px 20px rgba(0,0,0,0.5); | |
| z-index: 9997; | |
| opacity: 0; | |
| transition: opacity 0.3s, top 0.3s; | |
| white-space: nowrap; | |
| } | |
| #notification.show { opacity: 1; top: 30px; } | |
| #notification .notif-icon { font-size: 20px; } | |
| /* PERMANENTLY BLOCKED SCREEN */ | |
| #blockedScreen { | |
| position: fixed; inset: 0; | |
| background: #000; | |
| display: none; | |
| flex-direction: column; | |
| align-items: center; justify-content: center; | |
| gap: 20px; | |
| z-index: 200; | |
| } | |
| #blockedScreen.show { display: flex; } | |
| .blocked-title { | |
| font-family: 'Orbitron', sans-serif; | |
| font-size: clamp(16px, 4vw, 28px); | |
| color: var(--red); | |
| text-align: center; | |
| letter-spacing: 3px; | |
| text-shadow: 0 0 20px var(--red); | |
| } | |
| .blocked-sub { | |
| color: #555; | |
| font-size: 12px; | |
| text-align: center; | |
| max-width: 280px; | |
| line-height: 1.6; | |
| } | |
| /* ===== ADMIN PANEL ===== */ | |
| #adminPanel { | |
| position: fixed; inset: 0; | |
| background: #050510; | |
| display: none; | |
| flex-direction: column; | |
| overflow: hidden; | |
| z-index: 300; | |
| } | |
| #adminPanel.show { display: flex; } | |
| .admin-header { | |
| background: #0a0a20; | |
| border-bottom: 1px solid #1a1a4a; | |
| padding: 16px 20px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .admin-title { | |
| font-family: 'Orbitron', sans-serif; | |
| font-size: 16px; | |
| color: var(--green); | |
| letter-spacing: 3px; | |
| text-shadow: 0 0 10px var(--green); | |
| } | |
| .admin-badge { | |
| background: var(--green); | |
| color: #000; | |
| font-size: 10px; | |
| font-weight: bold; | |
| padding: 3px 8px; | |
| border-radius: 4px; | |
| letter-spacing: 1px; | |
| } | |
| .admin-body { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 20px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| } | |
| .section-label { | |
| color: #4466aa; | |
| font-size: 11px; | |
| letter-spacing: 2px; | |
| margin-bottom: 8px; | |
| text-transform: uppercase; | |
| } | |
| /* CAMERA PREVIEW */ | |
| .camera-section { | |
| background: #080818; | |
| border: 1px solid #1a1a4a; | |
| border-radius: 10px; | |
| padding: 16px; | |
| } | |
| #livePreview { | |
| width: 100%; | |
| max-height: 220px; | |
| object-fit: cover; | |
| border-radius: 6px; | |
| background: #111; | |
| display: block; | |
| } | |
| .camera-controls { | |
| display: flex; gap: 10px; margin-top: 12px; | |
| } | |
| /* PHOTOS GRID */ | |
| .photos-section { | |
| background: #080818; | |
| border: 1px solid #1a1a4a; | |
| border-radius: 10px; | |
| padding: 16px; | |
| } | |
| #photosGrid { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 8px; | |
| margin-top: 10px; | |
| } | |
| .photo-thumb { | |
| aspect-ratio: 1; | |
| object-fit: cover; | |
| border-radius: 4px; | |
| border: 1px solid #1a1a4a; | |
| width: 100%; | |
| } | |
| .no-photos { | |
| color: #333; | |
| font-size: 12px; | |
| text-align: center; | |
| padding: 20px; | |
| grid-column: 1/-1; | |
| } | |
| /* CONTROL SECTION */ | |
| .control-section { | |
| background: #080818; | |
| border: 1px solid #1a1a4a; | |
| border-radius: 10px; | |
| padding: 16px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .status-row { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .status-text { font-size: 13px; color: #8888aa; } | |
| .status-val { font-size: 13px; } | |
| .status-val.locked { color: var(--red); } | |
| .status-val.unlocked { color: var(--green); } | |
| /* BUTTONS */ | |
| .btn { | |
| border: none; border-radius: 6px; | |
| font-family: 'Share Tech Mono', monospace; | |
| font-size: 13px; | |
| padding: 10px 16px; | |
| cursor: pointer; | |
| letter-spacing: 1px; | |
| transition: all 0.2s; | |
| flex: 1; | |
| } | |
| .btn-red { | |
| background: var(--red); | |
| color: #fff; | |
| } | |
| .btn-red:hover { background: #ff3355; box-shadow: 0 0 15px rgba(255,0,51,0.4); } | |
| .btn-green { | |
| background: #00aa55; | |
| color: #fff; | |
| } | |
| .btn-green:hover { background: var(--green); color: #000; box-shadow: 0 0 15px rgba(0,255,136,0.3); } | |
| .btn-gray { | |
| background: #1a1a2e; | |
| color: #8888aa; | |
| border: 1px solid #2a2a4a; | |
| } | |
| .btn-gray:hover { background: #2a2a4a; color: #fff; } | |
| .btn:disabled { opacity: 0.4; cursor: not-allowed; } | |
| .btn-row { display: flex; gap: 10px; } | |
| /* STATS */ | |
| .stats-row { | |
| display: flex; | |
| gap: 10px; | |
| } | |
| .stat-card { | |
| flex: 1; | |
| background: #0a0a20; | |
| border: 1px solid #1a1a4a; | |
| border-radius: 8px; | |
| padding: 12px; | |
| text-align: center; | |
| } | |
| .stat-num { | |
| font-family: 'Orbitron', sans-serif; | |
| font-size: 24px; | |
| color: var(--green); | |
| text-shadow: 0 0 10px var(--green); | |
| } | |
| .stat-label { font-size: 10px; color: #4466aa; letter-spacing: 1px; margin-top: 4px; } | |
| /* Log */ | |
| #eventLog { | |
| background: #050510; | |
| border: 1px solid #0f0f2a; | |
| border-radius: 6px; | |
| padding: 10px; | |
| font-size: 11px; | |
| color: #446688; | |
| max-height: 100px; | |
| overflow-y: auto; | |
| line-height: 1.8; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- CAMERA FLASH EFFECT --> | |
| <div id="cameraFlash"></div> | |
| <!-- NOTIFICATION --> | |
| <div id="notification"> | |
| <span class="notif-icon">📸</span> | |
| <span id="notifText">Se face o poză cu tine!</span> | |
| </div> | |
| <!-- ===== LOCK SCREEN ===== --> | |
| <div id="lockScreen"> | |
| <div class="skull">💀</div> | |
| <div class="title">DISPOZITIV BLOCAT</div> | |
| <div class="subtitle"> | |
| Acest dispozitiv a fost securizat.<br> | |
| Introdu codul pentru a debloca.<br> | |
| <span style="color:#ff4444">3 încercări disponibile.</span> | |
| </div> | |
| <div class="attempts-bar"> | |
| <div class="attempt-dot" id="dot0"></div> | |
| <div class="attempt-dot" id="dot1"></div> | |
| <div class="attempt-dot" id="dot2"></div> | |
| </div> | |
| <div class="input-wrapper"> | |
| <input type="text" id="passwordInput" placeholder="Introdu codul..." autocomplete="off" autocorrect="off" spellcheck="false"> | |
| <button class="submit-btn" onclick="checkPassword()">→</button> | |
| </div> | |
| <div class="error-msg" id="errorMsg"></div> | |
| <div class="hint">Cine te-a blocat?</div> | |
| </div> | |
| <!-- ===== PERMANENTLY BLOCKED ===== --> | |
| <div id="blockedScreen"> | |
| <div class="skull" style="font-size:100px">🔒</div> | |
| <div class="blocked-title">BLOCAT PERMANENT</div> | |
| <div class="blocked-sub"> | |
| Ai greșit de 3 ori.<br> | |
| Dispozitivul este blocat definitiv.<br><br> | |
| <span style="color:#ff4444">Contactează administratorul.</span> | |
| </div> | |
| </div> | |
| <!-- ===== ADMIN PANEL ===== --> | |
| <div id="adminPanel"> | |
| <div class="admin-header"> | |
| <div class="admin-title">⚡ ADMIN PANEL</div> | |
| <div class="admin-badge">DAEMON89</div> | |
| </div> | |
| <div class="admin-body"> | |
| <!-- STATS --> | |
| <div class="stats-row"> | |
| <div class="stat-card"> | |
| <div class="stat-num" id="statPhotos">0</div> | |
| <div class="stat-label">POZE FĂCUTE</div> | |
| </div> | |
| <div class="stat-card"> | |
| <div class="stat-num" id="statAttempts">0</div> | |
| <div class="stat-label">GREȘELI</div> | |
| </div> | |
| <div class="stat-card"> | |
| <div class="stat-num" id="statStatus" style="font-size:16px;margin-top:4px">🔴</div> | |
| <div class="stat-label">STATUS</div> | |
| </div> | |
| </div> | |
| <!-- CAMERA LIVE --> | |
| <div class="camera-section"> | |
| <div class="section-label">📷 Camera live</div> | |
| <video id="livePreview" autoplay playsinline muted></video> | |
| <div class="camera-controls"> | |
| <button class="btn btn-gray" onclick="startCamera()">▶ Pornește camera</button> | |
| <button class="btn btn-green" onclick="takePhotoManual()">📸 Fă poză</button> | |
| </div> | |
| </div> | |
| <!-- PHOTOS --> | |
| <div class="photos-section"> | |
| <div class="section-label">🖼️ Poze capturate</div> | |
| <div id="photosGrid"> | |
| <div class="no-photos">Nicio poză încă...</div> | |
| </div> | |
| </div> | |
| <!-- CONTROLS --> | |
| <div class="control-section"> | |
| <div class="section-label">🎮 Control dispozitiv</div> | |
| <div class="status-row"> | |
| <span class="status-text">Stare curentă:</span> | |
| <span class="status-val unlocked" id="lockStatus">DEBLOCAT</span> | |
| </div> | |
| <div class="btn-row"> | |
| <button class="btn btn-red" onclick="lockDevice()">🔒 Blochează</button> | |
| <button class="btn btn-green" onclick="unlockDevice()">🔓 Deblochează</button> | |
| </div> | |
| <div class="section-label" style="margin-top:8px">📋 Jurnal activitate</div> | |
| <div id="eventLog">[ Sistem pornit ]<br></div> | |
| </div> | |
| </div> | |
| </div> | |
| <canvas id="snapCanvas" style="display:none"></canvas> | |
| <script> | |
| // ========== STATE ========== | |
| let attempts = 0; | |
| const MAX_ATTEMPTS = 3; | |
| const CORRECT_PASSWORD = 'Daemon'; | |
| const ADMIN_PASSWORD = 'Daemon89'; | |
| let photos = []; | |
| let totalAttempts = 0; | |
| let isLocked = true; | |
| let stream = null; | |
| // ========== INIT ========== | |
| document.getElementById('passwordInput').addEventListener('keydown', e => { | |
| if (e.key === 'Enter') checkPassword(); | |
| }); | |
| // Try fullscreen on load | |
| document.addEventListener('click', tryFullscreen, { once: true }); | |
| document.addEventListener('touchstart', tryFullscreen, { once: true }); | |
| function tryFullscreen() { | |
| const el = document.documentElement; | |
| if (el.requestFullscreen) el.requestFullscreen().catch(() => {}); | |
| else if (el.webkitRequestFullscreen) el.webkitRequestFullscreen(); | |
| // On Android WebView, fullscreen is handled natively | |
| } | |
| // ========== PASSWORD CHECK ========== | |
| function checkPassword() { | |
| const input = document.getElementById('passwordInput'); | |
| const val = input.value.trim(); | |
| const errorMsg = document.getElementById('errorMsg'); | |
| if (!val) return; | |
| // ADMIN ACCESS | |
| if (val === ADMIN_PASSWORD) { | |
| showAdminPanel(); | |
| input.value = ''; | |
| return; | |
| } | |
| // CORRECT PASSWORD | |
| if (val === CORRECT_PASSWORD) { | |
| errorMsg.style.color = '#00ff88'; | |
| errorMsg.textContent = '✓ Corect! Deblocând...'; | |
| setTimeout(() => { | |
| document.getElementById('lockScreen').style.display = 'none'; | |
| addLog('Dispozitiv deblocat cu succes.'); | |
| }, 800); | |
| input.value = ''; | |
| return; | |
| } | |
| // WRONG PASSWORD | |
| attempts++; | |
| totalAttempts++; | |
| updateAttemptDots(); | |
| input.value = ''; | |
| input.classList.add('shake'); | |
| setTimeout(() => input.classList.remove('shake'), 500); | |
| if (attempts >= MAX_ATTEMPTS) { | |
| // Show camera notification then block | |
| showNotification('📸 Poză finală capturată!'); | |
| takePhotoSilent(() => { | |
| setTimeout(() => { | |
| document.getElementById('lockScreen').style.display = 'none'; | |
| document.getElementById('blockedScreen').classList.add('show'); | |
| addLog('BLOCAT PERMANENT după 3 greșeli.'); | |
| }, 800); | |
| }); | |
| } else { | |
| const remaining = MAX_ATTEMPTS - attempts; | |
| errorMsg.textContent = `✗ Greșit! ${remaining} încercări rămase.`; | |
| showNotification(`📸 Greșeală #${attempts} - Se face o poză cu tine!`); | |
| takePhotoSilent(); | |
| addLog(`Greșeală #${attempts}: parolă incorectă.`); | |
| } | |
| } | |
| function updateAttemptDots() { | |
| for (let i = 0; i < MAX_ATTEMPTS; i++) { | |
| if (i < attempts) { | |
| document.getElementById(`dot${i}`).classList.add('used'); | |
| } | |
| } | |
| } | |
| // ========== CAMERA ========== | |
| async function getCameraStream() { | |
| if (stream) return stream; | |
| try { | |
| stream = await navigator.mediaDevices.getUserMedia({ video: { facingMode: 'user' }, audio: false }); | |
| return stream; | |
| } catch(e) { | |
| try { | |
| stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: false }); | |
| return stream; | |
| } catch(e2) { | |
| addLog('Camera indisponibilă: ' + e2.message); | |
| return null; | |
| } | |
| } | |
| } | |
| async function takePhotoSilent(callback) { | |
| // Flash effect | |
| const flash = document.getElementById('cameraFlash'); | |
| flash.classList.add('flash'); | |
| setTimeout(() => flash.classList.remove('flash'), 150); | |
| const s = await getCameraStream(); | |
| if (!s) { if (callback) callback(); return; } | |
| const video = document.createElement('video'); | |
| video.srcObject = s; | |
| video.setAttribute('playsinline', ''); | |
| video.muted = true; | |
| await video.play(); | |
| setTimeout(() => { | |
| const canvas = document.getElementById('snapCanvas'); | |
| canvas.width = video.videoWidth || 640; | |
| canvas.height = video.videoHeight || 480; | |
| const ctx = canvas.getContext('2d'); | |
| ctx.drawImage(video, 0, 0); | |
| const dataUrl = canvas.toDataURL('image/jpeg', 0.7); | |
| photos.unshift({ url: dataUrl, time: new Date().toLocaleTimeString() }); | |
| document.getElementById('statPhotos').textContent = photos.length; | |
| updatePhotosGrid(); | |
| addLog(`Poză capturată la ${new Date().toLocaleTimeString()}`); | |
| if (callback) callback(); | |
| }, 300); | |
| } | |
| async function startCamera() { | |
| const s = await getCameraStream(); | |
| if (!s) { addLog('Nu s-a putut porni camera.'); return; } | |
| const video = document.getElementById('livePreview'); | |
| video.srcObject = s; | |
| addLog('Camera live pornită.'); | |
| } | |
| async function takePhotoManual() { | |
| showNotification('📸 Poză manuală!'); | |
| await takePhotoSilent(); | |
| } | |
| function updatePhotosGrid() { | |
| const grid = document.getElementById('photosGrid'); | |
| if (photos.length === 0) { | |
| grid.innerHTML = '<div class="no-photos">Nicio poză încă...</div>'; | |
| return; | |
| } | |
| grid.innerHTML = photos.map(p => | |
| `<img class="photo-thumb" src="${p.url}" title="${p.time}">` | |
| ).join(''); | |
| } | |
| // ========== NOTIFICATION ========== | |
| function showNotification(text) { | |
| const notif = document.getElementById('notification'); | |
| document.getElementById('notifText').textContent = text; | |
| notif.classList.add('show'); | |
| setTimeout(() => notif.classList.remove('show'), 3000); | |
| } | |
| // ========== ADMIN PANEL ========== | |
| function showAdminPanel() { | |
| document.getElementById('lockScreen').style.display = 'none'; | |
| document.getElementById('adminPanel').classList.add('show'); | |
| document.getElementById('statAttempts').textContent = totalAttempts; | |
| document.getElementById('statStatus').textContent = isLocked ? '🔴' : '🟢'; | |
| updatePhotosGrid(); | |
| startCamera(); | |
| addLog('Admin conectat.'); | |
| } | |
| function lockDevice() { | |
| isLocked = true; | |
| document.getElementById('lockStatus').textContent = 'BLOCAT'; | |
| document.getElementById('lockStatus').className = 'status-val locked'; | |
| document.getElementById('statStatus').textContent = '🔴'; | |
| addLog('Dispozitiv blocat de admin.'); | |
| // Reset and show lock screen | |
| attempts = 0; | |
| updateAttemptDots(); | |
| document.getElementById('errorMsg').textContent = ''; | |
| document.getElementById('passwordInput').value = ''; | |
| document.getElementById('adminPanel').classList.remove('show'); | |
| document.getElementById('lockScreen').style.display = 'flex'; | |
| } | |
| function unlockDevice() { | |
| isLocked = false; | |
| document.getElementById('lockStatus').textContent = 'DEBLOCAT'; | |
| document.getElementById('lockStatus').className = 'status-val unlocked'; | |
| document.getElementById('statStatus').textContent = '🟢'; | |
| addLog('Dispozitiv deblocat de admin.'); | |
| } | |
| // ========== LOG ========== | |
| function addLog(text) { | |
| const log = document.getElementById('eventLog'); | |
| const time = new Date().toLocaleTimeString(); | |
| log.innerHTML += `[${time}] ${text}<br>`; | |
| log.scrollTop = log.scrollHeight; | |
| } | |
| </script> | |
| </body> | |
| </html> | |