File size: 837 Bytes
b8c1b76
 
 
 
 
 
 
 
 
 
571295d
b8c1b76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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");
    }
  }