Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1 side only? #2

Open
alespanda opened this issue May 28, 2016 · 5 comments
Open

1 side only? #2

alespanda opened this issue May 28, 2016 · 5 comments

Comments

@alespanda
Copy link

How would i display from 1 side only? what in jquery should i change, if i set 8 teams, i'd like all 8 teams be on left side and advancing to right. Thank you and very nice brackets.

@lipp15
Copy link
Owner

lipp15 commented May 29, 2016

Hello, thanks for reaching out. It sounds like you're looking for a
vertical style bracket. When you invoke the bracket plugin, you can set the
'horizontal' parameter to 0, which will push all teams to the left. The
default is for this parameter to be 1, meaning the bracket will display
with teams on the left and right side, which is likely what you're seeing.

Take a look at this code example: http://jsfiddle.net/lipp15/8MjyD/

Hopefully that helps. Let me know if I've misunderstood your question.

Thanks,
Mike

On Sat, May 28, 2016 at 10:13 AM, alespanda [email protected]
wrote:

How would i display from 1 side only? what in jquery should i change, if i
set 8 teams, i'd like all 8 teams be on left side and advancing to right.
Thank you and very nice brackets.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2, or mute the thread
https://github.com/notifications/unsubscribe/AFE0DVO1A4OMv39xk0We6b37dJ2jxJOsks5qGFuMgaJpZM4IpGFT
.

  • Mike

@alespanda
Copy link
Author

alespanda commented May 29, 2016

thanks, but, if i wanted to instead of those static names, add a dropdown option menu to it, how would i append this in the above code you posted?

and how do i add teams which have advanced to next stage? something like bracket1.round2?

@lipp15
Copy link
Owner

lipp15 commented Jun 1, 2016

Apologies for the delay in responding. I currently don't have that option
within the plugin. It's simply meant to produce a picture of a bracket that
can be printed out or displayed in a webpage. That said, the code is
available so it shouldn't be overly difficult to extend the plugin to
produce a box instead of the text inside the <div class="team-name> divs. The tricky part would be how to input the parameters to the .bracket() function. You might consider extending the teamNames input field with an array of names or comma separated list of names for a given seed. For example, instead of teamNames: [ { name:'Michigan State', seed:'1' } ] you could define it as: teamNames: [ { name:'Michigan State, Illinois', seed:'1'} ] You would then need to parse this within the plugin code that writes to the divs to produce the boxes.

Thanks,
Mike

On Sun, May 29, 2016 at 4:38 AM, alespanda [email protected] wrote:

thanks, but, if i wanted to instead of those static names, add a dropdown
option menu to it, how would i append this in the above code you posted?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AFE0DTAC91-EagCHyoq1ShufsKVbzkcVks5qGV56gaJpZM4IpGFT
.

  • Mike

@alespanda
Copy link
Author

You didn't mention how to add teams (manually in code) who advanced in next stage.

@lipp15
Copy link
Owner

lipp15 commented Jun 7, 2016

Hello, yes, you're correct that I haven't mentioned this because the plugin
unfortunately doesn't do that. As I wrote earlier, it's only meant to
represent a static view of a bracket - it draws it for you and sets the
initial teams but that's it right now. In theory you could continue the
numbering system that I've explained in the notes but it would require more
development. Perhaps one day I'll add this option to the plugin but you're
welcome to extend the code yourself. Follow along with how the numbering
system works and see if you can continue it on to subsequent rounds. I'd be
happy to review code if you'd like.

On Thu, Jun 2, 2016 at 7:37 AM, alespanda [email protected] wrote:

You didn't mention how to add teams (manually in code) who advanced in
next stage.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AFE0DRXA2xwcMowmQd0sFeRD28Z7IWnKks5qHs5xgaJpZM4IpGFT
.

  • Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants