Team Table

Clear Match 1Match 2Match 3Match 4Match 5Match 6 Match 7Match 8Match 9Match 10Match 11
Team 1 22010212113
Team 2 10342304042
Team 3 01012002123
Team 4 31143033121
Team 5 12301201101
Team 6 00102300111
Team 7 10211121203
Team 8 21100111011
Team 9 01211101210
Team 10 01241011110
Team 11 11010011200
Team 12 12101122102

Selecting a teams score highlights the opponents score as well, clicking on either one of the highlighted scores unhighlights them both.

You can have the previously highlighted scores unhighlight when another score is selected by setting the value of clearPrevious to 1
Setting clearPrevious to zero keeps any previously selected scores highlighted until they are clicked again.
All highlighted scores can be cleared by including onclick="clearAll()" in a link or button

There are 3 colour highlight options

  1. Team Colours - assign a colour to each team
  2. Match Colours - assign a colour to each match
  3. Home and Away colours

When creating the table all the cells in the first row and the first cell in each consecutive row must be a table header TH

Each match array consists of pairs of teams and are referenced by numbers
In the following example team 1 plays team 11, team 2 plays team 8 etc.

match1=[[1,11],[2,8],[3,5],[4,10],[6,12],[7,9]]

For the home and away colours the 1st number in the pair would be the home team (1,2,3,4,6,7) and the 2nd number in the pair would be the away team (11,8,5,10,12,9)