summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-06 00:18:28 +0200
committeremkael <emkael@tlen.pl>2017-07-06 00:18:28 +0200
commit927c8dfa1142fb1edc38eaf50d932be8cecccb02 (patch)
tree91381084d6966931188b8bde2c75df87c53d692a /static
parent3bef06bedb9b2dad691356863b7c227ad8ecbd67 (diff)
Tools for calculating group ratings
Diffstat (limited to 'static')
-rw-r--r--static/group-form-loading.html16
-rw-r--r--static/group-form.html63
-rw-r--r--static/group-intro.html22
3 files changed, 101 insertions, 0 deletions
diff --git a/static/group-form-loading.html b/static/group-form-loading.html
new file mode 100644
index 0000000..837985d
--- /dev/null
+++ b/static/group-form-loading.html
@@ -0,0 +1,16 @@
+<div class="text-center">
+ <i id="form-loading" class="glyphicon glyphicon-refresh"></i>
+</div>
+<style type="text/css">
+ @keyframes rotating {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+ }
+ #form-loading {
+ animation: rotating 1s linear infinite;
+ }
+</style>
diff --git a/static/group-form.html b/static/group-form.html
new file mode 100644
index 0000000..1924cb1
--- /dev/null
+++ b/static/group-form.html
@@ -0,0 +1,63 @@
+<div class="col-sm-4">
+ <p>
+ Wpisz poniżej PZBS ID zawodników w parze/teamie.
+ </p>
+ <p>
+ Dla niezrzeszonych, podaj 0.
+ </p>
+ <form>
+ <div class="form-group">
+ <label for="group-pids">PZBS ID:</label>
+ <textarea id="group-pids" class="form-control" rows="6"></textarea>
+ </div>
+ <button id="group-submit" type="button" class="btn btn-default">Przelicz</button>
+ </form>
+ <br />
+ <table id="group-results" class="table history">
+ <tr class="mean">
+ <th>ŚM</th>
+ <td colspan="2" class="mean-place text-right"></td>
+ </tr>
+ <tr class="mean">
+ <th>ŚA</th>
+ <td colspan="2" class="mean-arithmetic text-right"></td>
+ </tr>
+ <tr class="mean">
+ <th>ŚG</th>
+ <td colspan="2" class="mean-geometric text-right"></td>
+ </tr>
+ <tr class="mean">
+ <th>ŚH</th>
+ <td colspan="2" class="mean-harmonic text-right"></td>
+ </tr>
+ </table>
+</div>
+<div class="col-sm-8">
+ <p>
+ Możesz również wczytać plik pełnych wyników turnieju z JFR Pary (plik W-*.html), żeby wyświetlić statystyki wszystkich par grających w turnieju.
+ </p>
+ <form>
+ <input type="file" id="tournament-file" />
+ </form>
+ <br />
+ <table id="tournament-table" class="table history">
+ <thead>
+ <tr>
+ <th data-sort-method="number">M-ce</th>
+ <th data-sort-method="none">Para</th>
+ <th data-sort-method="dotsep">ŚM</th>
+ <th data-sort-method="dotsep">ŚA</th>
+ <th data-sort-method="dotsep">ŚG</th>
+ <th data-sort-method="dotsep">ŚH</th>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+</div>
+<script src="res/jquery-2.2.4.min.js"></script>
+<link rel="stylesheet" href="res/fileinput.min.css" />
+<script src="res/fileinput.min.js"></script>
+<link rel="stylesheet" href="res/tablesort.css" />
+<script src="res/tablesort.min.js"></script>
+<script src="res/group-ranking.js"></script>
diff --git a/static/group-intro.html b/static/group-intro.html
new file mode 100644
index 0000000..61e69a0
--- /dev/null
+++ b/static/group-intro.html
@@ -0,0 +1,22 @@
+<p>
+ Poniższe formularze służą do szacowania łącznego rankingu więcej niż jednego zawodnika (np. pary lub teamu).
+</p>
+<p>
+ W obliczeniach wykorzystywane jest najnowsze notowanie rankingu.
+</p>
+<p>
+ Zawodnicy spoza pierwszego 1000 miejsc w rankingu (w tym: niezrzeszeni) otrzymują na potrzeby obliczeń:
+ <ul>
+ <li>miejsce nr 1500 w rankingu</li>
+ <li>liczbę punktów równą dwukrotności <abbr title="Współczynnik Klasyfikacyjny">WK</abbr>, ograniczoną z góry liczbą punktów zawodnika na miejscu 1000, a z dołu wartością 0.1</li>
+ </ul>
+</p>
+<p>
+ Poniżej zobaczysz porównanie różnych metod agregacji rankingu:
+ <ul>
+ <li><b>Średnia miejsc (ŚM)</b> - arytmetyczna średnia miejsc w rankingu (im mniej, tym lepiej)</li>
+ <li><b>Średnia arytmetyczna (ŚA)</b> - arytmetyczna średnia punktów rankingowych (im więcej, tym lepiej)</li>
+ <li><b>Średnia geometryczna (ŚG)</b> - geometryczna średnia punktów rankingowych (im więcej, tym lepiej)</li>
+ <li><b>Średnia harmoniczna (ŚH)</b> - harmoniczna średnia punktów rankingowych (im więcej, tym lepiej)</li>
+ </ul>
+</p>