Mastodon-Circles/index.html

53 lines
2.6 KiB
HTML
Raw Normal View History

2022-11-19 08:56:09 -07:00
<!DOCTYPE html>
<html lang="de">
<meta charset="UTF-8">
2023-07-19 17:16:22 -06:00
<title>Fedi Circle Creator</title>
2022-11-19 08:56:09 -07:00
<meta name="viewport" content="width=device-width,initial-scale=1">
2022-11-19 09:53:53 -07:00
<link rel="stylesheet" href="style.css">
2022-11-19 08:56:09 -07:00
<style>
</style>
<script src=""></script>
<body>
<script src="create-circle.js"></script>
2022-11-19 12:01:33 -07:00
<script src="image.js"></script>
2022-11-20 05:03:18 -07:00
<h1>Trötpty</h1>
2023-07-19 17:20:51 -06:00
<h3><span style="text-decoration: line-through" aria-hidden="true">Mastodon</span> Fedi Circle Creator</h3>
2022-11-20 05:03:18 -07:00
<!-- TODO Logo? -->
2023-07-19 17:52:39 -06:00
<form id="generateForm" onsubmit="(async () => await circleMain())(); return false;">
<input id="txt_mastodon_handle" type="text" onchange="document.getElementById('btn_create').style = 'display: inline;'; document.getElementById('btn_download').style = 'display: none;'" placeholder="@sonnenbrandi@mieke.club">
<br><br>
<span>
<label><input type="radio" name="backend" value="detect" autocomplete="off" checked> Autodetect</label>
<label><input type="radio" name="backend" value="mastodon" autocomplete="off"> Mastodon API</label>
<label><input type="radio" name="backend" value="misskey" autocomplete="off"> Misskey API</label>
2023-07-20 08:19:53 -06:00
<label><input type="radio" name="backend" value="pleroma" autocomplete="off"> Pleroma API</label>
2023-07-19 17:52:39 -06:00
</span>
<br>
<button type="submit" id="generateButton">Generate circle</button>
</form>
2023-07-19 17:16:22 -06:00
<span id="outInfo"></span>
2022-11-28 12:43:16 -07:00
<a href="" id="btn_download" class="button" download="mastodon-circle.png" style="display: none;">DOWNLOAD (klappt wsl nicht)</a>
<!-- <button id="btn_download" onClick="downloadImage()" style="display: none;">DOWNLOAD</button> -->
2022-11-20 05:03:18 -07:00
<br><br>
<!-- Canvas for the final Image -->
<canvas id="canvas" width="1000" height="1000"></canvas>
2022-11-20 06:51:58 -07:00
<br>
<!-- List of all people in Circle -->
<div id="usersDiv">
<div id="ud1" class="userSubDiv"></div>
<div id="ud2" class="userSubDiv"></div>
<div id="ud3" class="userSubDiv"></div>
</div>
<br><br><br>
2022-11-20 07:17:18 -07:00
<div id="credits" style="width: 100%;">
2023-07-19 17:16:22 -06:00
<p>Contribute on <a href="https://github.com/AMNatty/Mastodon-Circles">Github</a> </p>
2022-11-20 06:51:58 -07:00
<p>Thanks to <a href="https://twitter.com/duiker101">Duiker101</a> for creating chirpty for Twitter</p>
2023-07-19 17:16:22 -06:00
<p>Original on <a href="https://github.com/andigandhi/Mastodon-Circles">Github</a> </p>
2022-11-20 06:51:58 -07:00
</div>
2022-11-20 05:03:18 -07:00
<!-- output for further projects ;) -->
<div id="outDiv" style="display: none;"></div>
<!-- Preload the background image -->
<div style="display:none;"><img id="mieke_bg" src="mieke_bg.jpg" width="1000" height="1000" /></div>
2022-11-19 08:56:09 -07:00
</body>
</html>