League Scoreboard

Embeddable league tables

Drop a competition standings widget into any page with an iframe. Pick a competition below, then point the iframe at /embed/[code].

Build your embed

Pick a competition and the tabs you want. The URL and the snippet update as you go, and the preview is the real embed — copy either one straight into your page.

Tabs to show

Untick what you don't need. The arrows set the order they appear in.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

For narrow sidebars.

Standings only. Hidden until a club has a result.

Top scorers, assists and cards. 1 to 25.

Leave empty for the default: 300 on standings, 600 elsewhere. Minimum 15.

Where this app runs. Change it to build a URL for another environment.

Embed URL

https://711-league-table.powergaming.be/embed/DED

Paste this into your page

<iframe
  id="league-embed"
  src="https://711-league-table.powergaming.be/embed/DED"
  title="Eredivisie league table"
  style="width: 100%; height: 300px; border: 0"
></iframe>
<script>
  window.addEventListener("message", (e) => {
    if (e.origin !== "https://711-league-table.powergaming.be") return;
    if (e.data?.type !== "eredivisie-embed:height") return;
    document.getElementById("league-embed").style.height =
      e.data.height + "px";
  });
</script>

Preview

The live embed, served from this app.

Competitions

Each competition has a short code. Use that code in the embed URL path.

How the URL works

The iframe target is always /embed/[code], where [code] is the competition code from the list above. Swap the code to change which table loads.

  • /embed/DED— Eredivisie
  • Add another competition in lib/competitions.ts, then use its code the same way: /embed/PL, /embed/BL1, and so on.

Query parameters

The builder above writes these for you. Set by hand, optional flags go after the path, for example /embed/DED?tabs=standings,scorers&lang=en.

ParamDefaultNotes
langnlnl, en or fr — column abbreviations, tab labels and zone labels
compact0Set to 1 for tighter padding (narrow sidebars)
form1Last-five results dots on the standings tab, newest on the right. Hidden until a club has played
tabfirst of tabsstandings, scorers, assists, cards, discipline or lineups — the tab the embed opens on. Cards ranks the most-booked players, discipline the most-booked clubs, lineups lists fixtures you can open for both starting elevens
limit10Scorers, assists and cards tabs — rows to show, clamped to 1–25. Ignored on standings and discipline, which always list every club, and on lineups, which is a fixture list rather than a ranking
tabsall sixA comma list picks which tabs show and their order, e.g. standings,scorers. The first one listed is the one it opens on. Name a single tab, or set 0, to hide the strip entirely
refreshtab TTLSeconds between client refreshes; floor of 15. Defaults to 300 on standings and lineups, 600 on scorers, assists, cards and discipline
matchnoneLineups tab only — which fixture is open. Set by clicking a fixture rather than by hand, so the builder leaves it out; an id from another competition or season falls back to the fixture list

Embed snippet

The shape of the markup, for reference — the builder above fills it in for you. Replace your-host with the real origin, and swap DED for another competition code when needed. The script resizes the iframe from the embed's height messages.

<iframe
  id="league-embed"
  src="https://your-host/embed/DED"
  title="Eredivisie league table"
  style="width: 100%; height: 300px; border: 0"
></iframe>
<script>
  window.addEventListener("message", (e) => {
    if (e.origin !== "https://your-host") return;
    if (e.data?.type !== "eredivisie-embed:height") return;
    document.getElementById("league-embed").style.height =
      e.data.height + "px";
  });
</script>