function toggleNavbar() { const nav = document.getElementById('navbar'); const mains = document.getElementsByTagName("main"); if (nav.style.display == '') { nav.style.display = 'block'; mains[0].style.display = 'none'; } else { nav.style.display = ''; mains[0].style.display = 'block'; } } function hideSubs() { document.getElementById('tutorials').style.display = 'none'; document.getElementById('flashcards').style.display = 'none'; document.getElementById('tools').style.display = 'none'; } function showMenu(e) { hideSubs(); document.getElementById(e).style.display = 'inline-block'; } function hideMenu(e) { document.getElementById(e).style.display = 'none'; } var code = ''; code += 'CUBE TOOLS'; code += '
'; code += ' '; function loadNavbar() { document.getElementById('navbarCode').innerHTML = code; colorify('123456789'); } document.addEventListener("click", hideSubs, false);