Skip to content

Commit

Permalink
Update navigation bar to close when click twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntn16104 committed Dec 6, 2020
1 parent d0d2c50 commit 15a763b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,13 @@ <h2 class="text-white mb-4">DDD Filter applications in the Network</h2>

<script>
function openNav() {
document.getElementById("mySidebar").style.height = "250px";
document.getElementById("main").style.marginTop = "250px";
if(document.getElementById("mySidebar").style.height == "250px"){
closeNav();
}
else{
document.getElementById("mySidebar").style.height = "250px";
document.getElementById("main").style.marginTop = "250px";
}
}

function closeNav() {
Expand Down

0 comments on commit 15a763b

Please sign in to comment.