1.0.0 • Published 3 years ago

twitch-widget v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Twitch-widget

Twitch widget to show follower and view count

Dependencies

  • jQuery

How to download

You can download twitch-widget at https://twitch-widget.dannomac.xyz/download.html

How to use

1.Install on your website
<script src="/path/to/twitch-widget.js"></script>
2.Create div for content
<div id="twitch-widget-followers"></div>
<div id="twitch-widget-views"></div>
3.Initialize
tw.auth = "your_auth_key";
tw.id = "your_client_id";
tw.user = "your_user_id";
tw.init();
3.Style
By default it will have no styling. Use the following IDs to style the elements

  • twitch-widget-followers
  • twitch-widget-followers-num
  • twitch-widget-views
  • twitch-widget-views-num