|
3 | 3 | <html lang="en"> |
4 | 4 | <head> |
5 | 5 | <meta charset="UTF-8"> |
6 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes"> |
7 | 7 | <title>ExecuTorch - On-Device AI Inference Powered by PyTorch</title> |
8 | 8 | <meta name="description" content="ExecuTorch is PyTorch's unified solution for deploying AI models on-device—from smartphones to microcontrollers. Deploy LLMs, vision, speech, and multimodal models with the same PyTorch APIs."> |
9 | 9 | <link rel="icon" type="image/svg+xml" href="https://raw.githubusercontent.com/dbort/executorch-logos/main/img/executorch-chip-logo.svg"> |
|
29 | 29 | <img src="https://raw.githubusercontent.com/dbort/executorch-logos/main/img/executorch-chip-logo.svg" alt="ExecuTorch Logo" height="40"> |
30 | 30 | <span style="color:#e0f2fe;">ExecuTorch</span> |
31 | 31 | </div> |
32 | | - <ul class="nav-links"> |
| 32 | + <ul class="nav-links" id="navLinks"> |
33 | 33 | <li><a href="#why-ondevice">Why On-Device</a></li> |
34 | 34 | <li><a href="#challenges">Challenges</a></li> |
35 | 35 | <li><a href="#features">Solution</a></li> |
36 | | - <li><a href="#performance">Performance</a></li> |
| 36 | + <li><a href="#performance">Backends</a></li> |
37 | 37 | <li><a href="#partners">Partners</a></li> |
38 | 38 | <li><a href="https://github.com/pytorch/executorch" target="_blank">GitHub</a></li> |
39 | 39 | </ul> |
40 | 40 | <form class="nav-search" action="https://docs.pytorch.org/executorch/1.0/search.html" method="get"> |
41 | 41 | <input type="text" placeholder="Search docs…" name="q" style="padding: 0.5rem 1rem; border-radius: 6px; border: 1px solid #e2e8f0;"> |
42 | 42 | </form> |
| 43 | + <button class="nav-toggle" onclick="toggleNav()" aria-label="Toggle navigation">☰</button> |
43 | 44 | </div> |
44 | 45 | </div> |
45 | 46 | </nav> |
@@ -1055,13 +1056,19 @@ <h2 class="cta-title">Ready to Deploy AI at the Edge?</h2> |
1055 | 1056 | navLinks.classList.toggle('open'); |
1056 | 1057 | } |
1057 | 1058 |
|
1058 | | - // Highlight active nav link on click |
| 1059 | + // Highlight active nav link on click and close menu on mobile |
1059 | 1060 | document.querySelectorAll('.nav-links a').forEach(function(link) { |
1060 | 1061 | link.addEventListener('click', function() { |
1061 | 1062 | document.querySelectorAll('.nav-links a').forEach(function(l) { |
1062 | 1063 | l.classList.remove('active'); |
1063 | 1064 | }); |
1064 | 1065 | this.classList.add('active'); |
| 1066 | + |
| 1067 | + // Close mobile menu when clicking a link |
| 1068 | + var navLinks = document.getElementById('navLinks'); |
| 1069 | + if (navLinks.classList.contains('open')) { |
| 1070 | + navLinks.classList.remove('open'); |
| 1071 | + } |
1065 | 1072 | }); |
1066 | 1073 | }); |
1067 | 1074 | </script> |
|
0 commit comments