Skip to content

Commit

Permalink
menu
Browse files Browse the repository at this point in the history
  • Loading branch information
cevznriny committed Nov 19, 2024
1 parent 67a7f95 commit f5425fa
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion birds.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@
});
};

function toggleMenu() {
const div = document.getElementById('menu');
if (div.style.display === 'none') {
div.style.display = 'block'; // Show the div
} else {
div.style.display = 'none'; // Hide the div
}
}

function clearAllInputs() {
const inputs = document.querySelectorAll('input, textarea');
inputs.forEach(input => {
Expand Down Expand Up @@ -119,7 +128,8 @@
<button type="button" onclick="clearAllInputs()">X</button>
</div>

<div>
<button onclick="toggleMenu()">☰</button>
<div id="menu">

<a href="#Accipitriformes"><h3>Accipitriformes</h3></a>

Expand Down

0 comments on commit f5425fa

Please sign in to comment.