-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstat-players-by-rank.html
148 lines (139 loc) · 9.52 KB
/
stat-players-by-rank.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Действующие игроки по рангам</title>
<link rel="stylesheet" type="text/css" href="./css/stats.css">
<link rel="shortcut icon" href="./img/favicon/favicon.ico"/>
</head>
<body>
<header>
<table role="presentation">
<tr>
<td class="header-left">
<a href="./index.html">На главную</a>
| <a href="https://github.com/dmitry-weirdo/kgparser/">Kgparser on GitHub</a>
| <a href="https://klavogonki.ru/forum/software/59/">Тема на форуме</a>
| By <a href="https://klavogonki.ru/u/#/242585/">nosferatum</a>
<div class="header-vertical-space"></div>
<a href="./stat-top-by-total-races.html">Топ по общему пробегу</a>
| <a href="./stat-top-by-best-speed-page-1.html">Топ по рекорду в «Обычном»</a>
| <a href="./stat-top-by-best-speed.html">Топ-500 в «Обычном»</a>
| <a href="./stat-top-by-rating-level.html">Топ по уровню</a>
| <a href="./stat-top-by-friends-count.html">Топ по числу друзей</a>
| <a href="./stat-top-by-achievements-count.html">Топ по числу достижений</a>
<div class="header-vertical-space"></div>
<a href="./stat-top-by-vocabularies-count.html">Топ по числу используемых словарей</a>
| <a href="./stat-top-by-cars-count.html">Топ по числу машин в гараже</a>
| <a href="./stat-players-by-rank.html">Игроки по рангам</a>
<div class="header-vertical-space"></div>
<a href="././voc-normal-top-by-best-speed-page-1.html" class="normal">Обычный</a>
| <a href="././voc-abra-top-by-best-speed-page-1.html" class="abra">Абракадабра</a>
| <a href="././voc-referats-top-by-best-speed-page-1.html" class="referats">Яндекс.Рефераты</a>
| <a href="././voc-noerror-top-by-best-speed-page-1.html" class="noerror">Безошибочный</a>
| <a href="././voc-marathon-top-by-best-speed-page-1.html" class="marathon">Марафон</a>
| <a href="././voc-chars-top-by-best-speed-page-1.html" class="chars">Буквы</a>
| <a href="././voc-digits-top-by-best-speed-page-1.html" class="digits">Цифры</a>
| <a href="././voc-sprint-top-by-best-speed-page-1.html" class="sprint">Спринт</a>
<div class="header-vertical-space"></div>
<a href="././voc-5539-top-by-best-speed-page-1.html">Обычный in English</a>
| <a href="././voc-6018-top-by-best-speed-page-1.html">Мини-марафон, 800 знаков</a>
| <a href="././voc-1789-top-by-best-speed-page-1.html">Короткие тексты</a>
| <a href="././voc-192-top-by-best-speed-page-1.html">Частотный словарь</a>
| <a href="././voc-25856-top-by-best-speed-page-1.html">Соточка</a>
| <a href="././voc-62238-top-by-best-speed-page-1.html">Цифросоточка</a>
| <a href="././voc-226-top-by-best-speed-page-1.html">Тренируем указательные</a>
| <a href="././voc-8223-top-by-best-speed-page-1.html">Безымянные</a>
| <a href="././voc-3714-top-by-best-speed-page-1.html">Мизинцы+</a>
<div class="header-vertical-space"></div>
<a href="./2020-12-09/stats.html">Статистика от 09.12.2020</a>
</td>
<td class="header-right" style="width: 300px;">
<form method="POST" action="https://yoomoney.ru/quickpay/confirm.xml" style="padding: 5px 0 0 0; width: 350px;">
<img src="./img/iomoney_logo_white.png" width="100" height="22" alt="ЮMoney"/>
<div class="header-vertical-space"></div>
<input type="hidden" name="receiver" value="4100116361083369">
<input type="hidden" name="formcomment" value="Добровольный донат за Клавостатистику (1)">
<input type="hidden" name="short-dest" value="Добровольный донат за Клавостатистику (2)">
<input type="hidden" name="label" value="$order_id">
<input type="hidden" name="quickpay-form" value="donate">
<input type="hidden" name="targets" value="Донат хорошим людям за Клавостат!">
<input type="text" name="sum" value="200" data-type="number" required pattern="[0-9]+"> руб.
<div class="header-vertical-space"></div>
<input type="text" name="comment" style="width: 220px;" value="Донат за Клавостат :)" maxlength="200">
<input type="hidden" name="need-fio" value="false">
<input type="hidden" name="need-email" value="false">
<input type="hidden" name="need-phone" value="false">
<input type="hidden" name="need-address" value="false">
<div class="header-vertical-space"></div>
<label><input type="radio" name="paymentType" value="PC">ЮMoney</label>
<label><input type="radio" name="paymentType" value="AC" checked>Картой</label>
<input type="submit" value="Перевести">
</form>
</td>
<td class="header-right" style="width: 100px;">
<form action="https://www.paypal.com/donate" method="post" target="_top">
<input type="hidden" name="hosted_button_id" value="WZ2BM3QJYGQTW"/>
<input type="image" src="./img/paypal-logo-small.webp" border="0"
name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button"/>
<img alt="" border="0" src="https://www.paypal.com/en_DE/i/scr/pixel.gif" width="1" height="1"/>
</form>
<div class="header-vertical-space"></div>
<div class="header-vertical-space"></div>
Или на карту Тинькофф — 5536 9139 2010 2668
<td>
</tr>
</table>
</header>
<main>
<div class="section">
<h2>Действующие игроки по рангам</h2>
Учтены существующие незаблокированные игроки с минимум 1 текстом пробега (всего игроков: 395958)
<br/>
Mаксимальный пробег: 333098
</div>
<div>
Выбрать игроков с общим пробегом
<label for="min-totalRacesCount-input">от</label>
<input id="min-totalRacesCount-input" autofocus value="1"/>
<label for="max-totalRacesCount-input">до</label>
<input id="max-totalRacesCount-input" value="333098"/>
<button id="search-button" class="search-button">Выбрать</button>
</div>
<div class="section" id="section-players_by_rank">
<div id="playersByRank-single-chart-wrapper" class="flexWrap">
<canvas id="playersByRank-single-barChart-canvas" class="chart-left"></canvas>
<canvas id="playersByRank-single-doughnutChart-canvas" class="chart-right"></canvas>
<div id="playersByRank-single-table-container"></div>
</div>
</div>
</main>
<!-- see https://www.chartjs.org/docs/latest/getting-started/installation.html -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.bundle.min.js" integrity="sha512-SuxO9djzjML6b9w9/I07IWnLnQhgyYVSpHZx0JV97kGBfTIsUYlWflyuW4ypnvhBrslz1yJ3R+S14fdCWmSmSA==" crossorigin="anonymous"></script>
<script src="./js/players-by-rank-chart.js"></script>
<script src="./js/players-by-rank-data.js"></script>
<script>
const MIN_TOTAL_RACES_COUNT = 1;
const MAX_TOTAL_RACES_COUNT = 333098;
let singleChart;
window.addEventListener('load', function() {
const countsByRank = PlayerByRankFilter.groupByRank(STATS_DATA.rankToTotalRacesCount);
const chartData = PlayerByRankFilter.convertToChartData(countsByRank);
singleChart = new PlayersByRankChart({
data: chartData, // by default, show players with at least 1 race
label: PlayerByRankFilter.getChartLabel(MIN_TOTAL_RACES_COUNT, MIN_TOTAL_RACES_COUNT, MAX_TOTAL_RACES_COUNT)
});
singleChart.append('playersByRank-single-barChart-canvas', 'playersByRank-single-doughnutChart-canvas', 'playersByRank-single-table-container');
const filter = new PlayerByRankFilter({
minRacesInputId: 'min-totalRacesCount-input',
maxRacesInputId: 'max-totalRacesCount-input',
searchButtonId: 'search-button',
minTotalRacesCount: MIN_TOTAL_RACES_COUNT,
chart: singleChart,
data: STATS_DATA.rankToTotalRacesCount
});
filter.bindSearch();
});
</script>
</body>
</html>