cn/com allow all

This commit is contained in:
Cai
2025-10-15 20:03:43 +08:00
parent 7122c3be66
commit 3c9c7553b7
6 changed files with 1374 additions and 10 deletions

View File

@@ -101,7 +101,20 @@
<div class="toggle-button" id="toggleButton">
<div class="icon" id="toggleButton_icon"></div>
</div>
<link rel="stylesheet" href="/static/css/process_show_floating_window.css">
<div class="floating-window" id="floatingWindow">
<div class="header">
<span class="draggable">•••</span>
</div>
<div class="content">
</div>
</div>
<script src="/static/js/process_show_floating_window.js"></script>
<script src="/static/js/chatbox.js"></script>
<script>
@@ -168,14 +181,18 @@
.catch(error => {
console.error('Error fetching session:', error);
});
let lastiframe = null;
function OpenIframe(){
// 等待1s再加载
setTimeout(() => {
// 在成功获取 session 后创建并插入 iframe
if (lastiframe) {
lastiframe.remove();
}
const iframe = document.createElement('iframe');
const sessionInfo = data
iframe.src = '{{vscode_web_url}}/{{user_uuid}}/{{user_id}}/{{course_id}}/{{chapter_name}}/{{lesson_name}}/22';
lastiframe = iframe;
iframe.src = '/vsc-like/{{user_uuid}}/{{user_id}}/{{course_id}}/{{chapter_name}}/{{lesson_name}}/22';
iframe.style.width = '100%';
iframe.style.height = '99%';
@@ -184,11 +201,6 @@
},1500);
}
// 动态加载 Markdown 文件
function loadMarkdown(course_id, chapter_name, lesson_name) {