-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
570 lines (502 loc) · 27.7 KB
/
Copy pathindex.html
File metadata and controls
570 lines (502 loc) · 27.7 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
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WEMARS | Western Engineering Mobile Advanced Robotics Society</title>
<!--Google Fonts link-->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload" as="font" href="fonts/poppins.woff2" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Chakra+Petch:wght@500;600;700" rel="stylesheet">
<!--Links css file to html site-->
<link rel="stylesheet" href="style.css">
<!--Links bootstrapcdn-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<section class="header">
<nav>
<a href="index.html"><img src="images/WEMARS_Logo_New.png"></a>
<div class="nav-links" id="navLinks">
<ul>
<li><a href="index.html"><span class="top"><span>Home</span></span><span class="bottom"><span>Home</span></span></a></li>
<li><a href="about.html"><span class="top"><span>About</span></span><span class="bottom"><span>About</span></span></a></li>
<li><a href="subsystems.html"><span class="top"><span>Subsystems</span></span><span class="bottom"><span>Subsystems</span></span></a></li>
<li><a href="sponsor.html"><span class="top"><span>Sponsor</span></span><span class="bottom"><span>Sponsor</span></span></a></li>
<li><a href="Join.html"><span class="top"><span>Join Us</span></span><span class="bottom"><span>Join Us</span></span></a></li>
</ul>
</div>
</nav>
<nav class="m-nav">
<div class="responsive-nav">
<a href="javascript:void(0);" class="icon" onclick="toggleMenu()" aria-expanded="false" aria-label="Open menu"><i class="fa fa-bars"></i></a>
<img src="images/WEMARS_Logo_New.png" class="logo">
<div class="bar" id="myLinks">
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="subsystems.html">Subsystems</a>
<a href="sponsor.html">Sponsor</a>
<a href="Join.html">Join Us</a>
</div>
</div>
</nav>
<div class="hero-overlay">
<p class="hero-eyebrow">Western Engineering Mobile Advanced Robotics Society</p>
<h1 class="hero-title">WEMARS</h1>
<p class="hero-sub">A student-led team designing, building, and testing rovers to take on the
toughest terrain and the world's biggest rover competitions.</p>
</div>
<a href="#intro" class="scroll-cue" aria-label="Scroll down">
<span class="scroll-dot"></span>
</a>
</section>
<!-- Who are we -->
<section class="section" id="intro">
<div class="container">
<div class="feature">
<div class="feature-media">
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1 / 4</div>
<img src="images/Wemars members.jpg" alt="WE Mars team members">
</div>
<div class="mySlides fade">
<div class="numbertext">2 / 4</div>
<img src="images/Slideshow/20240810_203838_cropped.jpg" alt="WE Mars team at work">
</div>
<div class="mySlides fade">
<div class="numbertext">3 / 4</div>
<img src="images/Slideshow/DSC02970.jpg" alt="WE Mars rover build">
</div>
<div class="mySlides fade">
<div class="numbertext">4 / 4</div>
<img src="images/Slideshow/IMG_7406.jpg" alt="WE Mars team in the field">
</div>
</div>
</div>
<div class="feature-body">
<span class="section-eyebrow">Who we are</span>
<h2 class="section-title">Who <span class="grad">are we?</span></h2>
<p class="lead">WEMARS is a student-led, multidisciplinary team building rovers for
Mars-like environments. We focus on hands-on learning while competing at the Canadian
International Rover Challenge and the University Rover Challenge.</p>
</div>
</div>
</div>
</section>
<!-- Rover spotlight -->
<section class="section" id="rover">
<div class="container">
<div class="feature">
<div class="feature-body">
<span class="section-eyebrow">The machine</span>
<h2 class="section-title">Meet the <span class="grad">rover</span></h2>
<p class="lead">Our new rover brings every subsystem together in one rugged, autonomous platform
built for the competition field, optimized for weight at just 22 kg.</p>
</div>
<div class="feature-media">
<div class="rover-viewer" id="rover-viewer">
<img id="rover-orbit" src="images/Rover_Orbit2/Data/images_webp/Frame000109.webp" alt="WE Mars rover 360 view" draggable="false">
<span class="rover-viewer-hint">Drag to rotate · up/down for angle</span>
</div>
</div>
</div>
</div>
</section>
<!-- Subsystems showcase -->
<section class="section" id="subsystems">
<div class="container center">
<span class="section-eyebrow">What we build</span>
<h2 class="section-title">Engineered across <span class="grad">every subsystem</span></h2>
<p class="lead">Each part of the rover is designed, built, and tested in-house by a dedicated subteam.</p>
</div>
<div class="container subsystem-wrap">
<div class="subsystem-cards">
<a class="sub-card" href="subsystems.html#mechanical">
<i class="fa-solid fa-gears"></i>
<h3>Mechanical</h3>
<p>Chassis, drivetrain, and the robotic arm that let our rover conquer rough terrain.</p>
<span class="sub-link">Learn more <i class="fa-solid fa-arrow-right"></i></span>
</a>
<a class="sub-card" href="subsystems.html#electrical">
<i class="fa-solid fa-bolt"></i>
<h3>Electrical</h3>
<p>Power distribution, motor control, and the wiring that keeps every system alive.</p>
<span class="sub-link">Learn more <i class="fa-solid fa-arrow-right"></i></span>
</a>
<a class="sub-card" href="subsystems.html#software">
<i class="fa-solid fa-code"></i>
<h3>Software</h3>
<p>Autonomy, computer vision, and the control stack that brings the rover to life.</p>
<span class="sub-link">Learn more <i class="fa-solid fa-arrow-right"></i></span>
</a>
<a class="sub-card" href="subsystems.html#science">
<i class="fa-solid fa-flask"></i>
<h3>Science</h3>
<p>On-board instruments and analysis for studying soil, samples, and signs of life.</p>
<span class="sub-link">Learn more <i class="fa-solid fa-arrow-right"></i></span>
</a>
<a class="sub-card" href="subsystems.html#business">
<i class="fa-solid fa-briefcase"></i>
<h3>Business</h3>
<p>Sponsorship, outreach, and operations that keep the team moving forward.</p>
<span class="sub-link">Learn more <i class="fa-solid fa-arrow-right"></i></span>
</a>
<a class="sub-card sub-card--cta" href="subsystems.html">
<i class="fa-solid fa-arrow-right-long"></i>
<h3>Explore all</h3>
<p>See how every subsystem comes together to build a competition-ready rover.</p>
<span class="sub-link">All subsystems <i class="fa-solid fa-arrow-right"></i></span>
</a>
</div>
</div>
</section>
<!-- Gallery -->
<section class="section" id="gallery">
<div class="container center">
<span class="section-eyebrow">Gallery</span>
<h2 class="section-title">From the <span class="grad">field</span></h2>
<p class="lead">Snapshots from builds, tests, and competitions across Canada.</p>
</div>
<div class="container gallery-wrap">
<div class="gallery-grid">
<button class="gallery-item" type="button" aria-label="View CIRC 2025 all teams group photo">
<img src="images/Field_Images/CIRC%202025%20All%20teams%20group%20picture.jpg" alt="CIRC 2025 all teams group photo">
</button>
<button class="gallery-item" type="button" aria-label="View rover in front of competition board">
<img src="images/Field_Images/Rover%20in%20front%20of%20board.jpg" alt="Rover in front of competition board">
</button>
<button class="gallery-item" type="button" aria-label="View Welcome to Drumheller sign">
<img src="images/Field_Images/Welcome%20to%20Drumheller.jpg" alt="Welcome to Drumheller sign">
</button>
<button class="gallery-item" type="button" aria-label="View safety first at the field">
<img src="images/Field_Images/Safety%20first.jpg" alt="Safety first at the field">
</button>
<button class="gallery-item" type="button" aria-label="View team celebrating in the field">
<img src="images/Field_Images/Hell%20yea.jpg" alt="Team celebrating in the field">
</button>
<button class="gallery-item" type="button" aria-label="View night traversal at the creek">
<img src="images/Field_Images/Night%20traversal%20creek.JPEG" alt="Night traversal at the creek">
</button>
<button class="gallery-item" type="button" aria-label="View reactor maintenance panel">
<img src="images/Field_Images/Reactor%20maintenance%20panel.JPEG" alt="Reactor maintenance panel">
</button>
<button class="gallery-item" type="button" aria-label="View reactor maintenance in the field">
<img src="images/Field_Images/Reactor%20maintenance%202.JPEG" alt="Reactor maintenance in the field">
</button>
<button class="gallery-item" type="button" aria-label="View reactor maintenance work">
<img src="images/Field_Images/Reactor%20maintenance%203.JPEG" alt="Reactor maintenance work">
</button>
<button class="gallery-item" type="button" aria-label="View team at the competition field">
<img src="images/Field_Images/IMG_7196.jpg" alt="Team at the competition field">
</button>
</div>
</div>
</section>
<div class="gallery-overlay" id="gallery-overlay" onclick="closeGalleryLightbox()"></div>
<div class="gallery-lightbox" id="gallery-lightbox" role="dialog" aria-modal="true" aria-label="Gallery image preview">
<button class="gallery-lightbox__close" type="button" aria-label="Close" onclick="closeGalleryLightbox()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
<button class="gallery-lightbox__nav gallery-lightbox__nav--prev" type="button" aria-label="Previous image" onclick="stepGalleryLightbox(-1)">
<i class="fa-solid fa-chevron-left"></i>
</button>
<figure class="gallery-lightbox__figure">
<img id="gallery-lightbox-img" src="" alt="">
<figcaption id="gallery-lightbox-caption"></figcaption>
</figure>
<button class="gallery-lightbox__nav gallery-lightbox__nav--next" type="button" aria-label="Next image" onclick="stepGalleryLightbox(1)">
<i class="fa-solid fa-chevron-right"></i>
</button>
</div>
<!-- CTA band -->
<section class="cta-band">
<div class="container cta-inner">
<span class="section-eyebrow">Join the mission</span>
<h2>Build the future of Mars exploration</h2>
<p class="lead">Whether you want to engineer, code, research, or lead, there's a place for you on
the team.</p>
<div class="cta-actions">
<a href="Join.html" class="btn btn-primary">Join the Team</a>
<a href="sponsor.html" class="btn btn-ghost">Become a Sponsor</a>
</div>
</div>
</section>
<section class="footer">
<h2>WE Mars Team</h2>
<h3>1151 Richmond St<br>London, ON N6A 3K7</h3>
<a href="sponsor.html" class="hero-btn" id="contact-btn">CONTACT US</a>
<div class="icons-container">
<div class="icons"><a href=""><i class="fa-brands fa-facebook fa-2xl"></i></a></div>
<div class="icons"><a href="https://www.instagram.com/we.mars/"><i class="fa-brands fa-instagram fa-2xl"></i></a></div>
<div class="icons"><a href="https://www.linkedin.com/company/western-engineering-mars-rover-team/about/"><i class="fa-brands fa-linkedin fa-2xl"></i></a></div>
</div>
<p>Made by WeMars members</p>
</section>
<!--Javascript for Toggle Menu-->
<script>
var navLinks = document.getElementById("navLinks");
function showMenu(){
navLinks.style.right = "0";
}
function hideMenu(){
navLinks.style.right = "-200px";
}
function toggleMenu() {
var menu = document.getElementById("myLinks");
var isOpen = menu.classList.toggle("is-open");
var icon = document.querySelector(".m-nav .icon");
if (icon) {
icon.setAttribute("aria-expanded", isOpen ? "true" : "false");
icon.setAttribute("aria-label", isOpen ? "Close menu" : "Open menu");
}
var iconMark = icon && icon.querySelector("i");
if (iconMark) {
iconMark.classList.toggle("fa-bars", !isOpen);
iconMark.classList.toggle("fa-xmark", isOpen);
}
}
</script>
<script>
(function () {
var galleryItems = Array.prototype.slice.call(document.querySelectorAll('.gallery-item'));
var overlay = document.getElementById('gallery-overlay');
var lightbox = document.getElementById('gallery-lightbox');
var lightboxImg = document.getElementById('gallery-lightbox-img');
var caption = document.getElementById('gallery-lightbox-caption');
var currentIndex = 0;
function updateGalleryLightbox() {
var img = galleryItems[currentIndex].querySelector('img');
lightboxImg.src = img.src;
lightboxImg.alt = img.alt;
caption.textContent = img.alt;
}
window.openGalleryLightbox = function (index) {
if (!galleryItems.length || !overlay || !lightbox) return;
currentIndex = index;
updateGalleryLightbox();
overlay.classList.add('active');
lightbox.classList.add('active');
document.body.style.overflow = 'hidden';
};
window.closeGalleryLightbox = function () {
if (!overlay || !lightbox) return;
overlay.classList.remove('active');
lightbox.classList.remove('active');
document.body.style.overflow = '';
};
window.stepGalleryLightbox = function (direction) {
if (!galleryItems.length) return;
currentIndex = (currentIndex + direction + galleryItems.length) % galleryItems.length;
updateGalleryLightbox();
};
galleryItems.forEach(function (item, index) {
item.addEventListener('click', function () {
openGalleryLightbox(index);
});
});
document.addEventListener('keydown', function (event) {
if (!lightbox || !lightbox.classList.contains('active')) return;
if (event.key === 'Escape') {
closeGalleryLightbox();
} else if (event.key === 'ArrowLeft') {
stepGalleryLightbox(-1);
} else if (event.key === 'ArrowRight') {
stepGalleryLightbox(1);
}
});
if (lightbox) {
lightbox.addEventListener('click', function (event) {
event.stopPropagation();
});
}
})();
</script>
<script>
let slideIndex = 0;
showSlides();
function showSlides() {
let i;
let slides = document.getElementsByClassName("mySlides");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) {slideIndex = 1}
slides[slideIndex-1].style.display = "block";
setTimeout(showSlides, 5000);
}
</script>
<script>
(function () {
const viewer = document.getElementById('rover-viewer');
const img = document.getElementById('rover-orbit');
if (!viewer || !img) return;
const COLS = 36;
const ROWS = 8;
const frameBase = 'images/Rover_Orbit2/Data/images_webp/Frame';
const frameExt = '.webp';
const pixelsPerCol = 16;
const pixelsPerRow = 32;
const PRELOAD_BATCH = 32;
let col = 0;
let row = 3;
let dragging = false;
let lastX = 0;
let lastY = 0;
let dragX = 0;
let dragY = 0;
let renderQueued = false;
let ready = false;
const frameCache = new Map();
function framePath(rowIndex, colIndex) {
const r = Math.min(Math.max(rowIndex, 0), ROWS - 1);
const c = ((colIndex % COLS) + COLS) % COLS;
const frameNumber = r * COLS + c + 1;
return `${frameBase}${String(frameNumber).padStart(6, '0')}${frameExt}`;
}
function loadFrame(src) {
const cached = frameCache.get(src);
if (cached instanceof HTMLImageElement) {
return Promise.resolve(cached);
}
if (cached && cached.then) {
return cached;
}
const promise = new Promise((resolve, reject) => {
const image = new Image();
image.decoding = 'async';
image.onload = () => {
if (image.decode) {
image.decode().then(() => resolve(image)).catch(() => resolve(image));
} else {
resolve(image);
}
};
image.onerror = reject;
image.src = src;
}).then((image) => {
if (image) frameCache.set(src, image);
return image;
}).catch(() => null);
frameCache.set(src, promise);
return promise;
}
async function preloadFrames(paths) {
for (let i = 0; i < paths.length; i += PRELOAD_BATCH) {
const batch = paths.slice(i, i + PRELOAD_BATCH);
await Promise.all(batch.map((path) => loadFrame(path)));
}
}
function renderFrame() {
renderQueued = false;
const src = framePath(row, col);
const cached = frameCache.get(src);
if (cached instanceof HTMLImageElement) {
img.src = cached.src;
return;
}
if (cached && cached.then) {
cached.then((image) => {
if (image && framePath(row, col) === src) img.src = image.src;
});
return;
}
loadFrame(src).then((image) => {
if (image && framePath(row, col) === src) img.src = image.src;
});
}
function queueRender() {
if (renderQueued) return;
renderQueued = true;
requestAnimationFrame(renderFrame);
}
function applyDragDelta(deltaX, deltaY) {
dragX += deltaX;
dragY += deltaY;
let nextCol = col;
let nextRow = row;
while (Math.abs(dragX) >= pixelsPerCol) {
nextCol += dragX > 0 ? 1 : -1;
dragX += dragX > 0 ? -pixelsPerCol : pixelsPerCol;
}
while (Math.abs(dragY) >= pixelsPerRow) {
const direction = dragY > 0 ? 1 : -1;
if (direction > 0 && nextRow >= ROWS - 1) {
dragY = 0;
break;
}
if (direction < 0 && nextRow <= 0) {
dragY = 0;
break;
}
nextRow += direction;
dragY += direction > 0 ? -pixelsPerRow : pixelsPerRow;
}
if (nextCol === col && nextRow === row) return;
col = ((nextCol % COLS) + COLS) % COLS;
row = Math.min(Math.max(nextRow, 0), ROWS - 1);
queueRender();
}
function startDrag(clientX, clientY) {
if (!ready) return;
dragging = true;
lastX = clientX;
lastY = clientY;
dragX = 0;
dragY = 0;
viewer.classList.add('is-dragging');
}
function endDrag() {
dragging = false;
viewer.classList.remove('is-dragging');
}
function moveDrag(clientX, clientY) {
if (!dragging) return;
const deltaX = clientX - lastX;
const deltaY = clientY - lastY;
lastX = clientX;
lastY = clientY;
applyDragDelta(deltaX, deltaY);
}
async function initViewer() {
viewer.classList.add('is-loading');
const currentRowPaths = Array.from({ length: COLS }, (_, c) => framePath(row, c));
await preloadFrames(currentRowPaths);
ready = true;
renderFrame();
viewer.classList.remove('is-loading');
const allPaths = [];
for (let r = 0; r < ROWS; r++) {
for (let c = 0; c < COLS; c++) {
allPaths.push(framePath(r, c));
}
}
preloadFrames(allPaths);
}
viewer.addEventListener('mousedown', (e) => {
e.preventDefault();
startDrag(e.clientX, e.clientY);
});
window.addEventListener('mouseup', endDrag);
window.addEventListener('mousemove', (e) => moveDrag(e.clientX, e.clientY));
viewer.addEventListener('touchstart', (e) => {
if (e.touches.length !== 1) return;
startDrag(e.touches[0].clientX, e.touches[0].clientY);
}, { passive: true });
viewer.addEventListener('touchmove', (e) => {
if (e.touches.length !== 1) return;
moveDrag(e.touches[0].clientX, e.touches[0].clientY);
}, { passive: true });
viewer.addEventListener('touchend', endDrag);
viewer.addEventListener('touchcancel', endDrag);
initViewer();
})();
</script>
</body>
</html>