mirror of
https://github.com/syssecfsu/witty.git
synced 2024-12-27 05:02:33 +01:00
55 lines
2.0 KiB
HTML
55 lines
2.0 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>{{.title}}</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="banner">
|
|
<div class="banner-content">
|
|
{{.title}}
|
|
</div>
|
|
</div>
|
|
|
|
<div style="margin-top: 7em;">
|
|
<div id="terminal">
|
|
<div id="terminal_view"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
term = createTerminal("{{.path}}");
|
|
// print something to test output and scroll
|
|
var str = [
|
|
' ┌────────────────────────────────────────────────────────────────────────────┐',
|
|
' │ \x1b[32mXterm.js\x1b[0m is the frontend component that powers many terminals including, │',
|
|
' │ \x1b[3mVS Code\x1b[0m, \x1b[3mHyper\x1b[0m and \x1b[3mTheia\x1b[0m! │',
|
|
' │ │',
|
|
' │ \x1b[34mhttps://xtermjs.org\x1b[0m (<-try to click it!) │',
|
|
' └────────────────────────────────────────────────────────────────────────────┘',
|
|
''
|
|
].join('\n\r');
|
|
|
|
term.writeln(str);
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html> |