|
38 | 38 | document.documentElement.dataset.theme = "light"; // localStorage.getItem("theme") || "light"; |
39 | 39 | </script> |
40 | 40 | <script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.5.0/model-viewer.min.js"></script> |
| 41 | + <!-- theme's Bootstrap bundle: makes the "More" nav dropdown work --> |
| 42 | + <script src="{{ pathto('_static/scripts/bootstrap.js', 1) }}" defer></script> |
41 | 43 |
|
42 | 44 | <link rel="canonical" href="https://xara.so" > |
43 | 45 | <link rel="icon" type="image/x-icon" href="_static/images/favicon.ico"> |
|
89 | 91 |
|
90 | 92 | <div class="container is-max-widescreen"> |
91 | 93 | <div class=navbar-brand> |
92 | | - <a class=navbar-item href="/"><img alt="xara branding" class="navbar-logo" src="{{ pathto('_static/images/peer-black-100.png', 1) }}" > |
93 | | - <div class=navbar-logo-text></div> |
94 | | - </a> |
95 | 94 | <a role=button class="navbar-burger" aria-label="menu" aria-expanded=false |
96 | 95 | data-target="navbar-menu"><span aria-hidden="true"></span> |
97 | 96 | <span aria-hidden=true></span> |
|
103 | 102 | <a href="/install.html" class="navbar-item is-secondary">Install</a> |
104 | 103 | <a href=https://numpy.org/doc/stable class="navbar-item is-secondary">Documentation</a> |
105 | 104 | {% endif %} |
106 | | - <ul class="navbar-item bd-navbar-elements " style="display: flex; flex-direction: row;"> |
| 105 | + <ul class="navbar-item bd-navbar-elements"> |
107 | 106 | {{ generate_header_nav_html(n_links_before_dropdown=theme_header_links_before_dropdown) }} |
108 | 107 | </ul> |
109 | 108 | </div> |
@@ -200,7 +199,7 @@ <h2 class="">Gallery</h2> |
200 | 199 | <h2>Pacific Earthquake Engineering Center</h2> |
201 | 200 | <div class="col-md-8 mx-auto text-center"> |
202 | 201 | <p> |
203 | | - <em><strong>xara</strong></em> is a free tool developed at the University of California, Berkeley and published by the Pacific Earthquake Engineering Research center. |
| 202 | + <em><strong>xara</strong></em> is a free tool developed at the University of California, Berkeley and published by the Pacific Earthquake Engineering Research center (PEER). More free tools from PEER: |
204 | 203 | </p> |
205 | 204 | <hr class="my-4"> |
206 | 205 | <div class="row g-3"> |
@@ -256,10 +255,9 @@ <h2>Partners</h2> |
256 | 255 | <div class="container py-4 py-md-5 px-4 px-md-3 text-body-secondary"> |
257 | 256 | <div class="row"> |
258 | 257 | <div class="col-lg-3 mb-3"> |
259 | | - <a class="d-inline-flex align-items-center mb-2 text-body-emphasis text-decoration-none" href="/" aria-label="STAIRlab"> |
260 | | - <a href="https://stairlab.berkeley.edu"> |
261 | | - <img id=footer-logo style="max-width: 50;" src="{{ pathto('_static/images', 1) }}/peer-black-100.png" |
262 | | - alt="STAIRLab logo."></a> |
| 258 | + <a class="d-inline-flex align-items-center mb-3 text-body-emphasis text-decoration-none" href="https://stairlab.berkeley.edu" aria-label="STAIRlab"> |
| 259 | + <img id=footer-logo class="me-2" style="max-width: 50;" src="{{ pathto('_static/images', 1) }}/peer-black-100.png" |
| 260 | + alt="STAIRLab logo."> |
263 | 261 | <span class="fs-5">STAIRLab</span> |
264 | 262 | </a> |
265 | 263 | <ul class="list-unstyled small"> |
@@ -302,5 +300,17 @@ <h5>Projects</h5> |
302 | 300 | </div> |
303 | 301 | </div> |
304 | 302 | </footer> |
| 303 | + |
| 304 | + <script> |
| 305 | + document.addEventListener('DOMContentLoaded', () => { |
| 306 | + document.querySelectorAll('.navbar-burger').forEach(burger => { |
| 307 | + burger.addEventListener('click', () => { |
| 308 | + const target = document.getElementById(burger.dataset.target); |
| 309 | + burger.classList.toggle('is-active'); |
| 310 | + if (target) target.classList.toggle('is-active'); |
| 311 | + }); |
| 312 | + }); |
| 313 | + }); |
| 314 | + </script> |
305 | 315 | </body> |
306 | 316 | </html> |
0 commit comments