21 lines
715 B
JavaScript
21 lines
715 B
JavaScript
function filterContent() {
|
|
const query = document.getElementById('searchInput').value.toLowerCase();
|
|
document.querySelectorAll('.section').forEach(section => {
|
|
const text = section.innerText.toLowerCase();
|
|
section.style.display = text.includes(query) ? 'block' : 'none';
|
|
});
|
|
}
|
|
|
|
function downloadOfflineVersion() {
|
|
const blob = new Blob([document.documentElement.outerHTML], { type: 'text/html' });
|
|
const a = document.createElement('a');
|
|
a.href = URL.createObjectURL(blob);
|
|
a.download = 'SystemsLangDocumentation.html';
|
|
a.click();
|
|
}
|
|
|
|
function toggleSearch() {
|
|
const dropdown = document.getElementById('searchDropdown');
|
|
dropdown.style.display = dropdown.style.display === 'block' ? 'none' : 'block';
|
|
}
|