Skip to content

Commit f096ec0

Browse files
committed
Widget working, but need to adjust setting
1 parent 6907708 commit f096ec0

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

mastodon-widget.qmd

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
<link rel="stylesheet" href="mastodon-timeline.min.css" />
22
<script src="mastodon-timeline.umd.js"></script>
3-
<script>const myTimeline = new MastodonTimeline.Init();</script>
43

54
<div id="mt-container" class="mt-container">
65
<div class="mt-body" role="feed">
76
<div class="mt-loading-spinner"></div>
87
</div>
98
</div>
9+
10+
<script>
11+
const myTimeline = new MastodonTimeline.Init({
12+
mtContainerId: 'mt-container',
13+
instanceUrl: 'https://hachyderm.io', // Change this to your preferred instance
14+
timelineType: 'profile', // or 'hashtag' or 'profile'
15+
userId: '109858074080091787',
16+
profileName: '@R_Forwards',
17+
maxNbPostShow: '10',
18+
maxNbPostFetch: '10',
19+
insistSearchContainer: true, // This helps with timing issues
20+
insistSearchContainerTime: '5000' // Wait up to 5 seconds for container
21+
});
22+
</script>

0 commit comments

Comments
 (0)