2022-01-11 16:08:32 +01:00
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
|
|
<link href="https://fonts.googleapis.com/css2?family=Fira+Code&family=Fira+Sans&display=swap" rel="stylesheet">
|
|
|
|
|
|
|
|
<script src="/assets/external/xterm.js"></script>
|
|
|
|
<script src="/assets/external/xterm-addon-attach.js"></script>
|
|
|
|
<script src="/assets/external/xterm-addon-fit.js"></script>
|
|
|
|
<script src="/assets/external/xterm-addon-web-links.js"></script>
|
|
|
|
|
|
|
|
<script src="/assets/main.js"></script>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="/assets/external/xterm.css" />
|
|
|
|
<link rel="stylesheet" href="/assets/main.css" />
|
|
|
|
|
2022-01-12 03:58:43 +01:00
|
|
|
<title>WiTTY: {{.title}}</title>
|
2022-01-11 16:08:32 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2022-01-11 21:22:24 +01:00
|
|
|
<div class="banner">
|
|
|
|
<div class="banner-content">
|
2022-01-12 03:59:23 +01:00
|
|
|
WiTTY: {{.title}}
|
2022-01-11 21:22:24 +01:00
|
|
|
</div>
|
2022-01-11 16:08:32 +01:00
|
|
|
</div>
|
2022-01-11 21:22:24 +01:00
|
|
|
|
|
|
|
<div style="margin-top: 7em;">
|
|
|
|
<div id="terminal">
|
|
|
|
<div id="terminal_view"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-01-11 16:08:32 +01:00
|
|
|
<script>
|
|
|
|
term = createTerminal("{{.path}}");
|
|
|
|
// print something to test output and scroll
|
|
|
|
var str = [
|
|
|
|
' ┌────────────────────────────────────────────────────────────────────────────┐',
|
2022-01-12 11:55:53 +01:00
|
|
|
' │ Powered by \u001b[32;1mGo, Gin, websocket, pty, and https://xtermjs.org\x1b[0m │',
|
2022-01-11 16:08:32 +01:00
|
|
|
' └────────────────────────────────────────────────────────────────────────────┘',
|
|
|
|
''
|
|
|
|
].join('\n\r');
|
|
|
|
|
|
|
|
term.writeln(str);
|
|
|
|
</script>
|
2022-01-11 21:22:24 +01:00
|
|
|
|
2022-01-11 16:08:32 +01:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|