diff --git a/dsLightRag/static/YunXiao/physics_quiz.html b/dsLightRag/static/YunXiao/physics_quiz.html index 2628ae0b..367f0fcc 100644 --- a/dsLightRag/static/YunXiao/physics_quiz.html +++ b/dsLightRag/static/YunXiao/physics_quiz.html @@ -277,6 +277,101 @@ padding: 10px 15px; border-radius: 6px; } + /* 学伴模型选择器样式 */ +.model-selector { + position: fixed; top: 40px; left: 20px; z-index: 1000; + padding: 10px; background-color: rgba(255, 255, 255, 0.8); + border-radius: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + display: flex; flex-direction: column; gap: 15px; +} +select { padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; background-color: white; font-size: 14px; } + +/* 录音控制样式 */ +.recording-controls { + position: static; display: flex; flex-direction: column; gap: 10px; margin: 0; +} +.record-button { + width: 70px; height: 70px; border-radius: 50%; + background-color: #dc3545; border: none; color: white; + font-size: 16px; cursor: pointer; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); + display: flex; align-items: center; justify-content: center; + opacity: 1 !important; visibility: visible !important; +} +.record-button:hover { background-color: #c82333; } +.stop-button { + width: 70px; height: 70px; border-radius: 50%; + background-color: #6c757d; border: none; color: white; + font-size: 16px; cursor: pointer; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); + display: flex; align-items: center; justify-content: center; display: none; + opacity: 1 !important; visibility: visible !important; +} + +/* 录音指示器样式 */ +.recording-indicator { + position: fixed; bottom: 20px; left: 20px; z-index: 1000; + padding: 10px 15px; background-color: rgba(220, 53, 69, 0.9); + color: white; border-radius: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + display: none; align-items: center; +} +.recording-dot { + width: 10px; height: 10px; background-color: white; + border-radius: 50%; margin-right: 8px; animation: pulse 1.5s infinite; +} + +/* 思考中动画样式 */ +.thinking-indicator { + position: fixed; bottom: 20px; right: 120px; z-index: 1000; + padding: 10px 15px; background-color: rgba(0, 123, 255, 0.9); + color: white; border-radius: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); + display: none; align-items: center; +} +.thinking-dots { display: flex; gap: 4px; margin-right: 8px; } +.thinking-dot { + width: 8px; height: 8px; background-color: white; border-radius: 50%; +} +.thinking-dot:nth-child(1) { animation: pulse 1.5s infinite 0s; } +.thinking-dot:nth-child(2) { animation: pulse 1.5s infinite 0.3s; } +.thinking-dot:nth-child(3) { animation: pulse 1.5s infinite 0.6s; } + +/* 结果显示容器样式 */ +.result-container { + position: fixed; bottom: 80px; left: 20px; z-index: 1000; + padding: 15px; background-color: rgba(255, 255, 255, 0.95); + border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); + max-width: 400px; width: 90%; + display: none; flex-direction: column; gap: 10px; +} +.result-header { + font-weight: bold; color: #495057; margin-bottom: 5px; + display: flex; align-items: center; gap: 5px; +} +.result-header.asr { color: #007bff; } +.result-header.feedback { color: #28a745; } +.result-text { + color: #333; line-height: 1.5; max-height: 200px; overflow-y: auto; + padding-right: 5px; word-break: break-all; +} + +/* 音频播放器样式 */ +.audio-player-container { + margin-top: 10px; display: flex; align-items: center; gap: 10px; +} +.play-button { + background-color: #28a745; color: white; border: none; + border-radius: 50%; width: 40px; height: 40px; + cursor: pointer; display: flex; align-items: center; justify-content: center; +} +.play-button:hover { background-color: #218838; } +.audio-progress { + flex-grow: 1; height: 6px; background-color: #e9ecef; border-radius: 3px; + overflow: hidden; cursor: pointer; +} +.progress-bar { + height: 100%; background-color: #28a745; width: 0%; +} +.audio-time { font-size: 12px; color: #6c757d; } + +@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } @@ -987,4 +1082,189 @@ }); - \ No newline at end of file + + + +
+ + +
+ +
+
+ 正在录音... +
+ +
+
+
+
+
+
+ 学伴正在思考中... +
+ +
+ + +
+ +
+
+
+ + + + + + 你讲的话 +
+
+
+
+ +
+
+
+ +
+
+
+
00:00 / 00:00
+
+
+ +
+ 有权限问题的话,请点击这里 +
+ + \ No newline at end of file