Spaces:
Sleeping
Sleeping
Download script.js from jinv2/Shensist_Theater_Matrix: direct link, hf CLI and curl.
- Browser
- Download file 879 Bytes
-
https://huggingface.co/spaces/jinv2/Shensist_Theater_Matrix/resolve/main/script.js
- Command line
-
hf download hf://spaces/jinv2/Shensist_Theater_Matrix/script.js
-
curl -L -o script.js https://huggingface.co/spaces/jinv2/Shensist_Theater_Matrix/resolve/main/script.js
879 Bytes
| 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); | |
| } | |