-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
423 lines (379 loc) · 22.8 KB
/
Copy pathindex.html
File metadata and controls
423 lines (379 loc) · 22.8 KB
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
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AURA: Augmented Utility Reality Assistant</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<!-- Phosphor Icons -->
<script src="https://unpkg.com/@phosphor-icons/web"></script>
<style>
:root {
--primary-color: #00aaff;
--secondary-color: #0a2540;
--dark-bg: #031525;
--light-bg: #0a2540;
--text-color: #e0f7ff;
--text-muted-color: #a0c8e0;
--warning-color: #ffc107;
--danger-color: #ff4d4d;
}
body {
font-family: 'Poppins', sans-serif;
background-color: var(--dark-bg);
color: var(--text-color);
}
.navbar {
background-color: rgba(10, 37, 64, 0.8);
backdrop-filter: blur(10px);
}
.hero {
background: linear-gradient(rgba(3, 21, 37, 0.85), rgba(3, 21, 37, 0.95)), url('https://images.unsplash.com/photo-1557954245-5025a2512753?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80') no-repeat center center;
background-size: cover;
padding: 100px 0;
text-align: center;
}
.hero h1 { font-weight: 700; color: white; }
.hero .lead { color: var(--text-muted-color); max-width: 700px; margin: 0 auto; }
.btn { transition: all 0.3s ease; }
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
.btn-primary:hover {
background-color: #0088cc;
border-color: #0088cc;
transform: translateY(-2px);
box-shadow: 0 4px 20px rgba(0, 170, 255, 0.4);
}
.section-title { text-align: center; margin-bottom: 50px; font-weight: 600; color: white; }
.section-title span { color: var(--primary-color); }
.feature-card {
background-color: var(--light-bg);
border: 1px solid var(--secondary-color);
border-radius: 15px;
padding: 30px;
text-align: center;
height: 100%;
transition: all 0.3s ease;
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 30px rgba(0, 170, 255, 0.1);
border-color: var(--primary-color);
}
.feature-card i { font-size: 48px; color: var(--primary-color); margin-bottom: 20px; }
#simulation-section { background-color: var(--secondary-color); padding: 80px 0; }
#ar-viewport {
position: relative;
background-color: #000;
border: 1px solid var(--primary-color);
border-radius: 15px;
overflow: hidden;
box-shadow: 0 0 35px rgba(0, 170, 255, 0.2);
aspect-ratio: 4 / 3;
}
#ar-viewport::before, #ar-viewport::after {
content: '';
position: absolute;
inset: 0;
background-image: linear-gradient(to right, rgba(0,170,255,0.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(0,170,255,0.1) 1px, transparent 1px);
background-size: 20px 20px;
pointer-events: none;
}
#ar-viewport::after {
background: linear-gradient(to bottom, transparent, rgba(0, 170, 255, 0.5), transparent);
top: -100%;
animation: scan-line 5s linear infinite;
}
#ar-viewport img { width: 100%; height: 100%; object-fit: cover; }
.ar-hotspot {
position: absolute;
width: 25px;
height: 25px;
background-color: var(--primary-color);
border-radius: 50%;
border: 2px solid white;
cursor: pointer;
transition: all 0.3s ease;
animation: pulse-blue 2s infinite;
}
.ar-hotspot.warning { background-color: var(--warning-color); animation-name: pulse-yellow; }
.ar-hotspot:hover { transform: scale(1.3); animation-play-state: paused; }
.ar-overlay {
position: absolute;
background-color: rgba(10, 37, 64, 0.95);
border: 1px solid var(--primary-color);
border-radius: 8px;
padding: 15px;
width: 220px;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, transform 0.3s;
transform: translateY(10px);
pointer-events: none;
backdrop-filter: blur(5px);
}
.ar-hotspot.active + .ar-overlay { opacity: 1; visibility: visible; transform: translateY(0); }
.ar-overlay h6 { color: var(--primary-color); margin-bottom: 10px; font-weight: bold; }
.ar-overlay p { margin-bottom: 5px; font-size: 0.9em; }
#control-panel { background-color: var(--light-bg); border-radius: 15px; padding: 25px; height: 100%; }
#ai-log-window {
height: 120px;
background-color: var(--dark-bg);
border-radius: 10px;
padding: 15px;
font-family: monospace;
font-size: 0.9em;
overflow-y: auto;
border: 1px solid var(--secondary-color);
}
#ai-log-window .log-entry:before { content: '>> '; color: var(--primary-color); }
#typing-cursor {
display: inline-block;
background-color: var(--text-color);
width: 8px;
height: 1em;
animation: blink 1s step-end infinite;
}
.progress-label { display: flex; justify-content: space-between; font-size: 0.9em; margin-bottom: 5px; }
.progress { height: 10px; background-color: var(--secondary-color); border-radius: 5px; }
.progress-bar { background-color: var(--primary-color); }
/* --- FIX: Styles for Remote Assist Chat --- */
.modal-content {
background-color: var(--light-bg);
border: 1px solid var(--primary-color);
color: var(--text-color);
}
.modal-header, .modal-footer {
border-bottom: 1px solid var(--secondary-color);
border-top: 1px solid var(--secondary-color);
}
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
#chat-window {
height: 250px;
overflow-y: auto;
background-color: var(--dark-bg);
border-radius: 10px;
padding: 15px;
margin-bottom: 15px;
}
.chat-message {
margin-bottom: 10px;
opacity: 0;
animation: fadeIn 0.5s forwards;
}
.chat-message .sender {
font-weight: 700;
color: var(--primary-color);
}
/* --- END FIX --- */
@keyframes scan-line { 0% { top: -100%; } 100% { top: 100%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(0, 170, 255, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(0, 170, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 170, 255, 0); } }
@keyframes pulse-yellow { 0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(255, 193, 7, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); } }
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark sticky-top">
<div class="container">
<a class="navbar-brand fw-bold" href="#"><i class="ph-bold ph-sparkle"></i> AURA</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="#features">Features</a></li>
<li class="nav-item"><a class="nav-link" href="#simulation">Live Demo</a></li>
<li class="nav-item"><a class="nav-link" href="#impact">Impact</a></li>
</ul>
</div>
</div>
</nav>
<header class="hero">
<div class="container">
<h1 class="display-4">AURA: Augmented Utility Reality Assistant</h1>
<p class="lead mt-3">Empowering field engineers with a live, AI-powered AR interface for safer and smarter substation maintenance.</p>
<a href="#simulation" class="btn btn-primary btn-lg mt-4">Try the Interactive Demo</a>
</div>
</header>
<section id="simulation-section">
<div class="container">
<h2 class="section-title"><span>Live</span> AR Simulation</h2>
<div class="row g-4 align-items-stretch">
<div class="col-lg-7">
<div id="ar-viewport">
<img src="https://i.pinimg.com/474x/22/36/ed/2236eda98cead6d40e0566991197bb4c.jpg" class="img-fluid" alt="Circuit Breaker">
<div class="ar-hotspot" id="hotspot1" style="top: 25%; left: 30%;"></div>
<div class="ar-overlay" style="top: 28%; left: 32%;">
<h6>Insulator Bushing</h6>
<p><i class="ph-fill ph-shield-check"></i> Status: <span class="text-success">Nominal</span></p>
<p><i class="ph-fill ph-waves"></i> Dielectric Strength: Good</p>
</div>
<div class="ar-hotspot warning" id="hotspot2" style="top: 55%; left: 50%;"></div>
<div class="ar-overlay" style="top: 58%; left: 52%;">
<h6>Main Contact Housing</h6>
<p><i class="ph-fill ph-warning"></i> Status: <span class="text-warning">Warning</span></p>
<p><i class="ph-fill ph-thermometer-simple"></i> Temp: <span class="live-data" data-base="85">85.2</span>°C</p>
<p><i class="ph-fill ph-arrows-clockwise"></i> Ops Count: 1,892</p>
</div>
<div class="ar-hotspot" id="hotspot3" style="bottom: 15%; left: 65%;"></div>
<div class="ar-overlay" style="bottom: 18%; left: 67%;">
<h6>Control Mechanism</h6>
<p><i class="ph-fill ph-shield-check"></i> Status: <span class="text-success">Healthy</span></p>
<p><i class="ph-fill ph-cpu"></i> Last Diagnostic: OK</p>
</div>
</div>
</div>
<div class="col-lg-5">
<div id="control-panel" class="d-flex flex-column">
<h5><i class="ph-fill ph-crosshair"></i> AURA Control Panel</h5>
<p class="text-muted-color small">Click a pulsing hotspot on the AR view to get live data and AI diagnostics.</p>
<div class="mt-3">
<div class="progress-label"><span>AI Core</span><span>Online</span></div>
<div class="progress"><div class="progress-bar" style="width: 95%"></div></div>
</div>
<div class="mt-3">
<div class="progress-label"><span>Sensor Array</span><span>98%</span></div>
<div class="progress"><div class="progress-bar" style="width: 98%"></div></div>
</div>
<div class="mt-3 mb-4">
<div class="progress-label"><span>Network</span><span>Stable</span></div>
<div class="progress"><div class="progress-bar" style="width: 92%"></div></div>
</div>
<h6><i class="ph-fill ph-robot"></i> Live AI Log</h6>
<div id="ai-log-window" class="mb-3">
<span class="text-muted-color">Awaiting component selection...</span>
</div>
<div class="d-grid gap-2 mt-auto">
<button class="btn btn-primary" id="startWorkflowBtn" data-bs-toggle="modal" data-bs-target="#workflowModal" disabled>
<i class="ph ph-list-checks"></i> Start Maintenance Procedure
</button>
<button class="btn btn-outline-light" id="remoteAssistBtn" data-bs-toggle="modal" data-bs-target="#assistModal" disabled>
<i class="ph ph-user-switch"></i> Request Remote Expert
</button>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="features" class="container py-5">
<h2 class="section-title"><span>Key</span> Features</h2>
<div class="row g-4"><div class="col-md-3"><div class="feature-card"><i class="ph-duotone ph-stack"></i><h5>Live Data Overlay</h5></div></div><div class="col-md-3"><div class="feature-card"><i class="ph-duotone ph-list-checks"></i><h5>AI-Guided Workflows</h5></div></div><div class="col-md-3"><div class="feature-card"><i class="ph-duotone ph-user-switch"></i><h5>Remote Expert Assist</h5></div></div><div class="col-md-3"><div class="feature-card"><i class="ph-duotone ph-floppy-disk"></i><h5>Automated Logging</h5></div></div></div>
</section>
<section id="impact" class="py-5" style="background-color: var(--secondary-color);"><div class="container"><h2 class="section-title"><span>Real-World</span> Impact</h2><div class="row g-4"><div class="col-md-4"><div class="feature-card"><i class="ph-duotone ph-shield-check"></i><h5>+50% Safety</h5><p class="text-muted-color">Reduced human error in high-voltage environments.</p></div></div><div class="col-md-4"><div class="feature-card"><i class="ph-duotone ph-timer"></i><h5>-30% Downtime</h5><p class="text-muted-color">Faster diagnostics and repairs increase grid uptime.</p></div></div><div class="col-md-4"><div class="feature-card"><i class="ph-duotone ph-lightbulb"></i><h5>+40% Efficiency</h5><p class="text-muted-color">Streamlined workflows empower a productive field force.</p></div></div></div></div></section>
<footer class="text-muted-color py-4"><div class="container text-center"><p>© 2025 ZypherX</p></div></footer>
<!-- Workflow Modal -->
<div class="modal fade" id="workflowModal" tabindex="-1"><div class="modal-dialog modal-dialog-centered"><div class="modal-content"><div class="modal-header"><h5 class="modal-title"><i class="ph-fill ph-list-checks"></i> Maintenance: CB-101</h5><button type="button" class="btn-close" data-bs-dismiss="modal"></button></div><div class="modal-body"><p>Follow the steps to safely perform maintenance.</p><div class="progress mb-3" style="height: 20px;"><div id="workflow-progress" class="progress-bar" role="progressbar" style="width: 0%; background-color: var(--primary-color);">0%</div></div><div class="form-check"><input class="form-check-input" type="checkbox" id="step1"><label class="form-check-label" for="step1">Step 1: Verify Remote De-energization</label></div><div class="form-check"><input class="form-check-input" type="checkbox" id="step2"><label class="form-check-label" for="step2">Step 2: Apply Local Lockout-Tagout</label></div><div class="form-check"><input class="form-check-input" type="checkbox" id="step3"><label class="form-check-label" for="step3">Step 3: Test for Absence of Voltage</label></div><div class="form-check"><input class="form-check-input" type="checkbox" id="step4"><label class="form-check-label" for="step4">Step 4: Attach Safety Grounding</label></div></div><div class="modal-footer"><button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button></div></div></div></div>
<!-- Remote Assist Modal -->
<div class="modal fade" id="assistModal" tabindex="-1"><div class="modal-dialog modal-dialog-centered"><div class="modal-content"><div class="modal-header"><h5 class="modal-title"><i class="ph-fill ph-user-switch"></i> Remote Expert Connected</h5><button type="button" class="btn-close" data-bs-dismiss="modal"></button></div><div class="modal-body"><p>You are connected with Senior Engineer G. Sharma.</p><div class="ratio ratio-16x9 mb-3 rounded" style="background-color: #031525;"><img src="https://i.pinimg.com/736x/8d/2e/16/8d2e16dc6a0601dd4903516f157563d1.jpg" class="img-fluid" alt="Expert Feed"></div><div id="chat-window"></div></div><div class="modal-footer"><button type="button" class="btn btn-danger" data-bs-dismiss="modal">End Call</button></div></div></div></div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
const hotspots = document.querySelectorAll('.ar-hotspot');
const aiLogWindow = document.getElementById('ai-log-window');
const startWorkflowBtn = document.getElementById('startWorkflowBtn');
const remoteAssistBtn = document.getElementById('remoteAssistBtn');
const aiDiagnostics = {
hotspot1: "Analyzing Insulator Bushing... Dielectric strength is nominal. No ultrasonic anomalies detected. Component is healthy.",
hotspot2: "Analyzing Main Contact... DCRM signature shows deviation. Correlating with thermal data... High temperature suggests significant contact wear. Recommend immediate inspection.",
hotspot3: "Analyzing Control Mechanism... Actuator response time is within parameters. All systems nominal. Component is healthy."
};
let typingTimeout;
function typeLog(text) {
clearTimeout(typingTimeout);
aiLogWindow.innerHTML = '';
let i = 0;
const entry = document.createElement('span');
entry.className = 'log-entry';
aiLogWindow.appendChild(entry);
const cursor = document.createElement('span');
cursor.id = 'typing-cursor';
aiLogWindow.appendChild(cursor);
function typing() {
if (i < text.length) {
entry.innerHTML += text.charAt(i);
i++;
aiLogWindow.scrollTop = aiLogWindow.scrollHeight;
typingTimeout = setTimeout(typing, 25);
} else {
cursor.style.display = 'none';
}
}
typing();
}
hotspots.forEach(hotspot => {
hotspot.addEventListener('click', function(event) {
event.stopPropagation();
hotspots.forEach(h => h.classList.remove('active'));
this.classList.add('active');
startWorkflowBtn.disabled = false;
remoteAssistBtn.disabled = false;
typeLog(aiDiagnostics[this.id]);
});
});
document.addEventListener('click', function() {
hotspots.forEach(h => h.classList.remove('active'));
});
setInterval(function() {
document.querySelectorAll('.live-data').forEach(el => {
const baseValue = parseFloat(el.getAttribute('data-base'));
const fluctuation = (Math.random() - 0.5) * 0.5;
const newValue = (baseValue + fluctuation).toFixed(1);
el.textContent = newValue;
});
}, 2000);
const workflowModal = document.getElementById('workflowModal');
workflowModal.addEventListener('shown.bs.modal', function() {
const checkboxes = workflowModal.querySelectorAll('.form-check-input');
const progressBar = document.getElementById('workflow-progress');
const totalSteps = checkboxes.length;
function updateProgress() {
const checkedSteps = workflowModal.querySelectorAll('.form-check-input:checked').length;
const percentage = Math.round((checkedSteps / totalSteps) * 100);
progressBar.style.width = percentage + '%';
progressBar.textContent = percentage + '%';
}
checkboxes.forEach(cb => { cb.checked = false; cb.addEventListener('change', updateProgress); });
updateProgress();
});
// --- FIX: Remote Assist Logic ---
const assistModal = document.getElementById('assistModal');
assistModal.addEventListener('shown.bs.modal', function() {
const chatWindow = document.getElementById('chat-window');
chatWindow.innerHTML = '';
const messages = [
{ sender: 'G. Sharma', text: 'Okay, I can see your view. What seems to be the issue with CB-101?' },
{ sender: 'You', text: 'Seeing some unusual vibration during operation.' },
{ sender: 'G. Sharma', text: 'Understood. Let me pull up its maintenance history. I am highlighting the main contact housing. Please check that area for any visible stress fractures.' },
{ sender: 'G. Sharma', text: 'I\'ve sent the thermal scan procedure to your device.' }
];
let delay = 0;
messages.forEach(msg => {
setTimeout(() => {
const msgElement = document.createElement('div');
// Use the CSS class for styling and animation
msgElement.classList.add('chat-message');
msgElement.innerHTML = `<span class="sender">${msg.sender}:</span> ${msg.text}`;
chatWindow.appendChild(msgElement);
chatWindow.scrollTop = chatWindow.scrollHeight;
}, delay);
delay += 1500;
});
});
// --- END FIX ---
});
</script>
</body>
</html>