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

Remove extra lines when too less solves are done #3

Open
YTCuber opened this issue Mar 15, 2017 · 0 comments
Open

Remove extra lines when too less solves are done #3

YTCuber opened this issue Mar 15, 2017 · 0 comments

Comments

@YTCuber
Copy link

YTCuber commented Mar 15, 2017

If no average of 5/12 can be done because of too less solve, the <hr>s are still there and look bad. I would suggest do display only 1 <hr> at the bottom.

This is how your code looks in the browser with 0 solves:

<div id="screen6" style="display: block;">
    <!-- Some more unimportant code -->
      <hr>
      <h2 id="average">Average - NaN:NaN.NaN</h2>
      <hr>
      <h2 id="currentaverageof5"></h2>
      <hr>
      <h2 id="bestaverageof5"></h2>
      <hr>
      <h2 id="currentaverageof12"></h2>
      <hr>
      <h2 id="bestaverageof12"></h2>
    </div>

and these are the visible elements:

<div id="screen6" style="display: block;">
    <!-- ... -->
      <hr>
      <h2 id="average">Average - NaN:NaN.NaN</h2>
      <hr>
      <hr>
      <hr>
      <hr>
    </div>
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

1 participant