Download task_013/environment/code/index.html from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 985 Bytes
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_013/environment/code/index.html
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_013/environment/code/index.html
-
curl -L -o index.html https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_013/environment/code/index.html
985 Bytes
| <html lang="zh-CN"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>demo-1001 Follow-up Fixture</title> | |
| <style>body { font-family: Arial, sans-serif; padding: 32px; } input { padding: 10px; width: 360px; }</style> | |
| </head> | |
| <body> | |
| <main data-testid="demo-1001-page"> | |
| <button data-testid="write-trigger">Write, press ..</button> | |
| <div data-testid="prompt-area"></div> | |
| </main> | |
| <script> | |
| const area = document.querySelector('[data-testid="prompt-area"]'); | |
| document.querySelector('[data-testid="write-trigger"]').addEventListener('click', () => { | |
| area.innerHTML = '<input data-testid="prompt-input" placeholder="Ask"><button data-testid="send-button">Send</button>'; | |
| area.querySelector('[data-testid="send-button"]').addEventListener('click', () => { | |
| area.innerHTML += '<div data-testid="answer">answer</div><input data-testid="followup-input" placeholder="Follow up">'; | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |