Spaces:
Paused
Paused
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Web Terminal</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@4.19.0/css/xterm.css" /> | |
| <script src="https://cdn.jsdelivr.net/npm/xterm@4.19.0/lib/xterm.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.5.0/lib/xterm-addon-fit.js"></script> | |
| <style> | |
| /* Ensure the HTML and body take up the full viewport */ | |
| html, body { | |
| margin: 0; | |
| padding: 0; | |
| width: 100%; | |
| height: 100vh; | |
| overflow: hidden; | |
| background: #000; /* Ensure background is black to match terminal */ | |
| } | |
| /* Make the terminal container full-screen */ | |
| #terminal { | |
| width: 100%; | |
| height: 100vh; | |
| display: block; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="terminal"></div> | |
| <script src="/script.js"></script> | |
| </body> | |
| </html> |