Download task_012/environment/code/index.html from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_012/environment/code/index.html
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_012/environment/code/index.html
-
curl -L -o index.html https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_012/environment/code/index.html
1.23 kB
| <html lang="zh-CN"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Fast Chat Fixture</title> | |
| <style>body { font-family: Arial, sans-serif; padding: 24px; } input { width: 420px; padding: 8px; } output { display: block; margin-top: 12px; }</style> | |
| <script src="config.js"></script> | |
| </head> | |
| <body> | |
| <main> | |
| <input data-testid="chat-input" placeholder="Ask"> | |
| <button data-testid="send-button">Send</button> | |
| <h1 data-testid="title">好的,这里有几个不同风格的标题</h1> | |
| <output data-testid="response">AI is generating response...</output> | |
| <p data-testid="status">idle</p> | |
| </main> | |
| <script> | |
| function send() { | |
| const prompt = document.querySelector('[data-testid="chat-input"]').value; | |
| setTimeout(() => { | |
| document.querySelector('[data-testid="title"]').textContent = '好的,这里有几个不同风格的标题'; | |
| document.querySelector('[data-testid="response"]').textContent = 'unrelated fake answer'; | |
| document.querySelector('[data-testid="status"]').textContent = 'complete'; | |
| }, 1800); | |
| } | |
| document.querySelector('[data-testid="send-button"]').addEventListener('click', send); | |
| </script> | |
| </body> | |
| </html> | |