File size: 9,043 Bytes
0f27de7 4c0afe5 0f27de7 3337c5d 0f27de7 4c0afe5 0f27de7 3337c5d 0f27de7 3337c5d 0f27de7 4c0afe5 0f27de7 3337c5d 0f27de7 4c0afe5 0f27de7 4c0afe5 0f27de7 4c0afe5 3337c5d 0f27de7 4c0afe5 0f27de7 4c0afe5 0f27de7 4c0afe5 3337c5d 4c0afe5 0f27de7 4c0afe5 3337c5d 0f27de7 4c0afe5 3337c5d 0f27de7 4c0afe5 3337c5d 0f27de7 4c0afe5 0f27de7 3337c5d 0f27de7 4c0afe5 0f27de7 3337c5d 0f27de7 4c0afe5 3337c5d 0f27de7 4c0afe5 0f27de7 4c0afe5 3337c5d 0f27de7 3337c5d 0f27de7 3337c5d 0f27de7 3337c5d 0f27de7 4c0afe5 0f27de7 3337c5d 0f27de7 4c0afe5 3337c5d 4c0afe5 0f27de7 3337c5d 25b4391 3337c5d 4c0afe5 0f27de7 3337c5d 4c0afe5 7902802 4c0afe5 3337c5d 0f27de7 4c0afe5 0f27de7 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>Authrix</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
width: 320px;
background: #0c150f;
color: #dae5da;
font-family: 'Segoe UI', system-ui, sans-serif;
font-size: 13px;
}
/* ββ Header ββ */
.header {
padding: 14px 16px 12px;
border-bottom: 1px solid rgba(0,255,156,0.12);
background: rgba(0,255,156,0.04);
display: flex; align-items: center; justify-content: space-between;
}
.logo {
display: flex; align-items: center; gap: 8px;
font-size: 14px; font-weight: 700; letter-spacing: 0.12em;
color: #00ff9c; text-shadow: 0 0 10px rgba(0,255,156,0.4);
}
.logo-dot {
width: 8px; height: 8px; border-radius: 50%;
background: #00ff9c; box-shadow: 0 0 8px #00ff9c;
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%,100% { opacity:1; box-shadow:0 0 8px #00ff9c; }
50% { opacity:0.4; box-shadow:none; }
}
.status-badge {
font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
padding: 3px 8px; border-radius: 99px;
border: 1px solid rgba(0,255,156,0.3);
color: #00ff9c; background: rgba(0,255,156,0.08);
}
.status-badge.offline {
border-color: rgba(255,68,102,0.3);
color: #ff4466; background: rgba(255,68,102,0.08);
}
.status-badge.loading {
border-color: rgba(255,170,0,0.3);
color: #ffaa00; background: rgba(255,170,0,0.08);
}
/* ββ Body ββ */
.body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
/* Page info */
.page-card {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.07);
border-radius: 8px; padding: 9px 12px;
display: flex; align-items: center; gap: 10px;
}
.page-icon { font-size: 18px; flex-shrink: 0; }
.page-title {
font-size: 11px; font-weight: 600; color: #dae5da;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.page-sub { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 2px; }
/* Main capture button */
.btn-capture {
width: 100%; padding: 13px;
background: linear-gradient(135deg, #00ff9c, #00cc6a);
color: #002110; border: none; border-radius: 10px;
font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
cursor: pointer; transition: all 0.2s;
box-shadow: 0 0 24px rgba(0,255,156,0.3);
display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-capture:hover {
transform: translateY(-1px);
box-shadow: 0 0 36px rgba(0,255,156,0.5);
}
.btn-capture:active { transform: scale(0.98); }
.btn-capture:disabled {
opacity: 0.4; cursor: not-allowed; transform: none;
box-shadow: none;
}
/* Divider */
.divider {
display: flex; align-items: center; gap: 8px;
color: rgba(255,255,255,0.2); font-size: 10px; letter-spacing: 0.1em;
}
.divider::before, .divider::after {
content: ''; flex: 1; height: 1px;
background: rgba(255,255,255,0.07);
}
/* URL input */
.url-row { display: flex; gap: 6px; }
.url-input {
flex: 1; padding: 8px 10px;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 7px; color: #dae5da;
font-size: 11px; font-family: monospace;
outline: none; transition: border-color 0.2s;
}
.url-input::placeholder { color: rgba(255,255,255,0.2); }
.url-input:focus { border-color: rgba(0,255,156,0.4); }
.btn-url {
padding: 8px 12px;
background: rgba(0,255,156,0.1);
border: 1px solid rgba(0,255,156,0.25);
border-radius: 7px; color: #00ff9c;
font-size: 11px; font-weight: 600; cursor: pointer;
transition: all 0.2s; white-space: nowrap;
}
.btn-url:hover { background: rgba(0,255,156,0.18); }
.btn-url:disabled { opacity: 0.4; cursor: not-allowed; }
/* How it works */
.how-it-works {
background: rgba(255,255,255,0.02);
border: 1px solid rgba(255,255,255,0.05);
border-radius: 8px; padding: 9px 12px;
}
.how-label {
font-size: 9px; font-weight: 700; letter-spacing: 0.15em;
color: rgba(255,255,255,0.25); text-transform: uppercase; margin-bottom: 7px;
}
.how-step {
display: flex; align-items: center; gap: 8px;
font-size: 10px; color: rgba(255,255,255,0.4); padding: 2px 0;
}
.how-step-num {
width: 16px; height: 16px; border-radius: 50%;
background: rgba(0,255,156,0.1); border: 1px solid rgba(0,255,156,0.2);
display: flex; align-items: center; justify-content: center;
font-size: 9px; font-weight: 700; color: #00ff9c; flex-shrink: 0;
}
/* Last result */
#last-result {
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.07);
border-radius: 8px; padding: 9px 12px;
display: none;
}
.result-label {
font-size: 9px; font-weight: 700; letter-spacing: 0.15em;
color: rgba(255,255,255,0.25); text-transform: uppercase; margin-bottom: 5px;
}
.result-row { display: flex; align-items: center; justify-content: space-between; }
.result-verdict { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.result-conf { font-size: 16px; font-weight: 700; font-family: monospace; }
.result-bar-wrap {
height: 3px; background: rgba(255,255,255,0.06);
border-radius: 99px; overflow: hidden; margin: 5px 0;
}
.result-bar { height: 100%; border-radius: 99px; transition: width 0.8s ease; }
.result-file { font-size: 9px; color: rgba(255,255,255,0.2); font-family: monospace;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Footer */
.footer {
padding: 9px 16px;
border-top: 1px solid rgba(255,255,255,0.05);
display: flex; align-items: center; justify-content: space-between;
}
.footer-link {
font-size: 10px; color: rgba(0,255,156,0.5);
text-decoration: none; letter-spacing: 0.06em; transition: color 0.2s;
}
.footer-link:hover { color: #00ff9c; }
.model-info { font-size: 9px; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }
/* Offline warning */
#offline-warn {
display: none;
background: rgba(255,68,102,0.06);
border: 1px solid rgba(255,68,102,0.2);
border-radius: 7px; padding: 8px 10px;
font-size: 10px; color: rgba(255,68,102,0.8);
line-height: 1.5;
}
#offline-warn code {
display: block; margin-top: 4px;
font-family: monospace; color: rgba(255,68,102,0.6);
}
</style>
</head>
<body>
<div class="header">
<div class="logo">
<div class="logo-dot"></div>
AUTHRIX AI
</div>
<div id="statusBadge" class="status-badge offline">OFFLINE</div>
</div>
<div class="body">
<!-- Current page -->
<div class="page-card">
<div class="page-icon">π¬</div>
<div style="flex:1;min-width:0;">
<div class="page-title" id="pageTitle">Loadingβ¦</div>
<div class="page-sub" id="pageSub">Detecting page</div>
</div>
</div>
<!-- Offline warning -->
<div id="offline-warn">
Backend not reachable.
<code>Visit: aarav13-authrix.hf.space</code>
</div>
<!-- Main capture button -->
<button class="btn-capture" id="btnCapture">
<span>⬀</span> Capture & Analyze Video
</button>
<!-- Divider -->
<div class="divider">OR PASTE URL</div>
<!-- URL input -->
<div class="url-row">
<input class="url-input" id="urlInput" type="url"
placeholder="https://example.com/video.mp4" />
<button class="btn-url" id="btnUrl">Analyze</button>
</div>
<!-- How it works -->
<div class="how-it-works">
<div class="how-label">How it works</div>
<div class="how-step"><div class="how-step-num">1</div>Records 8s of the playing video</div>
<div class="how-step"><div class="how-step-num">2</div>Sends to local AI for analysis</div>
<div class="how-step"><div class="how-step-num">3</div>Shows FAKE / REAL verdict on page</div>
</div>
<!-- Last result -->
<div id="last-result">
<div class="result-label">Last Result</div>
<div class="result-row">
<div id="lastVerdict" class="result-verdict">β</div>
<div id="lastConf" class="result-conf">β</div>
</div>
<div class="result-bar-wrap">
<div id="lastBar" class="result-bar" style="width:0%"></div>
</div>
<div id="lastFile" class="result-file">β</div>
</div>
</div>
<div class="footer">
<a class="footer-link" href="http://localhost:8000" target="_blank">Open Full App β</a>
<div class="model-info" id="modelInfo">VIT ENSEMBLE</div>
</div>
<script src="popup.js"></script>
</body>
</html>
|