Code Monkey home page Code Monkey logo

match-overview-widget's Introduction

match-overview-widget

A widget showing the match schedule of upcoming matches in a scrollable list. The matches shown are based in the highlights (the popular list in the sportsbook). The matches are ordered by their start date.

The matches shown are from the events that are related to the links in the highlight list AND are also inside the provided filter argument.

If the combine argument is false only the matches from the first matched highlight will be shown, if it is true then the widget will show the matches from all the matched highlights.

In desktop mode the widget has clickable arrows to scroll the widget, In mobile mode the widget instead scrolls normally (by "tap-draging"). In mobile mode the widget has a smaller main logo which will be shown briefly before automatically scrolling it out of sight.

Configuration

Arguments and default values:

"args": {
    "filter": [
        "/football/champions_league",
        "/football/england/premier_league",
        "/football/europa_league",
        "/football/france/ligue_1",
        "/football/germany/bundesliga",
        "/football/international_friendly_matches",
        "/football/italy/serie_a",
        "/football/norway/tippeligaen",
        "/football/spain/laliga",
        "/football/sweden/allsvenskan",
        "/football/world_cup_qualifying_-_asia",
        "/football/world_cup_qualifying_-_europe",
        "/football/world_cup_qualifying_-_north__central___caribbean",
        "/football/world_cup_qualifying_-_south_america",
        "/football/belgium/jupiler_pro_league",
        "/football/netherlands/eredivisie"
    ],
    "combineFilters": false,
    "pollingInterval": 30000,
    "pollingCount": 4,
    "eventsRefreshInterval": 120000,
    "widgetTrackingName": "gm-match-overview-widget",
    "compareAgainstHighlights": true,
}
  1. filter - Array - list of filters to match against the highlights. Only matches from these filters will show up in the widget.
  2. combineFilters - boolean - if true will use all the filters that are also with the highlights mixing different tournaments together
  3. pollingInterval - number - interval in milliseconds to get new live data from live matches
  4. pollingCount - number - maximum number of matches to poll for live data at the same time
  5. eventsRefreshInterval - number - interval in milliseconds to look for live events
  6. widgetTrackingName - string - tracking name for analytics purposes
  7. compareAgainstHighlights - boolean - determines whether you want to compare whether the filters are within the highlighted events (popular events) or not. Will use the first item in the filter that returns events.

Build Instructions

Please refer to the core-library

match-overview-widget's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.