Spaces:
Runtime error
Runtime error
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>メンバー選択 - JustTalk</title> | |
| <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='main.css') }}"> | |
| <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='menu.css') }}"> | |
| <script src="https://use.fontawesome.com/releases/v5.10.0/js/all.js"></script> | |
| <style> | |
| .container { | |
| max-width: 500px; | |
| margin: 0 auto; | |
| padding: 30px; | |
| border: 5px solid rgba(255, 255, 255, 0.2); | |
| border-radius: 1rem; | |
| background-color: rgba(0, 0, 0, 0.3); | |
| box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); | |
| width: 90%; | |
| position: relative; | |
| } | |
| h1 { | |
| color: white; | |
| text-align: center; | |
| margin-bottom: 30px; | |
| font-size: 1.8rem; | |
| text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); | |
| } | |
| .user-list { | |
| background-color: rgba(255, 255, 255, 0.1); | |
| border-radius: 10px; | |
| box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); | |
| padding: 15px; | |
| margin-bottom: 25px; | |
| max-height: 350px; | |
| overflow-y: auto; | |
| } | |
| .user-item { | |
| display: flex; | |
| align-items: center; | |
| padding: 12px 15px; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| transition: background-color 0.2s; | |
| } | |
| .user-item:last-child { | |
| border-bottom: none; | |
| } | |
| .user-item:hover { | |
| background-color: rgba(255, 255, 255, 0.05); | |
| } | |
| .user-item label { | |
| margin-left: 12px; | |
| font-size: 16px; | |
| cursor: pointer; | |
| flex-grow: 1; | |
| color: white; | |
| } | |
| input[type="checkbox"] { | |
| cursor: pointer; | |
| width: 18px; | |
| height: 18px; | |
| accent-color: #3498db; | |
| } | |
| .button-container { | |
| display: flex; | |
| justify-content: space-between; | |
| margin-top: 25px; | |
| } | |
| button { | |
| background-color: #3498db; | |
| color: white; | |
| border: none; | |
| border-radius: 8px; | |
| padding: 12px 20px; | |
| font-size: 16px; | |
| cursor: pointer; | |
| transition: background-color 0.3s, transform 0.1s; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| button:hover { | |
| background-color: #2980b9; | |
| } | |
| button:active { | |
| transform: translateY(1px); | |
| } | |
| button:disabled { | |
| background-color: #95a5a6; | |
| cursor: not-allowed; | |
| opacity: 0.7; | |
| } | |
| button.secondary { | |
| background-color: rgba(255, 255, 255, 0.2); | |
| } | |
| button.secondary:hover { | |
| background-color: rgba(255, 255, 255, 0.3); | |
| } | |
| .selected-count { | |
| margin: 15px 0; | |
| text-align: center; | |
| font-weight: bold; | |
| color: #3498db; | |
| font-size: 18px; | |
| text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); | |
| } | |
| .no-users { | |
| text-align: center; | |
| padding: 30px; | |
| color: rgba(255, 255, 255, 0.7); | |
| font-style: italic; | |
| } | |
| .loading { | |
| text-align: center; | |
| padding: 30px; | |
| color: white; | |
| } | |
| .spinner { | |
| border: 4px solid rgba(255, 255, 255, 0.1); | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| border-left-color: #3498db; | |
| animation: spin 1s linear infinite; | |
| margin: 0 auto 15px; | |
| } | |
| @keyframes spin { | |
| 0% { | |
| transform: rotate(0deg); | |
| } | |
| 100% { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| /* User Avatar */ | |
| .user-avatar { | |
| width: 30px; | |
| height: 30px; | |
| background: rgba(255, 255, 255, 0.2); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 14px; | |
| margin-left: 10px; | |
| } | |
| /* Select All Button */ | |
| .select-controls { | |
| display: flex; | |
| justify-content: center; | |
| margin-bottom: 15px; | |
| gap: 10px; | |
| } | |
| .select-button { | |
| background-color: rgba(255, 255, 255, 0.15); | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| padding: 8px 15px; | |
| font-size: 14px; | |
| cursor: pointer; | |
| transition: background-color 0.2s; | |
| } | |
| .select-button:hover { | |
| background-color: rgba(255, 255, 255, 0.25); | |
| } | |
| /* Delete Button */ | |
| .delete-button { | |
| background-color: transparent; | |
| color: #e74c3c; | |
| border: none; | |
| border-radius: 50%; | |
| width: 30px; | |
| height: 30px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| cursor: pointer; | |
| transition: background-color 0.2s; | |
| padding: 0; | |
| margin-left: 5px; | |
| box-shadow: none; | |
| } | |
| .delete-button:hover { | |
| background-color: rgba(231, 76, 60, 0.2); | |
| } | |
| /* Modal Dialog */ | |
| .modal { | |
| display: none; | |
| position: fixed; | |
| z-index: 100; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0, 0, 0, 0.5); | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .modal-content { | |
| background-color: rgb(31, 41, 55); | |
| border-radius: 10px; | |
| padding: 20px; | |
| width: 90%; | |
| max-width: 400px; | |
| box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); | |
| border: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .modal-title { | |
| font-size: 18px; | |
| margin-bottom: 15px; | |
| color: white; | |
| } | |
| .modal-text { | |
| margin-bottom: 20px; | |
| color: rgba(255, 255, 255, 0.9); | |
| } | |
| .modal-buttons { | |
| display: flex; | |
| justify-content: flex-end; | |
| gap: 10px; | |
| } | |
| .modal-cancel { | |
| background-color: rgba(255, 255, 255, 0.2); | |
| color: white; | |
| } | |
| .modal-delete { | |
| background-color: #e74c3c; | |
| } | |
| .modal-delete:hover { | |
| background-color: #c0392b; | |
| } | |
| </style> | |
| </head> | |
| <body onclick="closeMenu(event)"> | |
| <div class="container"> | |
| <!-- Hamburger Menu Button --> | |
| <button | |
| id="menuButton" | |
| class="text-white focus:outline-none" | |
| onclick="toggleMenu(event)" | |
| > | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| <!-- Menu Content --> | |
| <div | |
| id="menu" | |
| 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" | |
| > | |
| <div class="px-4 py-2 text-lg font-semibold">メニュー</div> | |
| <button onclick="showUserRegister()"> | |
| <i class="fas fa-user-plus"></i> メンバーを追加 | |
| </button> | |
| <button onclick="showIndex()"> | |
| <i class="fas fa-home"></i> ホーム画面 | |
| </button> | |
| <button onclick="showResults()"> | |
| <i class="fas fa-chart-bar"></i> フィードバックを表示 | |
| </button> | |
| <button onclick="showTalkDetail()"> | |
| <i class="fas fa-comments"></i> 会話詳細を表示 | |
| </button> | |
| <button onclick="resetAction()"> | |
| <i class="fas fa-redo"></i> リセット | |
| </button> | |
| <button onclick="toggleMenu(event)"> | |
| <i class="fas fa-times"></i> 閉じる | |
| </button> | |
| </div> | |
| <h1>会話分析に使用するメンバーを選択</h1> | |
| <div class="select-controls"> | |
| <button class="select-button" onclick="selectAllUsers()"> | |
| すべて選択 | |
| </button> | |
| <button class="select-button" onclick="deselectAllUsers()"> | |
| 選択解除 | |
| </button> | |
| </div> | |
| <div class="user-list" id="userList"> | |
| <div class="loading"> | |
| <div class="spinner"></div> | |
| <p>メンバーリストを読み込み中...</p> | |
| </div> | |
| </div> | |
| <div class="selected-count" id="selectedCount">選択中: 0人</div> | |
| <div class="button-container"> | |
| <button class="secondary" onclick="location.href='/userregister'"> | |
| 新規登録 | |
| </button> | |
| <button | |
| id="proceedButton" | |
| onclick="proceedWithSelectedUsers()" | |
| disabled | |
| > | |
| 選択して次へ | |
| </button> | |
| </div> | |
| </div> | |
| <!-- 削除確認モーダル --> | |
| <div id="deleteModal" class="modal"> | |
| <div class="modal-content"> | |
| <div class="modal-title">メンバーの削除</div> | |
| <div class="modal-text" id="deleteModalText"> | |
| このメンバーを削除しますか? | |
| </div> | |
| <div class="modal-buttons"> | |
| <button class="modal-cancel" onclick="hideDeleteModal()"> | |
| キャンセル | |
| </button> | |
| <button class="modal-delete" onclick="confirmDelete()">削除</button> | |
| </div> | |
| </div> | |
| </div> | |
| <script src="{{ url_for('static', filename='process1.js') }}"></script> | |
| </body> | |
| </html> | |