Display Locker Room Assignments

Modified on Mon, 20 Dec 2021 at 04:48 PM

Our software contains a locker room module which you can use to display locker room assignments to your customers. The following call will display all current locker room assignments:

myssApp.View.Schedules.LockerRooms();


The following is an explanation of each parameter and their possible values:

  • target: (default: '') - Use when defining your own div to place the widget in. The default will create its own div with an id of 'myss_lockerrooms' and write it in-line in the html page where the code is called.
  • areaid: (default: 0) - Which area(s) that you are displaying locker room assignments for. If using one area, simply enter the area ID of that specific event area. If displaying multiple specific event areas, format as an array within bracket. For example, if you are displaying multiple area IDs, it might be formatted as areaid: [102,103,107],
  • refresh_minutes: (default: 15) - How often in minutes to reload the data from the server (to reflect changes, etc.). You can always go to the widget page and hit refresh if an update is needed sooner.
  • games_per_page: (default: 10) - How many rows of games to display in the widget at a time. If there is extra content above or below the widget or 10 games are not visible adjust to a lower number. All games will be cycled through continuously.
  • page_cycle_seconds: (default: 10) - How often in seconds to display the next page of games. If a given day has more than 10 games (or the games_per_page setting above) the display will split up the games over a few pages to accomodate.
  • gamedate: (default: today) - This will set the date of games displayed. Must be a valid javascript date object or string. i.e., '9/30/2016 8:55 AM'
  • hours_after_end_visible: (default: 1) - Sets when games will fall off the board in hours. The default is for games to be removed from the display 1 hour after the game's end time.
  • title_template: (default: 'Locker Room Assignments for {date}') - Sets the title inside the widget. The '{date}' tag will be replaced with the current gamedate setting.
  • style: (default: 'default') - The widget will use the stylesheet listed below if left as 'default'. If you want to use your own stylesheet set this parameter to false and include your own stylesheet using the default stylesheet as a guide for available classes and structure.

Example HTML Code:

<div id='my_div'></div>
  <script type="text/javascript"> myssApp.View.Schedules.LockerRooms({target: '#my_div', refresh_minutes:30, page_cycle_seconds: 15, games_per_page: 5}); </script>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article