module Tournabox_lib: sig
.. end
The top-level tournabox library. Clients can use these types and
values to find and run tournaboxes on web pages.
type
container = Dom_html.element Js.t
An HTML element that will contain a visible tournabox.
type
tourney_shell
A parsed container. The argument to run/play a tournabox.
val get_all_containers : unit -> container list
Get a list of all the containers on the page.
val get_tourney_shell : container -> tourney_shell option * string
Given a container, return a tourney shell or None and an error
message.
val play : tourney_shell -> unit
Play and display a tourney_shell.
val get_all_tourney_shells : unit -> (tourney_shell option * string) list
Get all tourney shell options on a page, with error messages.