Line 117: | Line 117: | ||
#expand_btn { | #expand_btn { | ||
+ | display: none; | ||
z-index: 101; | z-index: 101; | ||
position: absolute; | position: absolute; | ||
Line 130: | Line 131: | ||
function myFunction() { | function myFunction() { | ||
var x = document.getElementById("navbar"); | var x = document.getElementById("navbar"); | ||
+ | var y = document.getElementById("expand_btn"); | ||
if (x.style.display === "none") { | if (x.style.display === "none") { | ||
x.style.display = "block"; | x.style.display = "block"; | ||
+ | y.style.display = "none"; | ||
} else { | } else { | ||
x.style.display = "none"; | x.style.display = "none"; | ||
+ | y.style.display = "block"; | ||
} | } | ||
} | } | ||
Line 231: | Line 235: | ||
</ul> | </ul> | ||
+ | <div id="expand_btn"><button onclick="myFunction()">Toggle</button></div> | ||
</div> | </div> |
Revision as of 21:05, 16 October 2018