2022-03-07 23:51:59 +09:00
|
|
|
{##
|
2022-07-24 11:24:40 +09:00
|
|
|
# SPDX-FileCopyrightText: 2022 n9k <https://git.076.ne.jp/ninya9k>
|
2022-03-07 23:51:59 +09:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
##}
|
2022-02-13 13:00:10 +09:00
|
|
|
<!doctype html>
|
2022-02-17 06:42:28 +09:00
|
|
|
<html id="nochat">
|
2022-02-13 13:00:10 +09:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2022-03-03 19:38:55 +09:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2022-03-07 16:11:49 +09:00
|
|
|
<meta http-equiv="content-security-policy" content="default-src 'none'; connect-src 'self'; img-src 'self'; frame-src 'self'; media-src 'self'; script-src 'self'; style-src 'self' 'nonce-{{ csp }}';">
|
2022-02-22 12:57:48 +09:00
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" type="text/css">
|
2022-02-13 13:00:10 +09:00
|
|
|
</head>
|
2022-03-07 16:11:49 +09:00
|
|
|
<body id="both" data-token="{{ user.token }}" data-token-hash="{{ user.token_hash }}" data-csp="{{ csp }}">
|
2022-03-02 19:13:07 +09:00
|
|
|
<article id="stream">
|
|
|
|
<noscript><iframe id="stream_nojs" name="stream_nojs" src="{{ url_for('nojs_stream', token=user.token) }}"></iframe></noscript>
|
|
|
|
</article>
|
2022-02-13 13:00:10 +09:00
|
|
|
<article id="info">
|
2022-02-14 19:16:09 +09:00
|
|
|
<noscript><iframe id="info_nojs" src="{{ url_for('nojs_info', token=user.token) }}" data-js="false"></iframe></noscript>
|
2022-02-13 13:00:10 +09:00
|
|
|
</article>
|
|
|
|
<aside id="chat">
|
2022-02-26 19:34:14 +09:00
|
|
|
<input id="chat__toggle" type="checkbox">
|
|
|
|
<header id="chat__header">
|
|
|
|
<label id="chat__header__button" for="chat__toggle">Users</label>
|
|
|
|
<h3 id="chat__header__text">Stream chat</h3>
|
|
|
|
</header>
|
2022-02-27 21:12:37 +09:00
|
|
|
<article id="chat__body">
|
|
|
|
<section id="chat__body__messages">
|
2022-03-04 15:15:56 +09:00
|
|
|
<noscript><iframe id="chat-messages_nojs" src="{{ url_for('nojs_chat_messages', token=user.token, _anchor='end') }}" data-js="false"></iframe></noscript>
|
2022-02-27 21:12:37 +09:00
|
|
|
</section>
|
|
|
|
<section id="chat__body__users">
|
|
|
|
<header id="chat-users-header"><h4>Users in chat</h4></header>
|
2022-03-04 15:15:56 +09:00
|
|
|
<noscript><iframe id="chat-users_nojs" src="{{ url_for('nojs_chat_users', token=user.token) }}" data-js="false"></iframe></noscript>
|
2022-02-27 21:12:37 +09:00
|
|
|
</section>
|
2022-02-26 19:34:14 +09:00
|
|
|
</article>
|
2022-02-13 13:00:10 +09:00
|
|
|
<section id="chat__form">
|
2022-03-04 15:15:56 +09:00
|
|
|
<noscript><iframe id="chat-form_nojs" src="{{ url_for('nojs_chat_form', token=user.token) }}" data-js="false"></iframe></noscript>
|
2022-02-13 13:00:10 +09:00
|
|
|
</section>
|
|
|
|
</aside>
|
2022-02-26 19:34:14 +09:00
|
|
|
<nav id="nav">
|
2022-02-13 13:00:10 +09:00
|
|
|
<a href="#info">info</a>
|
|
|
|
<a href="#chat">chat</a>
|
|
|
|
<a href="#both">both</a>
|
|
|
|
</nav>
|
2022-06-29 13:56:16 +09:00
|
|
|
<footer>anonstream {{ version }} — <a href="https://git.076.ne.jp/ninya9k/anonstream" target="_blank">source</a></footer>
|
2022-02-22 12:57:48 +09:00
|
|
|
<script src="{{ url_for('static', filename='anonstream.js') }}" type="text/javascript"></script>
|
2022-02-13 13:00:10 +09:00
|
|
|
</body>
|
|
|
|
</html>
|