Correct score predictions
Getting started with the Fans United 3-way (1X2) Predictions widget
The "Correct Score" widget allows users to predict the score of a match. You can use this widget as it is, or you can use the JavaScript SDK to create your own custom implementation.
Widget configuration
The widget accepts the following configuration:
- data-widget-id: [Required] "widget-correct-score"
- data-match-id: [Required] string
- data-theme: enum["light", "dark"]. Default: "dark"
- data-language: enum["en", "bg", "ro"]. Default: "en". Overrides the setting in the widget loader config
You can manage the language of your widget by overriding the default labels using the following attributes:
Call to action options:
- data-call-to-action-html="Any HTML here to be displayed under the results."
Example
<div
data-widget-id="widget-correct-score"
data-match-id="2699453"
data-label-votes="##VOTES_COUNT## votes so far">
</div>
Design
![Screenshot 2022-08-31 at 17.21.07.png 500](https://files.readme.io/09edc5c-Screenshot_2022-08-31_at_17.21.07.png)
Dark theme for the widget
![Screenshot 2022-08-31 at 17.20.18.png 500](https://files.readme.io/66048d1-Screenshot_2022-08-31_at_17.20.18.png)
Light theme for the widget
Updated 8 months ago