mirror of
https://github.com/syssecfsu/witty.git
synced 2024-11-01 17:49:26 +01:00
52 lines
1.7 KiB
HTML
52 lines
1.7 KiB
HTML
<!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" />
|
|
|
|
<title>WiTTY: {{.title}}</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="banner">
|
|
<div class="banner-content">
|
|
WiTTY: {{.title}}
|
|
</div>
|
|
</div>
|
|
|
|
<div style="margin-top: 5em;">
|
|
<div id="terminal">
|
|
<div id="terminal_view"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
term = createTerminal("{{.path}}");
|
|
// print something to test output and scroll
|
|
var str = [
|
|
' ┌────────────────────────────────────────────────────────────────────────────┐\n',
|
|
' │ Powered by \u001b[32;1mGo, Gin, websocket, pty, and xterm.js\x1b[0m │\n',
|
|
' └────────────────────────────────────────────────────────────────────────────┘\n',
|
|
''
|
|
].join('');
|
|
|
|
term.writeln(str);
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html> |