fsd
This commit is contained in:
parent
ae016978ed
commit
c87e1a7b51
4 changed files with 9 additions and 13 deletions
|
@ -7,16 +7,12 @@ function sort_table(n) {
|
||||||
rows = table.rows;
|
rows = table.rows;
|
||||||
for (i = 1; i < (rows.length - 1); i++) {
|
for (i = 1; i < (rows.length - 1); i++) {
|
||||||
shouldSwitch = false;
|
shouldSwitch = false;
|
||||||
x = rows[i].getElementsByTagName("TD")[n];
|
let x = rows[i].getElementsByTagName("TD")[n];
|
||||||
y = rows[i + 1].getElementsByTagName("TD")[n];
|
let y = rows[i + 1].getElementsByTagName("TD")[n];
|
||||||
const x_child = x.getElementsByTagName('a')
|
const x_child = x.getElementsByTagName('a')[0]
|
||||||
if (x_child) {
|
if (typeof x_child != 'undefined') x = x_child
|
||||||
x = x_child[0]
|
const y_child = y.getElementsByTagName('a')[0]
|
||||||
}
|
if (typeof y_child != 'undefined') y = y_child
|
||||||
const y_child = y.getElementsByTagName('a')
|
|
||||||
if (y_child) {
|
|
||||||
y = y_child[0]
|
|
||||||
}
|
|
||||||
if (parseInt(x.innerHTML) < parseInt(y.innerHTML)) {
|
if (parseInt(x.innerHTML) < parseInt(y.innerHTML)) {
|
||||||
shouldSwitch = true;
|
shouldSwitch = true;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<script src="/assets/js/sort_table.js?v=241"></script>
|
<script src="/assets/js/sort_table.js?v=242"></script>
|
||||||
|
|
||||||
<pre class="d-none d-md-inline-block"></pre>
|
<pre class="d-none d-md-inline-block"></pre>
|
||||||
<h5 style="font-weight:bold;">Admins</h5>
|
<h5 style="font-weight:bold;">Admins</h5>
|
||||||
|
|
|
@ -254,7 +254,7 @@
|
||||||
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
|
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
|
||||||
<script src="/assets/js/pusher.js?v=242"></script>
|
<script src="/assets/js/pusher.js?v=242"></script>
|
||||||
<script>
|
<script>
|
||||||
if (typeof Android !== 'undefined') {
|
if (typeof Android != 'undefined') {
|
||||||
Android.Subscribe('{{request.host}}{{v.id}}');
|
Android.Subscribe('{{request.host}}{{v.id}}');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% extends "default.html" %}
|
{% extends "default.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<script src="/assets/js/sort_table.js?v=241"></script>
|
<script src="/assets/js/sort_table.js?v=242"></script>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue