Skip to content

Commit dd09dac

Browse files
authored
Merge pull request #34 from Pitt-RAS/april-2026-updates
April 2026 updates
2 parents 1dd0eb7 + e727825 commit dd09dac

31 files changed

Lines changed: 261 additions & 967 deletions

aboutus.html

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -167,47 +167,7 @@ <h3>Previous RAS Websites</h3>
167167
</article>
168168

169169
<!-- Footer -->
170-
<footer id="footer">
171-
<h4 style="text-align: center; margin-left:-1em" >Sponsored by</h4>
172-
<div class="sponsor-centering">
173-
<div id="sponsor-row-1" class="row" style=" height:auto; margin-top:-0.5em">
174-
<div class="sponsor-layout width-setting-25">
175-
<img id="mobi" src="images/sponsors/sponsor-mobi-white-new.png" alt="" />
176-
</div>
177-
<div class="sponsor-layout width-setting-25">
178-
<img id="pnc" src="images/sponsors/sponsor-pnc-white-resized.png" alt="" />
179-
</div>
180-
<div class="sponsor-layout width-setting-25">
181-
<img id="aerotech" src="images/sponsors/sponsor-aerotech-white.png" alt="" />
182-
</div>
183-
<div class="sponsor-layout width-setting-25">
184-
<img id="roaringcreek" src="images/sponsors/sponsor-roaringcreek-white.png" alt="" />
185-
</div>
186-
</div>
187-
<div id="sponsor-row-2" class="row" style=" height:auto;">
188-
<div class="sponsor-layout width-setting-15" >
189-
<img id="rti" src="images/sponsors/sponsor-rti-colored.png" alt="" />
190-
</div>
191-
<div class="sponsor-layout width-setting-15">
192-
<img id="ibm" src="images/sponsors/sponsor-ibm-white - Copy.png" alt="" />
193-
</div>
194-
<div class="sponsor-layout width-setting-70over3" >
195-
<img id="rrai" src="images/sponsors/sponsor-rrai-white-resized.png" alt="" />
196-
</div>
197-
<div class="sponsor-layout width-setting-70over3">
198-
<img id="cadence" src="images/sponsors/sponsor-cadence-logo-white.png" alt="" />
199-
</div>
200-
<div class="sponsor-layout width-setting-70over3">
201-
<img id="pitt" src="images/sponsors/sponsor-pitt-white.png" alt="" />
202-
</div>
203-
</div>
204-
</div>
205-
<!-- <br> -->
206-
<br>
207-
<ul class="copyright">
208-
<li>&copy; Pitt Robotics and Automation Society</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
209-
</ul>
210-
</footer>
170+
<div id="footer"></div>
211171
</div>
212172

213173
<!-- Scripts -->
@@ -217,6 +177,7 @@ <h4 style="text-align: center; margin-left:-1em" >Sponsored by</h4>
217177
<script src="assets/js/browser.min.js"></script>
218178
<script src="assets/js/breakpoints.min.js"></script>
219179
<script src="assets/js/util.js"></script>
180+
<script src="assets/js/loadCommonFooter.js"></script>
220181
<script src="assets/js/main.js"></script>
221182

222183
</body>

assets/js/loadCommonFooter.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Function to load HTML content into a target element
2+
async function loadHTML(elementId, filePath) {
3+
try {
4+
// Fetch the external HTML file
5+
const response = await fetch(filePath);
6+
7+
// Check if the request was successful
8+
if (!response.ok) {
9+
throw new Error(`Failed to load ${filePath}: ${response.statusText}`);
10+
}
11+
12+
// Extract HTML text from the response
13+
const html = await response.text();
14+
15+
// Insert the HTML into the target element
16+
const element = document.getElementById(elementId);
17+
if (element) {
18+
element.innerHTML = html;
19+
} else {
20+
throw new Error(`Element with ID "${elementId}" not found`);
21+
}
22+
} catch (error) {
23+
console.error('Error loading content:', error);
24+
// Optional: Display a fallback message in the UI
25+
//document.getElementById(elementId)?.innerHTML = `<p>Error loading content.</p>`;
26+
}
27+
}
28+
29+
// Load header and footer when the DOM is fully loaded
30+
document.addEventListener('DOMContentLoaded', () => {
31+
loadHTML('footer', 'commonHTML/commonFooter.html'); // Load footer into #footer
32+
});

commonHTML/commonFooter.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<footer id="footer">
2+
<h4 style="text-align: center; margin-left:-1em">Sponsored by</h4>
3+
<div class="sponsor-centering">
4+
<div id="sponsor-row-2" class="row" style=" height:auto; margin-top:-0.5em">
5+
<!-- <div class="sponsor-layout width-setting-25">
6+
<img id="mobi" src="images/sponsors/sponsor-mobi-white-new.png" alt="" />
7+
</div>
8+
<div class="sponsor-layout width-setting-25">
9+
<img id="pnc" src="images/sponsors/sponsor-pnc-white-resized.png" alt="" />
10+
</div> -->
11+
<div class="sponsor-layout width-setting-25">
12+
<img id="aerotech" src="images/sponsors/sponsor-aerotech-white.png" alt="" />
13+
</div>
14+
15+
<div class="sponsor-layout width-setting-25">
16+
<img id="roaringcreek" src="images/sponsors/sponsor-roaringcreek-white.png" alt="" />
17+
</div>
18+
19+
<div class="sponsor-layout width-setting-25">
20+
<img id="roaringcreek" src="images/sponsors/sponsor-hakko-logo-white.png" alt="" />
21+
</div>
22+
23+
<div class="sponsor-layout width-setting-25">
24+
<img id="pitt" src="images/sponsors/sponsor-pitt-white.png" alt="" />
25+
</div>
26+
27+
28+
</div>
29+
30+
<div id="sponsor-row-2" class="row" style=" height:auto;">
31+
32+
<!--BLANK Sponsor to center the second row easily (cant be bothered to do more css)-->
33+
<div class="sponsor-layout width-setting-25">
34+
<img id="roaringcreek" src="images/sponsors/sponsor-BLANK.png" alt="" />
35+
</div>
36+
37+
<div class="sponsor-layout width-setting-25">
38+
<img id="roaringcreek" src="images/sponsors/sponsor-cr-white.png" alt="" />
39+
</div>
40+
41+
<div class="sponsor-layout width-setting-25">
42+
<img id="roaringcreek" src="images/sponsors/NEA_LOGO_WHITE_HATCHEDX2_2x.png" alt="" />
43+
</div>
44+
45+
46+
47+
</div>
48+
</div>
49+
<!-- <br> -->
50+
<br>
51+
<ul class="copyright">
52+
<li>&copy; Pitt Robotics and Automation Society</li>
53+
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
54+
</ul>
55+
</footer>

contact.html

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -125,47 +125,7 @@ <h3>Contact Info</h3>
125125
</article>
126126

127127
<!-- Footer -->
128-
<footer id="footer">
129-
<h4 style="text-align: center; margin-left:-1em" >Sponsored by</h4>
130-
<div class="sponsor-centering">
131-
<div id="sponsor-row-1" class="row" style=" height:auto; margin-top:-0.5em">
132-
<div class="sponsor-layout width-setting-25">
133-
<img id="mobi" src="images/sponsors/sponsor-mobi-white-new.png" alt="" />
134-
</div>
135-
<div class="sponsor-layout width-setting-25">
136-
<img id="pnc" src="images/sponsors/sponsor-pnc-white-resized.png" alt="" />
137-
</div>
138-
<div class="sponsor-layout width-setting-25">
139-
<img id="aerotech" src="images/sponsors/sponsor-aerotech-white.png" alt="" />
140-
</div>
141-
<div class="sponsor-layout width-setting-25">
142-
<img id="roaringcreek" src="images/sponsors/sponsor-roaringcreek-white.png" alt="" />
143-
</div>
144-
</div>
145-
<div id="sponsor-row-2" class="row" style=" height:auto;">
146-
<div class="sponsor-layout width-setting-15" >
147-
<img id="rti" src="images/sponsors/sponsor-rti-colored.png" alt="" />
148-
</div>
149-
<div class="sponsor-layout width-setting-15">
150-
<img id="ibm" src="images/sponsors/sponsor-ibm-white - Copy.png" alt="" />
151-
</div>
152-
<div class="sponsor-layout width-setting-70over3" >
153-
<img id="rrai" src="images/sponsors/sponsor-rrai-white-resized.png" alt="" />
154-
</div>
155-
<div class="sponsor-layout width-setting-70over3">
156-
<img id="cadence" src="images/sponsors/sponsor-cadence-logo-white.png" alt="" />
157-
</div>
158-
<div class="sponsor-layout width-setting-70over3">
159-
<img id="pitt" src="images/sponsors/sponsor-pitt-white.png" alt="" />
160-
</div>
161-
</div>
162-
</div>
163-
<!-- <br> -->
164-
<br>
165-
<ul class="copyright">
166-
<li>&copy; Pitt Robotics and Automation Society</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
167-
</ul>
168-
</footer>
128+
<div id="footer"></div>
169129

170130
</div>
171131

@@ -176,6 +136,7 @@ <h4 style="text-align: center; margin-left:-1em" >Sponsored by</h4>
176136
<script src="assets/js/browser.min.js"></script>
177137
<script src="assets/js/breakpoints.min.js"></script>
178138
<script src="assets/js/util.js"></script>
139+
<script src="assets/js/loadCommonFooter.js"></script>
179140
<script src="assets/js/main.js"></script>
180141

181142
</body>

elements.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -371,18 +371,7 @@ <h5>Left &amp; Right</h5>
371371
</article>
372372

373373
<!-- Footer -->
374-
<footer id="footer">
375-
<ul class="icons">
376-
<!-- <li><a href="#" class="icon brands fa-twitter"><span class="label">Twitter</span></a></li>
377-
<li><a href="#" class="icon brands fa-facebook-f"><span class="label">Facebook</span></a></li>
378-
<li><a href="#" class="icon brands fa-instagram"><span class="label">Instagram</span></a></li>
379-
<li><a href="#" class="icon brands fa-dribbble"><span class="label">Dribbble</span></a></li>
380-
<li><a href="#" class="icon solid fa-envelope"><span class="label">Email</span></a></li> -->
381-
</ul>
382-
<ul class="copyright">
383-
<li>&copy; Pitt Robotics and Automation Society</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
384-
</ul>
385-
</footer>
374+
<div id="footer"></div>
386375

387376
</div>
388377

@@ -393,6 +382,7 @@ <h5>Left &amp; Right</h5>
393382
<script src="assets/js/browser.min.js"></script>
394383
<script src="assets/js/breakpoints.min.js"></script>
395384
<script src="assets/js/util.js"></script>
385+
<script src="assets/js/loadCommonFooter.js"></script>
396386
<script src="assets/js/main.js"></script>
397387

398388
</body>

images/sponsors/sponsor-BLANK.png

3.03 KB
Loading
12.4 KB
Loading
8.14 KB
Loading

index.html

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -215,47 +215,7 @@ <h2>Interested in getting involved?</h2>
215215
</section>
216216

217217
<!-- Footer -->
218-
<footer id="footer">
219-
<h4 style="text-align: center; margin-left:-1em" >Sponsored by</h4>
220-
<div class="sponsor-centering">
221-
<div id="sponsor-row-2" class="row" style=" height:auto; margin-top:-0.5em">
222-
<!-- <div class="sponsor-layout width-setting-25">
223-
<img id="mobi" src="images/sponsors/sponsor-mobi-white-new.png" alt="" />
224-
</div>
225-
<div class="sponsor-layout width-setting-25">
226-
<img id="pnc" src="images/sponsors/sponsor-pnc-white-resized.png" alt="" />
227-
</div> -->
228-
<div class="sponsor-layout width-setting-25">
229-
<img id="aerotech" src="images/sponsors/sponsor-aerotech-white.png" alt="" />
230-
</div>
231-
232-
<div class="sponsor-layout width-setting-25">
233-
<img id="roaringcreek" src="images/sponsors/sponsor-roaringcreek-white.png" alt="" />
234-
</div>
235-
236-
<div class="sponsor-layout width-setting-25">
237-
<img id="roaringcreek" src="images/sponsors/NEA_LOGO_WHITE_HATCHEDX2_2x.png" alt="" />
238-
</div>
239-
240-
<div class="sponsor-layout width-setting-25">
241-
<img id="pitt" src="images/sponsors/sponsor-pitt-white.png" alt="" />
242-
</div>
243-
244-
245-
</div>
246-
247-
<div id="sponsor-row-2" class="row" style=" height:auto;">
248-
<div class="sponsor-layout width-setting-25">
249-
<img id="pitt" src="images/sponsors/sponsor-cr-white.png" alt="" />
250-
</div>
251-
</div>
252-
</div>
253-
<!-- <br> -->
254-
<br>
255-
<ul class="copyright">
256-
<li>&copy; Pitt Robotics and Automation Society</li><li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
257-
</ul>
258-
</footer>
218+
<div id="footer"></div>
259219

260220
</div>
261221

@@ -266,7 +226,9 @@ <h4 style="text-align: center; margin-left:-1em" >Sponsored by</h4>
266226
<script src="assets/js/browser.min.js"></script>
267227
<script src="assets/js/breakpoints.min.js"></script>
268228
<script src="assets/js/util.js"></script>
229+
<script src="assets/js/loadCommonFooter.js"></script>
269230
<script src="assets/js/main.js"></script>
231+
270232

271233
</body>
272234
</html>

maintance.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ <h2>We will be back soon!</h2>
4040
</div>
4141

4242
<!-- Footer -->
43-
<footer id="footer">
44-
<div style="height: 650px">
45-
<p></p>
46-
</div>
47-
48-
</footer>
43+
<div id="footer"></div>
4944

5045
<!-- Escape -->
5146
<div style="background-color: #1d242a">
@@ -64,6 +59,7 @@ <h2>We will be back soon!</h2>
6459
<script src="assets/js/browser.min.js"></script>
6560
<script src="assets/js/breakpoints.min.js"></script>
6661
<script src="assets/js/util.js"></script>
62+
<script src="assets/js/loadCommonFooter.js"></script>
6763
<script src="assets/js/main.js"></script>
6864

6965
</body>

0 commit comments

Comments
 (0)