Skip to content

autinerd/simple-mastodon-share-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Mastodon share button

Usage

Add those two lines to your HTML header:

<link rel="stylesheet" href="mastodonShare.css">
<script src="mastodonShare.js"></script>

Add a button which shares the current page:

<button class="mastodon-share"></button>

Add a button which shares another page:

<button class="mastodon-share" data-title="Join Mastodon!" data-href="https://joinmastodon.org"></button>

Simple demo: https://autinerd.github.io/simple-mastodon-share-button/

About

A simple Mastodon share button.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published