Spaces:
Sleeping
Sleeping
| function switchMode(el) { | |
| document.querySelectorAll('.mode-btn').forEach(b => b.classList.remove('active')); | |
| el.classList.add('active'); | |
| document.getElementById('ai-console').style.display = el.innerText.includes('工厂') ? 'block' : 'none'; | |
| } | |
| function runAction() { | |
| const chatBox = document.getElementById('chat-box'); | |
| const isFactory = document.querySelector('.mode-btn.active').innerText.includes('工厂'); | |
| // 逻辑分流:九尾狐与铁蝰蛇的意志 | |
| const lines = isFactory ? | |
| "【九尾狐】: 工厂算力已锁定!正在重塑山海经位面...\\n【系统】: 场景灵魂已注入。" : | |
| "【铁蝰蛇】: 演播逻辑已同步。灵愿循环正常运转。"; | |
| chatBox.innerHTML = '<span style="color:#fff">>>> 正在刺穿维度...</span>'; | |
| setTimeout(() => { chatBox.innerHTML = lines; }, 500); | |
| } | |