File size: 370 Bytes
26c453d |
1 2 3 4 5 6 7 8 9 10 11 12 |
const navHomeBtn = document.querySelector("#nav-home");
const navTranslteBtn = document.querySelector("#nav-translate");
const navSettingsBtn = document.querySelector("#nav-settings");
//bottom nav
navHomeBtn.addEventListener("click", function() {
window.location = '/'
})
navTranslteBtn.addEventListener("click", function() {
window.location = '/translate'
}) |