mirror of
https://github.com/FAUSheppy/open-web-leaderboard.git
synced 2025-12-09 16:38:32 +01:00
implement balance tool basic func done
This commit is contained in:
17
templates/balance_response_partial.html
Normal file
17
templates/balance_response_partial.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% for x in range(5) %}
|
||||
<div class="row">
|
||||
{% set leftP = d["left"][positions[x]] %}
|
||||
{% set rightP = d["right"][positions[x]] %}
|
||||
<div class="col-sm">
|
||||
{{ positions[x] }}
|
||||
</div>
|
||||
<div class="col-sm"
|
||||
{% if requests[leftP][x] | int >= 4 %}style="background: red;"{% endif %}>
|
||||
{{ leftP }}
|
||||
</div>
|
||||
<div class="col-sm"
|
||||
{% if requests[rightP][x] | int >= 4 %}style="background: red;"{% endif %}>
|
||||
{{ rightP }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
<button type="button" class="mb-3 btn btn-secondary" onclick="balance()">Go</button>
|
||||
|
||||
<div id="response-container" class="row mt-3 mb-3">
|
||||
<div id="response-container" class="mt-3 mb-3">
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
<li class="nav-item">
|
||||
<a id="button-forward" class="nav-link" href="/?page={{ nextPageNumber }}">Forward</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a id="button-forward" class="nav-link" href="/balance-tool">Balance Tool</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="navbar-nav">
|
||||
<!--
|
||||
@@ -33,7 +36,7 @@
|
||||
placeholder="search player...">
|
||||
</li>
|
||||
{{ findPlayer }}
|
||||
<!--- <li class="nav-item right">
|
||||
<!-- <li class="nav-item right">
|
||||
<input id="gotoRank" type="number" aria-label="goto rank"
|
||||
placeholder="goto rank...">
|
||||
</li> -->
|
||||
|
||||
Reference in New Issue
Block a user