witty/assets/index.html

58 lines
1.9 KiB
HTML
Raw Normal View History

2022-01-04 21:41:41 +01:00
<!doctype html>
2022-01-11 16:08:32 +01:00
<html lang="en">
2022-01-04 21:41:41 +01:00
<head>
2022-01-11 16:08:32 +01:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
2022-01-04 21:41:41 +01:00
<!-- automatically refresh the page every 30 seconds -->
2022-01-12 18:57:45 +01:00
<meta http-equiv="refresh" content="20">
2022-01-11 16:08:32 +01:00
<title>Web Terminal</title>
2022-01-04 21:41:41 +01:00
2022-01-11 16:08:32 +01:00
<!-- Bootstrap core CSS -->
2022-01-11 21:22:24 +01:00
<link href="/assets/external/bootstrap.min.css" rel="stylesheet">
<link href="/assets/main.css" rel="stylesheet">
2022-01-04 21:41:41 +01:00
<body>
2022-01-11 17:23:21 +01:00
<header>
2022-01-11 21:22:24 +01:00
<nav class="navbar navbar-dark bg-dark shadow-sm navbar-xs">
2022-01-11 17:23:21 +01:00
<div class="container-fluid">
2022-01-12 18:57:45 +01:00
<a class="navbar-brand" href="https://github.com/syssecfsu/witty" target="_blank">
<img src="/assets/logo.svg" style="margin-left: 2rem;margin-right: 0.5rem;" height="32"
2022-01-11 21:22:24 +01:00
class="d-inline-block align-text-top">
2022-01-12 03:47:27 +01:00
WiTTY: Web-based interactive TTY
2022-01-12 18:57:45 +01:00
</a>
<a class="btn btn-primary btn-sm float-end" href="/new"
onClick="setTimeout(function(){window.location.reload()}, 3000);" target="_blank" role="button">
New Session
</a>
2022-01-11 16:08:32 +01:00
</div>
</nav>
</header>
<main>
2022-01-11 17:23:21 +01:00
<div class="container" style="margin-top:1em;">
<div class="card-deck row justify-content-center">
2022-01-11 16:08:32 +01:00
2022-01-11 17:23:21 +01:00
<!-- repeat this for each interactive session -->
2022-01-12 03:18:19 +01:00
{{range .players}}
2022-01-11 17:23:21 +01:00
<div class="card shadow-sm border-info bg-light mb-3" style="width: 16rem; margin:1em;">
2022-01-11 16:08:32 +01:00
<div class="card-body">
2022-01-11 17:23:21 +01:00
<h5 class="card-title">Interactive session</h5>
2022-01-12 03:18:19 +01:00
<p class="card-text">From <em>{{.Ip}}</em>, running <strong>{{.Cmd}}</strong>, session ID: <u>{{.Name}}</u>
</p>
<a class="btn btn-secondary btn-sm float-end" href="/view/{{.Name}}" target="_blank" role="button">View
Session</a>
2022-01-11 16:08:32 +01:00
</div>
</div>
2022-01-12 03:18:19 +01:00
{{end}}
2022-01-11 17:23:21 +01:00
2022-01-11 16:08:32 +01:00
</div>
</div>
</main>
2022-01-04 21:41:41 +01:00
</body>
</html>