Spaces:
Runtime error
Runtime error
Update templates/reset.html
Browse files- templates/reset.html +162 -39
templates/reset.html
CHANGED
|
@@ -1,39 +1,162 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="ja" class="dark">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8" />
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
-
<title>リセット画面</title>
|
| 7 |
-
<script src="https://cdn.tailwindcss.com"></script>
|
| 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 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="ja" class="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>リセット画面</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://use.fontawesome.com/releases/v5.10.0/js/all.js"></script>
|
| 9 |
+
<style>
|
| 10 |
+
/* Main Container */
|
| 11 |
+
body {
|
| 12 |
+
background: linear-gradient(135deg, #2c3e50, #1f2937);
|
| 13 |
+
display: flex;
|
| 14 |
+
align-items: center;
|
| 15 |
+
justify-content: center;
|
| 16 |
+
min-height: 100vh;
|
| 17 |
+
font-family: "Arial", sans-serif;
|
| 18 |
+
color: #fff;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.main-content {
|
| 22 |
+
border: 5px solid rgba(255, 255, 255, 0.2);
|
| 23 |
+
border-radius: 1rem;
|
| 24 |
+
margin: 1rem auto; /* 中央揃え */
|
| 25 |
+
width: 90%;
|
| 26 |
+
max-width: 500px;
|
| 27 |
+
/*width: 100%; */ /* 枠線全体を広げる */
|
| 28 |
+
/*max-width: 90%;*/ /* 最大幅を画面の90%に設定 */
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
/* Hamburger Menu Button */
|
| 32 |
+
#menuButton {
|
| 33 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 34 |
+
border: none;
|
| 35 |
+
border-radius: 50%;
|
| 36 |
+
padding: 0.5rem;
|
| 37 |
+
cursor: pointer;
|
| 38 |
+
transition: background-color 0.2s ease;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
#menuButton:hover {
|
| 42 |
+
background-color: rgba(255, 255, 255, 0.2);
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
/* Hamburger Menu Styles */
|
| 46 |
+
#menu {
|
| 47 |
+
position: absolute;
|
| 48 |
+
top: 0;
|
| 49 |
+
left: 0;
|
| 50 |
+
z-index: 10;
|
| 51 |
+
transform: translateX(-100%);
|
| 52 |
+
visibility: hidden;
|
| 53 |
+
opacity: 0;
|
| 54 |
+
background-color: rgb(31, 41, 55);
|
| 55 |
+
transition: transform 0.3s ease-in-out, visibility 0s 0.3s,
|
| 56 |
+
opacity 0.3s ease-in-out;
|
| 57 |
+
backdrop-filter: blur(10px);
|
| 58 |
+
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
#menu.open {
|
| 62 |
+
transform: translateX(0);
|
| 63 |
+
visibility: visible;
|
| 64 |
+
opacity: 1;
|
| 65 |
+
transition: transform 0.3s ease-in-out, visibility 0s 0s,
|
| 66 |
+
opacity 0.3s ease-in-out;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
#menu button {
|
| 70 |
+
transition: background-color 0.2s ease;
|
| 71 |
+
background-color: rgba(0, 0, 0, 0.1);
|
| 72 |
+
margin: 2px;
|
| 73 |
+
border-radius: 5px;
|
| 74 |
+
display: flex;
|
| 75 |
+
align-items: center;
|
| 76 |
+
justify-content: flex-start;
|
| 77 |
+
gap: 10px;
|
| 78 |
+
padding: 0.75rem 1rem;
|
| 79 |
+
width: 100%;
|
| 80 |
+
text-align: left;
|
| 81 |
+
border: none;
|
| 82 |
+
color: #fff;
|
| 83 |
+
font-size: 1rem;
|
| 84 |
+
cursor: pointer;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
#menu button:hover {
|
| 88 |
+
background-color: rgba(55, 65, 81, 0.7);
|
| 89 |
+
}
|
| 90 |
+
</style>
|
| 91 |
+
</head>
|
| 92 |
+
<body>
|
| 93 |
+
<div class="main-content relative">
|
| 94 |
+
<div class="p-6 bg-white dark:bg-gray-800 shadow-lg rounded-2xl">
|
| 95 |
+
<h2 class="text-2xl font-semibold mb-4 text-center">
|
| 96 |
+
メンバーを消去しますか?
|
| 97 |
+
</h2>
|
| 98 |
+
|
| 99 |
+
<!-- Hamburger Menu -->
|
| 100 |
+
<div class="absolute top-4 left-4">
|
| 101 |
+
<button
|
| 102 |
+
id="menuButton"
|
| 103 |
+
class="text-white text-2xl focus:outline-none"
|
| 104 |
+
onclick="toggleMenu(event)"
|
| 105 |
+
>
|
| 106 |
+
<i class="fas fa-bars"></i>
|
| 107 |
+
</button>
|
| 108 |
+
|
| 109 |
+
<!-- Menu Content -->
|
| 110 |
+
<div
|
| 111 |
+
id="menu"
|
| 112 |
+
class="absolute top-0 left-0 h-full w-64 bg-gray-800 text-white transform -translate-x-full transition-transform duration-300 ease-in-out opacity-0 visibility-hidden"
|
| 113 |
+
>
|
| 114 |
+
<div class="px-4 py-2 text-lg font-semibold">メニュー</div>
|
| 115 |
+
<button onclick="showUserRegister()">
|
| 116 |
+
<i class="fas fa-user-plus"></i> メンバーを追加
|
| 117 |
+
</button>
|
| 118 |
+
<button onclick="showRecorder()">
|
| 119 |
+
<i class="fas fa-microphone"></i> 録音画面を表示
|
| 120 |
+
</button>
|
| 121 |
+
<button onclick="showResults()">
|
| 122 |
+
<i class="fas fa-chart-bar"></i> フィードバックを表示
|
| 123 |
+
</button>
|
| 124 |
+
<button onclick="showTalkDetail()">
|
| 125 |
+
<i class="fas fa-comments"></i> 会話詳細を表示
|
| 126 |
+
</button>
|
| 127 |
+
<button onclick="resetAction()">
|
| 128 |
+
<i class="fas fa-redo"></i> リセット
|
| 129 |
+
</button>
|
| 130 |
+
<button onclick="toggleMenu(event)">
|
| 131 |
+
<i class="fas fa-times"></i> 閉じる
|
| 132 |
+
</button>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
<!-- Hamburger Menu End -->
|
| 136 |
+
|
| 137 |
+
<input type="button" id="select-all" value="全選択" />
|
| 138 |
+
<div id="memberCheckboxes">
|
| 139 |
+
<!--ここにチャックボックスを表示してほしい-->
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<div class="flex justify-center gap-4">
|
| 143 |
+
<button
|
| 144 |
+
id="reset_btn"
|
| 145 |
+
class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded"
|
| 146 |
+
>
|
| 147 |
+
メンバー削除
|
| 148 |
+
</button>
|
| 149 |
+
|
| 150 |
+
<button
|
| 151 |
+
class="px-6 py-2 bg-[#607d8b] text-white rounded-lg hover:bg-[#546e7a] transition-colors"
|
| 152 |
+
onclick="showRecorder()"
|
| 153 |
+
>
|
| 154 |
+
録音画面を表示
|
| 155 |
+
</button>
|
| 156 |
+
</div>
|
| 157 |
+
</div>
|
| 158 |
+
</div>
|
| 159 |
+
<script src="{{ url_for('static', filename='reset.js') }}"></script>
|
| 160 |
+
<script src="{{ url_for('static', filename='menu.js') }}"></script>
|
| 161 |
+
</body>
|
| 162 |
+
</html>
|