jQuery Bracket library for organizing single and double elimination tournaments
jQuery bracket is a jQuery plugin that lets users create and display single and double elimination brackets for tournament play.
Documentation and examples can be found from the project site at http://www.aropupu.fi/bracket/
Use bower
(npm install -g bower
) to install jQuery Bracket as a
dependency. If you want to take a manual copy of the code, pre-compiled
version can be found under dist/
.
bower install jquery-bracket
You can also use npm
:
npm install jquery-bracket
npm install -g typescript
to install TypeScript globallynpm start
to get dependencies and start "watch" for changes under src/
npm run check
to test style conformitynpm run format
to auto-format (overwrite) filesMinified files are compiled to dist/
directory.
TBD
propagation and final connector bug.centerConnectors: boolean
and disable hover highlight with disableHighlight: boolean
. Bug fixes.render
decorator to allow
custom visualization for TBD, BYE, no-score, and default win scenarios.teamWidth: number
,
scoreWidth: number
, matchMargin: number
, roundMargin: number
.disableTeamEdit: boolean
prevents modifying the team when in edit
mode.disableToolbar: boolean
prevents modifying the bracket size and
format in edit mode.null
) creates a BYE branch. Any team scheduled
against BYE will get a default win with no score, and advance
automatically to the next match.skipGrandFinalComeback
.jquery-bracket
to Bower. You can now use
bower install jquery-bracket
to install the library.skipSecondaryFinal
boolean to finish double elimination
tournament after first match. Skips the second match normally created if
LB winner wins the first match. Display '--' score for non-played matches.
Project ported to TypeScript with additional refactorings (not visible for
library users).onMatchHover
and onMatchClick
callbacks created in order
to allow more interaction with the bracket.