Skip to content

Widgets integration

Include the following script on the page:

html
<script type="text/javascript" src="https://{APP_URL}/assets/sdk/init.js"></script>

The Best Highlights widget displays popular events and is available as a slider. This widget allows users to quickly browse matches from various disciplines and place bets.

Best Highlights widget

Interface and Functionality

  • Disciplines: At the top of the widget, there is a row with icons representing different disciplines (e.g., football, basketball, tennis, etc.). Selecting an icon highlights the chosen discipline in orange and filters the displayed live events accordingly.

  • Event list: Ongoing events are displayed as cards in a slider. Each card includes:

    • Tournament: The name of the tournament the event belongs to (e.g., “Spain. La Liga”).
    • Match start time: The date and time the event starts.
    • Fire icon: Indicates that the event is featured or top-rated.
    • Teams or participants: The names of the two competing teams or participants (e.g., “Espanyol vs Sevilla”).
    • Match winner market: Odds for available outcomes, including two or three possible results: win for the first team, draw, or win for the second team.
  • Slider navigation: Pagination dots and navigation arrows are located below the slider, indicating the current position and allowing scrolling through the list of events.

This widget provides players with convenient access to popular events and quick bet selection, offering all necessary information in a compact format.

Widget integration

Insert this element in the place where you want to embed our widget:

html
<div id="top-events-widget-container"></div>

TIP

To initialize the Best Highlights widget, call the BetSdk.initTopEventsWidget() function:

javascript
const  topEventsWidget = BetSdk.initTopEventsWidget({
    mainFrameUrl:  "http://<Partner_host>/"  //Sportsbook main app URL
    host: "{{HOST}}"  //Sportsbook host
    cid: "demopartner", //Partner id
    lang:  "en", //language
    containerId:  "top-events-widget-container", // Id of element to render widget
    height:  "<string>", //Should be specified 372px by the height of the widget
    customStyles:  "http://<url>", //url with custom css styles
})