Download index.html from clone3/NEWTESTD: direct link, hf CLI and curl.
- Browser
- Download file 731 Bytes
-
https://huggingface.co/spaces/clone3/NEWTESTD/resolve/main/index.html
- Command line
-
hf download hf://spaces/clone3/NEWTESTD/index.html
-
curl -L -o index.html https://huggingface.co/spaces/clone3/NEWTESTD/resolve/main/index.html
731 Bytes
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Terminal Emulator</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@4.19.0/css/xterm.css"> | |
| </head> | |
| <body> | |
| <div id="terminal"></div> | |
| <script src="https://cdn.jsdelivr.net/npm/xterm@4.19.0/lib/xterm.js"></script> | |
| <script> | |
| const term = new Terminal({ cursorBlink: true }); | |
| term.open(document.getElementById('terminal')); | |
| const socket = new WebSocket('ws://localhost:6060'); | |
| term.onData((input) => { | |
| socket.send(input); | |
| }); | |
| socket.onmessage = (event) => { | |
| term.write(event.data); | |
| }; | |
| </script> | |
| </body> | |
| </html> | |