Three-way (1X2) predictions
Getting started with the Fans United 3-way (1X2) Predictions widget
The "3-way (a.k.a. 1X2)" widget allows users to predict the outcome of a match. This widget is used for the following markets:
- 1X2 at full-time
- 1X2 at half-time
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-1x2"
- data-match-id: [Required] string
- data-market: enum["full-time", "half-time"]. Default: "full-time"
- 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:
- data-label-title-ft="Who will win?"
- data-label-title-ht="Who will win at half-time?"
- data-label-draw="Draw"
- data-label-votes="##VOTES_COUNT## votes so far"
Call to action options:
- data-call-to-action-html="Any HTML here to be displayed under the results."
Example
<div
data-widget-id="widget-1x2"
data-match-id="2699453"
data-market="half-time"
data-language="bg"
data-theme="light"
data-label-votes="##VOTES_COUNT## votes so far"
></div>
Design
![Screenshot 2022-08-31 at 17.16.04.png 499](https://files.readme.io/f200b3f-Screenshot_2022-08-31_at_17.16.04.png)
Dark theme for the widget
![Screenshot 2022-08-31 at 17.18.30.png 498](https://files.readme.io/f80cf14-Screenshot_2022-08-31_at_17.18.30.png)
Light theme for the widget
Updated 8 months ago