0.4.1 • Published 2 years ago

@uvarov.frontend/odds-widget v0.4.1

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

ODDS Widget

ODDS Widget without using additional packages. DEMO

Initialize

Get odds-widget using one of the methods provided.

NPM

npm install @uvarov.frontend/odds-widget

Then import it in your javascript file.

import ODDSWidget from '@uvarov.frontend/odds-widget';

The widget is automatically initialized after the import is connected.

or Script tag

The widget can be manually included in an HTML page.

head or end body

CDN

<script src="https://cdn.jsdelivr.net/npm/@uvarov.frontend/odds-widget@0.4.1/odds-widget.min.js"></script>

or locally

<script src="./odds-widget.min.js"></script>

Usage example. Minimum number of parameters.

<div data-this="widget"
  data-type="match/list"
  data-widget-source="1001"></div>

<div data-this="widget"
  data-type="match/rates"
  data-widget-match-id="1511616"
  data-widget-source="1001"></div>

License

MIT License

Author

Yuri Uvarov (uvarov.frontend@gmail.com)