mirror of
https://gitlab.com/idotj/mastodon-embed-timeline.git
synced 2025-05-24 08:52:46 +00:00
Add codepen demo
This commit is contained in:
parent
8de51e853f
commit
b10e37aff3
10
README.md
10
README.md
@ -5,6 +5,9 @@ Embed a mastodon feed timeine in your page, only with a css and js file.
|
|||||||
Working version running at:
|
Working version running at:
|
||||||
https://www.idotj.com
|
https://www.idotj.com
|
||||||
|
|
||||||
|
Source code running at:
|
||||||
|
https://codepen.io/ipuntoj/pen/MWppNGL
|
||||||
|
|
||||||
## User guide
|
## User guide
|
||||||
|
|
||||||
Just copy both files (.css and .js) in your project
|
Just copy both files (.css and .js) in your project
|
||||||
@ -29,12 +32,11 @@ and add the following structure in your html page:
|
|||||||
|
|
||||||
At the beginning of the JS file *mastodon-timeline.js* replace the following values:
|
At the beginning of the JS file *mastodon-timeline.js* replace the following values:
|
||||||
```
|
```
|
||||||
instance_uri: '',
|
instance_uri: 'The Mastodon instance',
|
||||||
account_id: '',
|
account_id: 'Your user ID on Mastodon instance',
|
||||||
profile_name: '',
|
profile_name: 'Your user name on Mastodon instance',
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Improve me
|
## Improve me
|
||||||
|
|
||||||
Feel free to add/improve the styles and add more features.
|
Feel free to add/improve the styles and add more features.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user