Spaces:
Running
Running
function showUserRegister() { | |
fetch("/reset"); | |
window.location.href = "userregister"; | |
} | |
function showRecorder() { | |
window.location.href = "index"; | |
} | |
function showResults() { | |
window.location.href = "feedback"; | |
} | |
function showTalkDetail() { | |
window.location.href = "talk_detail"; | |
} | |
function resetAction() { | |
window.location.href = "reset_html"; | |
} | |
// メニューの表示・非表示 | |
function toggleMenu(event) { | |
event.stopPropagation(); | |
const menu = document.getElementById("menu"); | |
menu.classList.toggle("open"); | |
} | |
function closeMenu(event) { | |
const menu = document.getElementById("menu"); | |
if ( | |
menu.classList.contains("open") && | |
!menu.contains(event.target) && | |
!event.target.closest("#menuButton") | |
) { | |
menu.classList.remove("open"); | |
} | |
} |