Mastodon-Circles/index.html

51 lines
2.2 KiB
HTML
Raw Permalink Normal View History

2022-11-19 08:56:09 -07:00
<!DOCTYPE html>
2023-08-31 12:49:04 -06:00
<html lang="en">
2022-11-19 08:56:09 -07:00
<meta charset="UTF-8">
2023-07-19 17:16:22 -06:00
<title>Fedi Circle Creator</title>
2023-08-31 12:49:04 -06: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
<body>
<script src="create-circle.js"></script>
2022-11-19 12:01:33 -07:00
<script src="image.js"></script>
2023-08-31 13:02:16 -06:00
<h1>&#11093; Fedi Circle Creator</h1>
2023-07-19 17:52:39 -06:00
<form id="generateForm" onsubmit="(async () => await circleMain())(); return false;">
2023-07-22 12:33:34 -06:00
<input id="txt_mastodon_handle" type="text" placeholder="@sonnenbrandi@mieke.club">
2023-07-19 17:52:39 -06: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 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-20 05:03:18 -07:00
<br><br>
<!-- Canvas for the final Image -->
2024-01-01 15:18:00 -07:00
<canvas id="canvas" width="1000" height="1000" style="background-color: grey">
2023-08-31 12:49:04 -06:00
</canvas>
2022-11-20 06:51:58 -07:00
<br>
<!-- List of all people in Circle -->
2023-08-31 15:41:36 -06:00
<div id="outDiv">
<em>Click a user below to visit their profile.</em>
2024-01-01 15:18:00 -07:00
<h2><bdi id="outSelfUser"></bdi>'s Fedi Circle</h2>
2023-08-31 15:41:36 -06:00
<div id="usersDiv">
<div id="ud1" class="userSubDiv"></div>
<div id="ud2" class="userSubDiv"></div>
<div id="ud3" class="userSubDiv"></div>
</div>
2022-11-20 06:51:58 -07:00
</div>
<br><br><br>
2022-11-20 07:17:18 -07:00
<div id="credits" style="width: 100%;">
2023-08-31 12:49:04 -06:00
<p>Contribute on <a href="https://github.com/AMNatty/Mastodon-Circles">GitHub: AMNatty/Mastodon-Circles</a></p>
<p>Fedibird support by <a href="https://github.com/noellabo/Mastodon-Circles">noellabo</a></p>
2023-08-31 12:49:04 -06:00
<p>Based on <a href="https://github.com/andigandhi/Mastodon-Circles">andigandhi/Mastodon-Circles</a> </p>
2022-11-20 06:51:58 -07:00
</div>
2022-11-20 05:03:18 -07:00
<!-- Preload the background image -->
2023-08-31 12:49:04 -06:00
<div style="display:none;"><img id="mieke_bg" src="background.png" width="1000" height="1000" /></div>
2022-11-19 08:56:09 -07:00
</body>
2024-01-01 15:18:00 -07:00
</html>