Update index.html
Browse files- index.html +96 -19
index.html
CHANGED
|
@@ -1,37 +1,108 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
-
<html>
|
| 3 |
<head>
|
|
|
|
| 4 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 5 |
-
<title>J.A.R.V.I.S.
|
| 6 |
<style>
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
.hidden { display: none !important; }
|
| 14 |
-
button { background: none; border: 1px solid #1a3a3a; color: #40e0d0; padding: 10px 20px; cursor: pointer; }
|
| 15 |
</style>
|
| 16 |
</head>
|
| 17 |
<body>
|
| 18 |
|
| 19 |
<div id="auth">
|
| 20 |
-
<
|
| 21 |
-
<
|
|
|
|
| 22 |
</div>
|
| 23 |
|
| 24 |
<div id="app" class="hidden">
|
| 25 |
-
<div id="log">| SYSTEM ONLINE. GEMINI 3
|
| 26 |
<div id="ctrl">
|
| 27 |
-
<input type="text" id="i" placeholder="COMMAND..." onkeydown="if(event.key==='Enter') send()">
|
| 28 |
<button onclick="send()">EXE</button>
|
| 29 |
</div>
|
| 30 |
</div>
|
| 31 |
|
| 32 |
<script>
|
| 33 |
const PASS = "1234";
|
| 34 |
-
const KEY = "AIzaSyBsO0MMgrHGVTakWXi9lB-DrOMv9WnVVTg"; // <--
|
| 35 |
|
| 36 |
function login() {
|
| 37 |
if(document.getElementById('p').value === PASS) {
|
|
@@ -46,12 +117,13 @@
|
|
| 46 |
const v = i.value.trim();
|
| 47 |
if(!v) return;
|
| 48 |
|
|
|
|
| 49 |
l.innerHTML += `<div class="msg" style="color:#777;">> ${v}</div>`;
|
| 50 |
i.value = "";
|
| 51 |
l.scrollTop = l.scrollHeight;
|
| 52 |
|
| 53 |
try {
|
| 54 |
-
// IST & 2026 DATE SYNC
|
| 55 |
const options = {
|
| 56 |
timeZone: 'Asia/Kolkata',
|
| 57 |
weekday: 'long', day: 'numeric', month: 'long', year: 'numeric',
|
|
@@ -59,14 +131,19 @@
|
|
| 59 |
};
|
| 60 |
const now = new Date().toLocaleString('en-IN', options);
|
| 61 |
|
| 62 |
-
|
|
|
|
| 63 |
|
| 64 |
-
|
|
|
|
| 65 |
|
| 66 |
const r = await fetch(url, {
|
| 67 |
method: "POST",
|
| 68 |
headers: { "Content-Type": "application/json" },
|
| 69 |
-
body: JSON.stringify({
|
|
|
|
|
|
|
|
|
|
| 70 |
});
|
| 71 |
|
| 72 |
const d = await r.json();
|
|
@@ -78,7 +155,7 @@
|
|
| 78 |
l.innerHTML += `<div class="msg">J.A.R.V.I.S.: ${t}</div>`;
|
| 79 |
}
|
| 80 |
} catch (e) {
|
| 81 |
-
l.innerHTML += `<div class="msg" style="color:#ff4d4d;">DIAGNOSTIC: Handshake Failed.</div>`;
|
| 82 |
}
|
| 83 |
l.scrollTop = l.scrollHeight;
|
| 84 |
}
|
|
|
|
| 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, maximum-scale=1.0, user-scalable=no">
|
| 6 |
+
<title>J.A.R.V.I.S. | Terminal</title>
|
| 7 |
<style>
|
| 8 |
+
/* FULL-SCREEN IPAD OPTIMIZATION */
|
| 9 |
+
body {
|
| 10 |
+
background: #020a0f;
|
| 11 |
+
color: #40e0d0;
|
| 12 |
+
font-family: 'Courier New', monospace;
|
| 13 |
+
margin: 0;
|
| 14 |
+
display: flex;
|
| 15 |
+
flex-direction: column;
|
| 16 |
+
height: 100vh;
|
| 17 |
+
width: 100vw;
|
| 18 |
+
overflow: hidden;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
#log {
|
| 22 |
+
flex: 1;
|
| 23 |
+
overflow-y: auto;
|
| 24 |
+
padding: 30px;
|
| 25 |
+
border-bottom: 2px solid #1a3a3a;
|
| 26 |
+
font-size: 20px; /* Large, readable text */
|
| 27 |
+
line-height: 1.6;
|
| 28 |
+
letter-spacing: 1px;
|
| 29 |
+
background-image: linear-gradient(rgba(64, 224, 208, 0.03) 1px, transparent 1px);
|
| 30 |
+
background-size: 100% 30px;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.msg {
|
| 34 |
+
margin-bottom: 25px;
|
| 35 |
+
border-left: 3px solid #40e0d0;
|
| 36 |
+
padding-left: 15px;
|
| 37 |
+
word-wrap: break-word;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
#ctrl {
|
| 41 |
+
padding: 25px;
|
| 42 |
+
background: #010508;
|
| 43 |
+
display: flex;
|
| 44 |
+
gap: 15px;
|
| 45 |
+
align-items: center;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
#i {
|
| 49 |
+
flex: 1;
|
| 50 |
+
background: rgba(26, 58, 58, 0.3);
|
| 51 |
+
border: 1px solid #40e0d0;
|
| 52 |
+
color: #40e0d0;
|
| 53 |
+
padding: 20px;
|
| 54 |
+
outline: none;
|
| 55 |
+
font-family: monospace;
|
| 56 |
+
font-size: 22px; /* Easy to tap and see */
|
| 57 |
+
border-radius: 8px;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
button {
|
| 61 |
+
background: #1a3a3a;
|
| 62 |
+
border: 1px solid #40e0d0;
|
| 63 |
+
color: #40e0d0;
|
| 64 |
+
padding: 20px 40px;
|
| 65 |
+
font-size: 20px;
|
| 66 |
+
cursor: pointer;
|
| 67 |
+
text-transform: uppercase;
|
| 68 |
+
font-weight: bold;
|
| 69 |
+
border-radius: 8px;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
#auth {
|
| 73 |
+
position: fixed;
|
| 74 |
+
inset: 0;
|
| 75 |
+
background: #020a0f;
|
| 76 |
+
display: flex;
|
| 77 |
+
flex-direction: column;
|
| 78 |
+
gap: 25px;
|
| 79 |
+
align-items: center;
|
| 80 |
+
justify-content: center;
|
| 81 |
+
z-index: 999;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
.hidden { display: none !important; }
|
|
|
|
| 85 |
</style>
|
| 86 |
</head>
|
| 87 |
<body>
|
| 88 |
|
| 89 |
<div id="auth">
|
| 90 |
+
<h2 style="letter-spacing: 5px;">IDENTITY VERIFICATION</h2>
|
| 91 |
+
<input type="password" id="p" placeholder="PASSCODE" style="background:none; border:1px solid #40e0d0; color:#40e0d0; padding:20px; font-size:20px; text-align:center;">
|
| 92 |
+
<button onclick="login()">INITIALIZE UPLINK</button>
|
| 93 |
</div>
|
| 94 |
|
| 95 |
<div id="app" class="hidden">
|
| 96 |
+
<div id="log">| SYSTEM ONLINE. STATUS: SECURE.<br>| UPLINK: GEMINI 3 FLASH ACTIVE.<br>| REGION: INDIA [IST SYNCED]</div>
|
| 97 |
<div id="ctrl">
|
| 98 |
+
<input type="text" id="i" placeholder="ENTER COMMAND..." onkeydown="if(event.key==='Enter') send()">
|
| 99 |
<button onclick="send()">EXE</button>
|
| 100 |
</div>
|
| 101 |
</div>
|
| 102 |
|
| 103 |
<script>
|
| 104 |
const PASS = "1234";
|
| 105 |
+
const KEY = "AIzaSyBsO0MMgrHGVTakWXi9lB-DrOMv9WnVVTg"; // <-- INSERT NEW KEY FROM AI STUDIO
|
| 106 |
|
| 107 |
function login() {
|
| 108 |
if(document.getElementById('p').value === PASS) {
|
|
|
|
| 117 |
const v = i.value.trim();
|
| 118 |
if(!v) return;
|
| 119 |
|
| 120 |
+
// Immediate visual echo
|
| 121 |
l.innerHTML += `<div class="msg" style="color:#777;">> ${v}</div>`;
|
| 122 |
i.value = "";
|
| 123 |
l.scrollTop = l.scrollHeight;
|
| 124 |
|
| 125 |
try {
|
| 126 |
+
// REAL-TIME IST & 2026 DATE SYNC
|
| 127 |
const options = {
|
| 128 |
timeZone: 'Asia/Kolkata',
|
| 129 |
weekday: 'long', day: 'numeric', month: 'long', year: 'numeric',
|
|
|
|
| 131 |
};
|
| 132 |
const now = new Date().toLocaleString('en-IN', options);
|
| 133 |
|
| 134 |
+
// Prompt Injection
|
| 135 |
+
const prompt = `[SYSTEM: Current Indian Standard Time is ${now}. Today is Wednesday, 8 April 2026. Answer as J.A.R.V.I.S.:] ${v}`;
|
| 136 |
|
| 137 |
+
// 2026 Production Endpoint (1,000 req/day)
|
| 138 |
+
const url = `https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-lite:generateContent?key=${KEY}`;
|
| 139 |
|
| 140 |
const r = await fetch(url, {
|
| 141 |
method: "POST",
|
| 142 |
headers: { "Content-Type": "application/json" },
|
| 143 |
+
body: JSON.stringify({
|
| 144 |
+
contents: [{ parts: [{ text: prompt }] }],
|
| 145 |
+
generationConfig: { temperature: 0.7, maxOutputTokens: 800 }
|
| 146 |
+
})
|
| 147 |
});
|
| 148 |
|
| 149 |
const d = await r.json();
|
|
|
|
| 155 |
l.innerHTML += `<div class="msg">J.A.R.V.I.S.: ${t}</div>`;
|
| 156 |
}
|
| 157 |
} catch (e) {
|
| 158 |
+
l.innerHTML += `<div class="msg" style="color:#ff4d4d;">DIAGNOSTIC: Handshake Failed. Protocol Interrupted.</div>`;
|
| 159 |
}
|
| 160 |
l.scrollTop = l.scrollHeight;
|
| 161 |
}
|