Zlatislav Zlatev
commited on
Commit
·
a3fe8b3
1
Parent(s):
ca232bf
Create index.html
Browse files- index.html +15 -0
index.html
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<link rel="stylesheet" href="node_modules/xterm/css/xterm.css" />
|
| 5 |
+
<script src="node_modules/xterm/lib/xterm.js"></script>
|
| 6 |
+
</head>
|
| 7 |
+
<body>
|
| 8 |
+
<div id="terminal"></div>
|
| 9 |
+
<script>
|
| 10 |
+
var term = new Terminal();
|
| 11 |
+
term.open(document.getElementById('terminal'));
|
| 12 |
+
term.write('Hello from \x1B[1;3;31mxterm.js\x1B[0m $ ')
|
| 13 |
+
</script>
|
| 14 |
+
</body>
|
| 15 |
+
</html>
|