MastodonTootFollower/templates/index.html

54 lines
1.8 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>My Website</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<!-- https://developer.mozilla.org/en-US/docs/Glossary/Favicon -->
<link rel="icon" href="{{ url_for('static', filename='favicon.png') }}" type="image/x-icon">
</head>
<body>
<main>
<h1>MastodonTootFollower</h1>
<p>
2022-12-14 18:07:22 +01:00
In the following you can generate a link to follow a conversation on Mastodon.
</p>
<p>
You can either follow a conversation with a feed reader (Atom/RSS) of your choice
or view new replies and edits each time you open the link in your webbrowser (HTML page or JSON file).
</p>
<p>
To get started, fill in the URL of the Toot that has started the conversation
and click one of the three buttons. Then open your generated link (either with a feed reader or in your webbrowser).
</p>
<p>
The random seed is used to store your reading position.
</p>
<p>
<label for="input1">URL of Toot: </label>
<input name="html_url" type="url" maxlength="256" id="input1"/>
</p>
<p>
2022-12-14 18:07:22 +01:00
<label for="input2">Seed: </label>
<input name="html_url" type="text" value="{{ seed }}" maxlength="256" id="input2"/>
</p>
<ul>
<li>
2022-12-14 18:07:22 +01:00
<button onclick="rss_button()">Atom/RSS feed</button>
</li>
<li>
2022-12-14 18:07:22 +01:00
<button onclick="json_button()">News as JSON file</button>
</li>
<li>
2022-12-14 18:07:22 +01:00
<button onclick="html_button()">News as HTML page</button>
</li>
</ul>
2022-12-14 18:07:22 +01:00
<p>Generated link: <a href="https://localhost:443" id="href1"></a></p>
</main>
<script src="{{ url_for('static', filename='index.js') }}"></script>
</body>
</html>