function openNav() { document.getElementById("myNav").style.left = "50%"; } function closeNav() { document.getElementById("myNav").style.left = "100%"; }