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

Is there a way to get round header and info? #152

Open
lorenanderson-itrellis opened this issue Aug 22, 2018 · 2 comments
Open

Is there a way to get round header and info? #152

lorenanderson-itrellis opened this issue Aug 22, 2018 · 2 comments

Comments

@lorenanderson-itrellis
Copy link

At the top of each round, is there a way to insert a title and other info such as dates?

I am looking for something like:
"Round 1"
"Matches happen between Mon. and Wed."

Similar to this photo:
https://res.cloudinary.com/cmgverticals/image/upload/f_auto,q_80/v1491278076/ncaa_bracket_final_piwaax.jpg

@hansoncaleb
Copy link

Did anyone ever figure this out?

@RenautMestdagh
Copy link

RenautMestdagh commented May 21, 2022

I was able to do this

function infoWhereWhen() {
      const matches = document.getElementsByClassName("teamContainer");
      const tijdenknockout = !{JSON.stringify(tijdenknockout)};
      const veldnamen = !{JSON.stringify(veldnamen)};

      for (let i = 0; i < matches.length; i++) {

        const div = document.createElement("div");
        div.style.position = "relative"
        div.style.width = "0"
        div.style.height = "0"

        const label = document.createElement("label");
        label.style.position = "absolute"
        label.style.width = "250px"
        label.style.fontSize = "85%"
        label.style.left = "10px"
        label.style.top = "-20px"
        label.style.padding = "0"
        label.style.color = 'rgba(0,0,0,0.6)'
        label.innerHTML = veldnamen[i] + "&nbsp&nbsp|&nbsp&nbsp" + tijdenknockout[i];

        div.append(label)
        matches[i].append(div)
      }

}

I had to mess around for a bit before i was happy with the result tho... You can view the result here
Screenshot from 2022-05-21 20-56-41

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

3 participants