Show Bubbles Votes on Your Own Blog A small thing I've been wanting for a while: you can now drop a snippet on your blog that shows the live Bubbles vote count for each post. Scroll to the bottom of this post to see it in action. The full guide lives at https://bubbles.town/embed but here's the short version: It's one line of HTML and a script tag: ``` <div class="bubbles-vote"></div> <script src="https://bubbles.town/vote.js" defer></script> ``` That's everything you need. The widget figu...
Log in to reply on the Fediverse. Comments will appear here.
please can I encourage you to use SubResource Integrity on those JS snippets.
That will protect people if something gets compromised at your end.
https://developer.mozilla.org/en-US/blog/securing-cdn-using-sri-why-how/
@bubbles Happy to do so, I have just added a SRI version at the bottom of the embed page, so users can choose between updates vs. security. Thanks for bringing this up! https://bubbles.town/embed
@bubbles cool. It is a lovely site.