Git Product home page Git Product logo

fediwebcomp's Introduction

FediWebComp

Various web components to embed into any web page and display your latest posts from various Fediverse platforms, such as Mastodon, PixelFeed and PeerTube.

It's very easy to use:

  • 0 dependencies, just import the script of the component to use.
  • Add the tag to the page and define the values of the attributes of your user and instance.
  • Define the value of other attributes to customize it (height, colours, what media to show, etc.)
  • Works in any updated browser

Under the MIT license

Mastodon

Show your latest toots, not including replies or retoots.

Mastodon screenshot

How to use

<script type="text/javascript" src="fwb-mastodon.js"></script>
<fwb-mastodon username="youruser" instance="mastodoninstance.org" />

Attributes:

  • username: Your mastodon user name, without the @
  • instance: The mastodon instance where you have the account. No need to add https:// at the beginning. For example: mastodon.social
  • widget-text: The text color of the component. *
  • widget-bg: The background color of the component. *
  • toots-text: The text color of the toots *
  • toots-bg: The background color of the toots list *
  • links: The text color of the links *
  • height: Set the widget height. You can use any CSS size value (px, pt, vh, etc)
  • medias: Comma-separated values to indicate which media files you want to display. The values are: all (default), none, image, video, audio. Note: None prevails over all, and all over the rest, keep this in mind when defining this value.

* You can use any CSS color value, such as hexadecimal (#ffffff), color name (white), rgb (rgb(255,255,255)) and rgba (rgba(255,255,255,0.8))

fediwebcomp's People

Contributors

son-link avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.