anonstream/anonstream/templates/nojs_info.html

52 行
1.2 KiB
HTML
Raw 通常表示 履歴

<!doctype html>
<html>
<head>
<meta charset="utf-8">
2022-03-03 19:38:55 +09:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="refresh" content="6">
<style>
body {
2022-02-16 19:30:00 +09:00
overflow-y: auto;
margin: 0.75ch 1.25ch;
font-family: sans-serif;
color: #ddd;
}
#float {
2022-02-22 19:36:59 +09:00
float: right;
font-size: 11pt;
display: grid;
grid-auto-flow: column;
grid-gap: 2.5ch;
}
#float__form {
display: block;
margin: 0;
}
#float__uptime {
font-variant-numeric: tabular-nums;
2022-02-22 19:36:59 +09:00
}
#title > h1 {
margin: 0;
font-size: 18pt;
line-height: 1.125;
overflow-wrap: anywhere;
}
</style>
</head>
<body>
{% if uptime is not none %}
<aside id="float">
{% if user.presence != Presence.WATCHING %}
<form id="float__form" action="{{ url_for('nojs_stream') }}" target="stream_nojs">
<input type="hidden" name="token" value="{{ user.token }}">
<input type="submit" value="Reload stream">
</form>
{% endif %}
<div id="float__viewership">{{ viewership }} viewers</div>
<div id="float__uptime">{{ uptime }}</div>
</aside>
{% endif %}
2022-02-22 19:36:59 +09:00
<header id="title"><h1>{{ title }}</h1></header>
</body>
</html>