Skip to content

Commit 88522bb

Browse files
committed
revert: undo PR #7 changes (fix-html-syntax-search)
Reverts the changes from PR #7 which removed search overlay blocks from getting-started.html and hardware-lab.html and added CSS rule. Restoring original code as requested.
1 parent a663190 commit 88522bb

3 files changed

Lines changed: 87 additions & 5 deletions

File tree

getting-started.html

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,49 @@ <h2 style="border:none;text-align:center;margin-top:3rem">📚 Full Documentatio
212212
</div>
213213

214214
<script>
215+
<div id="eos-search-overlay" class="search-overlay" hidden>
216+
<div class="search-modal">
217+
<div class="search-header">
218+
<span class="search-icon">&#128269;</span>
219+
<input type="text" id="eos-search-input" class="search-input" placeholder="Search EmbeddedOS docs..." autocomplete="off">
220+
<kbd class="search-kbd">Esc</kbd>
221+
</div>
222+
<ul id="eos-search-results" class="search-results"></ul>
223+
</div>
224+
</div>
225+
<script>
226+
const EosSearch={pages:[
227+
{t:'Home',u:'index.html',d:'The Operating System for Every Device'},
228+
{t:'Get Started',u:'getting-started.html',d:'Choose your path and get running in minutes'},
229+
{t:'Documentation Hub',u:'docs/index.html',d:'Complete developer documentation for all components'},
230+
{t:'Platform Flow',u:'flow.html',d:'EoS platform build and deployment flow'},
231+
{t:'Kids Guide',u:'kids.html',d:'Welcome young explorers to EmbeddedOS'},
232+
{t:'Hardware Lab',u:'hardware-lab.html',d:'Pick your board and get EoS running on real hardware'},
233+
{t:'App Store',u:'https://embeddedos-org.github.io/eApps/',d:'60+ apps across all platforms'},
234+
{t:'EoS Kernel',u:'docs/eos.html',d:'Modular RTOS kernel with HAL and multicore framework'},
235+
{t:'eBoot Bootloader',u:'docs/eboot.html',d:'Secure A/B bootloader with verified boot chain'},
236+
{t:'ebuild CLI',u:'docs/ebuild.html',d:'Unified build system with cross-compilation'},
237+
{t:'EIPC Protocol',u:'docs/eipc.html',d:'Secure real-time IPC framework'},
238+
{t:'EAI Framework',u:'docs/eai.html',d:'Embedded AI for on-device LLM inference'},
239+
{t:'ENI Neural Interface',u:'docs/eni.html',d:'Brain-computer interface framework'},
240+
{t:'EoSim Simulator',u:'docs/eosim.html',d:'Multi-architecture simulation platform'},
241+
{t:'EoStudio',u:'docs/eostudio.html',d:'Unified design suite with 12 editors'},
242+
{t:'eApps Suite',u:'docs/eosuite.html',d:'60+ apps for all platforms'},
243+
{t:'eDB Database',u:'docs/edb.html',d:'Unified multi-model database'},
244+
{t:'eBowser Browser',u:'docs/ebowser.html',d:'Lightweight web browser engine'},
245+
{t:'eOffice Suite',u:'docs/eoffice.html',d:'AI-powered office suite with 11 apps'},
246+
{t:'eServiceApps',u:'docs/eserviceapps.html',d:'Flutter mobile service apps'}
247+
],
248+
overlay:null,input:null,results:null,
249+
init(){this.overlay=document.getElementById('eos-search-overlay');this.input=document.getElementById('eos-search-input');this.results=document.getElementById('eos-search-results')},
250+
open(){if(!this.overlay)this.init();this.overlay.hidden=false;this.input.value='';this.render(this.pages);this.input.focus()},
251+
close(){if(this.overlay)this.overlay.hidden=true},
252+
render(items){this.results.innerHTML=items.map(p=>'<li class="search-result-item"><a href="'+p.u+'"><strong>'+p.t+'</strong><span>'+p.d+'</span></a></li>').join('')||'<li class="search-result-item" style="color:var(--text-secondary)">No results found.</li>'},
253+
filter(q){const l=q.toLowerCase();this.render(this.pages.filter(p=>p.t.toLowerCase().includes(l)||p.d.toLowerCase().includes(l)))}
254+
};
255+
document.addEventListener('keydown',e=>{if(e.key==='/'&&!['INPUT','TEXTAREA'].includes(document.activeElement.tagName)){e.preventDefault();EosSearch.open()}if(e.key==='Escape')EosSearch.close()});
256+
document.addEventListener('DOMContentLoaded',()=>{const i=document.getElementById('eos-search-input');if(i)i.addEventListener('input',e=>EosSearch.filter(e.target.value));const o=document.getElementById('eos-search-overlay');if(o)o.addEventListener('click',e=>{if(e.target===o)EosSearch.close()})});
257+
</script>
215258
function showPath(id){
216259
document.querySelectorAll('.path-content').forEach(function(el){el.classList.remove('active')});
217260
document.querySelectorAll('.path-btn').forEach(function(el){el.classList.remove('active')});
@@ -226,7 +269,6 @@ <h2 style="border:none;text-align:center;margin-top:3rem">📚 Full Documentatio
226269
<div><h4>Components</h4><ul><li><a href="docs/eipc.html">EIPC</a></li><li><a href="docs/eni.html">ENI</a></li><li><a href="docs/eosuite.html">eApps</a></li><li><a href="docs/eosim.html">EoSim</a></li><li><a href="docs/eostudio.html">EoStudio</a></li></ul></div>
227270
<div><h4>Learn</h4><ul><li><a href="kids.html">Kids Guide 🎮</a></li><li><a href="hardware-lab.html">Hardware Lab 🔌</a></li><li><a href="https://github.com/embeddedos-org">GitHub</a></li></ul></div>
228271
</div><div class="footer-bottom">&copy; 2025 EmbeddedOS Project &bull; MIT License</div></footer>
229-
230272
<div id="eos-search-overlay" class="search-overlay" hidden>
231273
<div class="search-modal">
232274
<div class="search-header">
@@ -237,7 +279,6 @@ <h2 style="border:none;text-align:center;margin-top:3rem">📚 Full Documentatio
237279
<ul id="eos-search-results" class="search-results"></ul>
238280
</div>
239281
</div>
240-
241282
<script>
242283
const EosSearch={pages:[
243284
{t:'Home',u:'index.html',d:'The Operating System for Every Device'},

hardware-lab.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,50 @@ <h2 style="border:none;text-align:center;font-size:1.8rem">📊 Board Comparison
273273
</tbody></table></div>
274274

275275
<div class="callout callout-tip" style="margin-top:2rem"><div class="callout-title">Which board should I pick?</div>
276+
<div id="eos-search-overlay" class="search-overlay" hidden>
277+
<div class="search-modal">
278+
<div class="search-header">
279+
<span class="search-icon">&#128269;</span>
280+
<input type="text" id="eos-search-input" class="search-input" placeholder="Search EmbeddedOS docs..." autocomplete="off">
281+
<kbd class="search-kbd">Esc</kbd>
282+
</div>
283+
<ul id="eos-search-results" class="search-results"></ul>
284+
</div>
285+
</div>
286+
<script>
287+
const EosSearch={pages:[
288+
{t:'Home',u:'index.html',d:'The Operating System for Every Device'},
289+
{t:'Get Started',u:'getting-started.html',d:'Choose your path and get running in minutes'},
290+
{t:'Documentation Hub',u:'docs/index.html',d:'Complete developer documentation for all components'},
291+
{t:'Platform Flow',u:'flow.html',d:'EoS platform build and deployment flow'},
292+
{t:'Kids Guide',u:'kids.html',d:'Welcome young explorers to EmbeddedOS'},
293+
{t:'Hardware Lab',u:'hardware-lab.html',d:'Pick your board and get EoS running on real hardware'},
294+
{t:'App Store',u:'https://embeddedos-org.github.io/eApps/',d:'60+ apps across all platforms'},
295+
{t:'EoS Kernel',u:'docs/eos.html',d:'Modular RTOS kernel with HAL and multicore framework'},
296+
{t:'eBoot Bootloader',u:'docs/eboot.html',d:'Secure A/B bootloader with verified boot chain'},
297+
{t:'ebuild CLI',u:'docs/ebuild.html',d:'Unified build system with cross-compilation'},
298+
{t:'EIPC Protocol',u:'docs/eipc.html',d:'Secure real-time IPC framework'},
299+
{t:'EAI Framework',u:'docs/eai.html',d:'Embedded AI for on-device LLM inference'},
300+
{t:'ENI Neural Interface',u:'docs/eni.html',d:'Brain-computer interface framework'},
301+
{t:'EoSim Simulator',u:'docs/eosim.html',d:'Multi-architecture simulation platform'},
302+
{t:'EoStudio',u:'docs/eostudio.html',d:'Unified design suite with 12 editors'},
303+
{t:'eApps Suite',u:'docs/eosuite.html',d:'60+ apps for all platforms'},
304+
{t:'eDB Database',u:'docs/edb.html',d:'Unified multi-model database'},
305+
{t:'eBowser Browser',u:'docs/ebowser.html',d:'Lightweight web browser engine'},
306+
{t:'eOffice Suite',u:'docs/eoffice.html',d:'AI-powered office suite with 11 apps'},
307+
{t:'eServiceApps',u:'docs/eserviceapps.html',d:'Flutter mobile service apps'}
308+
],
309+
overlay:null,input:null,results:null,
310+
init(){this.overlay=document.getElementById('eos-search-overlay');this.input=document.getElementById('eos-search-input');this.results=document.getElementById('eos-search-results')},
311+
open(){if(!this.overlay)this.init();this.overlay.hidden=false;this.input.value='';this.render(this.pages);this.input.focus()},
312+
close(){if(this.overlay)this.overlay.hidden=true},
313+
render(items){this.results.innerHTML=items.map(p=>'<li class="search-result-item"><a href="'+p.u+'"><strong>'+p.t+'</strong><span>'+p.d+'</span></a></li>').join('')||'<li class="search-result-item" style="color:var(--text-secondary)">No results found.</li>'},
314+
filter(q){const l=q.toLowerCase();this.render(this.pages.filter(p=>p.t.toLowerCase().includes(l)||p.d.toLowerCase().includes(l)))}
315+
};
316+
document.addEventListener('keydown',e=>{if(e.key==='/'&&!['INPUT','TEXTAREA'].includes(document.activeElement.tagName)){e.preventDefault();EosSearch.open()}if(e.key==='Escape')EosSearch.close()});
317+
document.addEventListener('DOMContentLoaded',()=>{const i=document.getElementById('eos-search-input');if(i)i.addEventListener('input',e=>EosSearch.filter(e.target.value));const o=document.getElementById('eos-search-overlay');if(o)o.addEventListener('click',e=>{if(e.target===o)EosSearch.close()})});
318+
</script>
319+
<p><strong>Just starting out?</strong>
276320
<p><strong>Just starting out?</strong> Get a <a href="#raspi">Raspberry Pi</a> ($35) or <a href="#esp32">ESP32</a> ($5).<br>
277321
<strong>Want professional MCU dev?</strong> Get an <a href="#stm32">STM32 Discovery</a> ($20).<br>
278322
<strong>Interested in open hardware?</strong> Try the <a href="#sifive">SiFive HiFive</a>.<br>

style.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,6 @@ details[open] summary { border-bottom: 1px solid var(--border-color); }
483483
padding-top: 15vh;
484484
backdrop-filter: blur(4px);
485485
}
486-
.search-overlay[hidden] {
487-
display: none !important;
488-
}
489486
.search-modal {
490487
background: var(--bg-secondary);
491488
border: 1px solid var(--border-color);

0 commit comments

Comments
 (0)