Skip to main content

Add results to another website

Add the Results embed to show an event's published schedule, standings, teams and game scores on a website you manage outside Curling IO. You continue to record scores in Curling IO.

If Curling IO hosts your club website, link visitors to the event's public Results page. You don't need this external-site snippet for that page.

Prepare the event​

Open the event's Info page, turn on Publish results, then select Save. Check the event's public Results page before adding the embed.

The embed uses the event's published data. For end-by-end live scores, use Live scoring. End scoring requires active Premium; placing an embed doesn't enable it.

Add the snippet​

  1. Replace yourclub in subdomain="yourclub" with the first part of your club's Curling IO address. Keep assets.curling.io unchanged.
  2. Replace 123 with the event's ID, the number in its administration-page URL. For example, /products/leagues/123 identifies event 123.
  3. Put the snippet in your website's HTML where you want the results.
  4. Preview the published page and test the tabs and a game link.

Your website editor must allow HTML and JavaScript. Load the Results script once per page.

<curling-io-results subdomain="yourclub"
styling="curling-io"
section="leagues"
event-id="123"
default-event-section="schedule"
></curling-io-results>
<script src="https://assets.curling.io/widgets/results.js" crossorigin="anonymous" defer></script>

Keep the element name curling-io-results exactly as shown. The other embeds use different element names.

Results embedded on another website, showing a saved first end and the event&#39;s navigation.

Embed a Fully private event​

If the event's Visibility is Fully private, its results load only with the key from the event's unique URL. Add the key to the snippet as the token attribute. Without it the embed can't load the results, even with the correct event-id. An embed that already points at an event you have since made Fully private stops loading until you add the key.

To find the key, open the event's overview and copy the unique URL shown below Preview. The key is the last part of the address: in /leagues/k3x9m2 it is k3x9m2.

<curling-io-results subdomain="yourclub"
styling="curling-io"
section="leagues"
event-id="123"
token="k3x9m2"
></curling-io-results>

Anyone who can view your page's source can read the key, so this embed shares the event's unique URL with your visitors. To keep the results public while hiding registration, set Visibility to Private registration instead.

Choose what opens​

AttributePurpose
event-id="123"Open that event. Without it, open the selected category's list instead.
section="leagues"Choose leagues. Use section="competitions" for bonspiels, or another product type's slug from its page address, such as section="camps" for /camps/....
default-event-section="schedule"Start on the schedule. The default is the event's details.
styling="curling-io"Use Curling IO's presentation inside the embed.
language="fr"Request French labels for a club with French enabled.
color-mode="dark"Request the dark presentation.
token="k3x9m2"Open a Fully private event with the key from its unique URL. See Embed a Fully private event.

Visitors can select Schedule, Standings, Teams and Reports. Depending on the event, they can also see Details, Registrations and Spares. Details appears unless it is turned off for the event. Registrations and Spares appear only when the event has the setting and data for them. An event may not show all of them.

Give Results its own page if your website uses the part of the address after # for its own navigation. Results links also use that part of the address. Copying the address after opening a game lets you share that detail; reopening it returns to the selected game.

Check the scores​

Select a game under Schedule and compare its most recent completed end and totals with Curling IO's Results editor. Test the page at the width where your visitors will use it.

If the expected results are missing, check Publish results, the event ID and your club address. Turning publication off hides public results; it doesn't delete the recorded scores.

A walkthrough video is deferred.