school schedules embed instructions

javascript method

Embed school schedules into your website by adding a few lines of Javascript to your website's HTML code.

NOTE: The Javascript method is preferred over the iFrame method, as it is less prone to sizing and responsive issues that exist with iFrames

Parameters

selector - (String: Required) - reference to the container object (the ID of a unique div) on the page that will contain the widget
school_id - (String: Required) - the unique Scorebird school id
gender - (String: Optional) - the gender to limit the schedules to
level - (String: Optional) - the level to limit the schedules to (e.g., varsity or freshman)
sport - (String: Optional) - the sport to limit the schedules to
<div id="scorebird_school_widget"></div>

<script type="text/javascript">
  window.addEventListener('load', function () {
    ScorebirdSchoolSchedules.init({selector: "scorebird_school_widget", school_id: "", sport: "", level: "", gender: ""});
  });
</script>

<script type="text/javascript" src="https://widget.scorebird.com/scorebird-school-schedules.min.js" async></script>

Upcoming Game View

Show the next game so fans know when to tune in or be at the field.

Game Final View

Show final scores when the game is over.

iframe method

Embed school schedules using an iFrame.

Parameters

You can add the below parameters to the iFrame source url as ordinary url parameters.

school_id - (String: Required) - the unique Scorebird school id
gender - (String: Optional) - the gender to limit the schedules to
level - (String: Optional) - the level to limit the schedules to (e.g., varsity or freshman)
sport - (String: Optional) - the sport to limit the schedules to
<iframe style="border: 0px;" frameborder="0" width="100%" height="1000" src="https://widget.scorebird.com/school-widget.html?gender=&level=&sport=&school_id="></iframe>

WANT TO LEARN MORE?

Send us a message below to learn more about how Scorebird can help your organization or school

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.