revert: restore index.html to pre-login-fix state, remove all added login files

This commit is contained in:
2026-06-01 09:30:47 +00:00
parent 50452753dc
commit d4a6d8359e
7 changed files with 16 additions and 2670 deletions
+8 -10
View File
@@ -4,7 +4,6 @@
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<title>JARVIS — Integrated Defense and Logistics System</title>
<script data-cfasync="false">if(!sessionStorage.getItem("jarvis_token"))window.location.replace("/login.php");</script>
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600&family=Share+Tech+Mono&display=swap" rel="stylesheet"/>
<style>
@@ -650,8 +649,8 @@ body::after{
<p>Just A Rather Very Intelligent System</p>
<form class="login-form" id="loginForm">
<input type="text" id="loginUser" placeholder="IDENTIFICATION" autocomplete="username" value="myron"/>
<input type="password" id="loginPass" placeholder="ACCESS CODE" autocomplete="current-password" onkeydown="if(event.key==='Enter')doLogin()"/>
<button type="button" onclick="doLogin()">INITIALIZE SYSTEM</button>
<input type="password" id="loginPass" placeholder="ACCESS CODE" autocomplete="current-password"/>
<button type="submit">INITIALIZE SYSTEM</button>
<div id="loginError"></div>
</form>
</div>
@@ -917,9 +916,9 @@ body::after{
<!-- Hidden camera feed for face detection -->
<video id="faceVideo" autoplay muted playsinline
style="position:fixed;top:-9999px;left:-9999px;width:320px;height:240px"></video>
<script data-cfasync="false" src="https://cdn.jsdelivr.net/npm/face-api.js@0.22.2/dist/face-api.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/face-api.js@0.22.2/dist/face-api.min.js" crossorigin="anonymous"></script>
<script data-cfasync="false">
<script>
// ── GLOBALS ──────────────────────────────────────────────────────────
let sessionToken = '';
let sessionUser = '';
@@ -960,7 +959,7 @@ window.addEventListener("load", () => {
initVoice();
loadVoices();
// Check if already logged in; send to login.html if not
// Check if already logged in
const saved = sessionStorage.getItem('jarvis_token');
const autoReload = sessionStorage.getItem('jarvis_autoreload') === '1';
sessionStorage.removeItem('jarvis_autoreload');
@@ -968,8 +967,6 @@ window.addEventListener("load", () => {
sessionToken = saved;
sessionUser = sessionStorage.getItem('jarvis_user') || '';
showApp(sessionUser, null, autoReload);
} else {
window.location.replace('/login.php');
}
});
@@ -982,7 +979,8 @@ function updateClock() {
}
// ── LOGIN ─────────────────────────────────────────────────────────────
async function doLogin() {
document.getElementById('loginForm').addEventListener('submit', async (e) => {
e.preventDefault();
const user = document.getElementById('loginUser').value;
const pass = document.getElementById('loginPass').value;
const errEl = document.getElementById('loginError');
@@ -1002,7 +1000,7 @@ async function doLogin() {
} catch(err) {
errEl.textContent = 'CONNECTION FAILED';
}
}
});
function showApp(name, greeting, silent = false) {
document.getElementById('loginScreen').style.display = 'none';