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

499

Dark theme for the widget

498

Light theme for the widget