index.xhtml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html lang="ja" xml:lang="ja" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="author" content="SENOO, Ken" />
  6. <title>Social Citer</title>
  7. <link rel="shortcut icon" href="#" />
  8. </head>
  9. <body>
  10. <h1>Social Citer</h1>
  11. <p>Format social post for citation. Currently support Mastodon/Misskey/Twitter (for GNU social only and except for media)/Bluesky API.</p>
  12. <p><a href="https://notabug.org/gnusocialjp/socialciter">Repository</a>/License=CC0. <a href="https://web.gnusocial.jp/post/2023/01/01/866/">Introduction</a>. <a href="https://socialciter.gnusocial.jp">Site</a>.</p>
  13. <main>
  14. <section>
  15. <h1>Form</h1>
  16. <form>
  17. <fieldset>
  18. <legend>Input</legend>
  19. <p><input id="input" type="text" placeholder="post URL" value="" style="width:100%"/></p>
  20. <p><button id="button" type="button">Go&amp;Copy</button>
  21. <input id="handle" name="username" type="text" placeholder="handle" value="senooken.bsky.social" style="width:15em" autocomplete="on" />
  22. <input id="password" name="password" type="password" placeholder="password" value="" style="width:15em" autocomplete="on" /> (for Bluesky)
  23. </p>
  24. </fieldset>
  25. </form>
  26. <form>
  27. <fieldset>
  28. <legend>Output</legend>
  29. <textarea id="output" placeholder="Output here" style="width:100%"></textarea>
  30. </fieldset>
  31. </form>
  32. <form>
  33. <fieldset>
  34. <legend>View</legend>
  35. <output id="view">
  36. <blockquote style="background:rgb(99,100,255);background-image:linear-gradient(hsla(0,0%,100%,0.5),hsla(0,0%,100%,0.5))">
  37. <article>
  38. <header style="display:flex;line-height:1.5">
  39. <img referrerpolicy="no-referrer" alt="avatar" src="" style="width:4.5em" />
  40. <div>
  41. <div><a href="#">YYYY-mm-ddTHH:MM:SS.fffZ</a></div>
  42. <div>display name|<a href="#">username@host</a></div>
  43. <div><a href="#">replying to</a> display name|<a href="#">username@host</a></div>
  44. </div>
  45. </header>
  46. <main>contents</main>
  47. <footer><img referrerpolicy="no-referrer" alt="attachments" src="" /></footer>
  48. </article>
  49. </blockquote>
  50. </output>
  51. </fieldset>
  52. </form>
  53. </section>
  54. <section>
  55. <h1>Example</h1>
  56. <ul>
  57. <li><a href="https://mstdn.jp/@senooken/109607459358722821">Mastodon</a></li>
  58. <li><a href="https://misskey.io/notes/9a85p8ho8t">Misskey</a></li>
  59. <li><a href="https://gnusocial.jp/notice/2354517">GNU social</a></li>
  60. <li><a href="https://bsky.app/profile/senooken.bsky.social/post/3jtsnogl2je2g">Bluesky</a></li>
  61. </ul>
  62. </section>
  63. </main>
  64. <script src="main.js"></script>
  65. </body>
  66. </html>