From 1808843e9ec27acf7594d90629990409c54fa684 Mon Sep 17 00:00:00 2001 From: smpl Date: Fri, 6 May 2022 03:41:58 +0200 Subject: [PATCH] Rewrite By using a lot of CSS ninja, the script has been cut from 292 to 52 lines. The generator script has been updated to use ES6 backtick template strings. --- embed/index.html | 659 ++++++++++++++++++------------------------ mastodon-follow.html | 17 ++ mastodon-interact.css | 151 ++++++++++ mastodon-interact.js | 308 +++----------------- mastodon-share.html | 17 ++ 5 files changed, 500 insertions(+), 652 deletions(-) create mode 100644 mastodon-follow.html create mode 100644 mastodon-interact.css create mode 100644 mastodon-share.html diff --git a/embed/index.html b/embed/index.html index 004f75d..cc5a1f2 100644 --- a/embed/index.html +++ b/embed/index.html @@ -11,7 +11,8 @@ Mastodon Interact Widget | Embed - - + + - - - + + + +MastodonInteract.account = "${settings.account}"; +MastodonInteract.init();`; + +