Mastodon-Circles/index.html

46 lines
2 KiB
HTML
Raw Normal View History

2022-11-19 16:56:09 +01:00
<!DOCTYPE html>
2023-08-31 20:49:04 +02:00
<html lang="en">
2022-11-19 16:56:09 +01:00
<meta charset="UTF-8">
2023-07-20 01:16:22 +02:00
<title>Fedi Circle Creator</title>
2023-08-31 20:49:04 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-11-19 17:53:53 +01:00
<link rel="stylesheet" href="style.css">
2022-11-19 16:56:09 +01:00
<body>
<script src="create-circle.js"></script>
2022-11-19 20:01:33 +01:00
<script src="image.js"></script>
2023-08-31 20:49:04 +02:00
<h1>Fedi Circle Creator</h1>
2023-07-20 01:52:39 +02:00
<form id="generateForm" onsubmit="(async () => await circleMain())(); return false;">
2023-07-22 20:33:34 +02:00
<input id="txt_mastodon_handle" type="text" placeholder="@sonnenbrandi@mieke.club">
2023-07-20 01:52:39 +02:00
<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 16:19:53 +02:00
<label><input type="radio" name="backend" value="pleroma" autocomplete="off"> Pleroma API</label>
2023-07-20 01:52:39 +02:00
</span>
<br>
<button type="submit" id="generateButton">Generate circle</button>
</form>
2023-07-20 01:16:22 +02:00
<span id="outInfo"></span>
2022-11-20 13:03:18 +01:00
<br><br>
<!-- Canvas for the final Image -->
2023-08-31 20:49:04 +02:00
<canvas id="canvas" width="1000" height="1000" style="background-color: gray">
</canvas>
2022-11-20 14:51:58 +01: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 15:17:18 +01:00
<div id="credits" style="width: 100%;">
2023-08-31 20:49:04 +02:00
<p>Contribute on <a href="https://github.com/AMNatty/Mastodon-Circles">GitHub: AMNatty/Mastodon-Circles</a></p>
<p>Based on <a href="https://github.com/andigandhi/Mastodon-Circles">andigandhi/Mastodon-Circles</a> </p>
2022-11-20 14:51:58 +01:00
</div>
2022-11-20 13:03:18 +01:00
<!-- output for further projects ;) -->
<div id="outDiv" style="display: none;"></div>
<!-- Preload the background image -->
2023-08-31 20:49:04 +02:00
<div style="display:none;"><img id="mieke_bg" src="background.png" width="1000" height="1000" /></div>
2022-11-19 16:56:09 +01:00
</body>
</html>