mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
make tracker table sortable, give it a fixedHeader and prepare it for ajax refresh
This commit is contained in:
12
WebHost/static/static.css
Normal file
12
WebHost/static/static.css
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
table.dataTable.table-sm > thead > tr > th :not(.sorting_disabled) {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dataTable > thead > tr > th[class*="sort"]:before,
|
||||||
|
.dataTable > thead > tr > th[class*="sort"]:after {
|
||||||
|
content: "" !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.dataTable.table-sm > thead > tr > th {
|
||||||
|
padding: 1px !important;
|
||||||
|
}
|
||||||
@@ -2,6 +2,22 @@
|
|||||||
{% block head %}
|
{% block head %}
|
||||||
<meta http-equiv="refresh" content="60">
|
<meta http-equiv="refresh" content="60">
|
||||||
<title>Multiworld Tracker for Room {{ room.id }}</title>
|
<title>Multiworld Tracker for Room {{ room.id }}</title>
|
||||||
|
<link rel="stylesheet" type="text/css"
|
||||||
|
href="https://cdn.datatables.net/v/bs4/jq-3.3.1/dt-1.10.21/fh-3.1.7/datatables.min.css"/>
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="https://cdn.datatables.net/v/bs4/jq-3.3.1/dt-1.10.21/fh-3.1.7/datatables.min.js"></script>
|
||||||
|
<script>
|
||||||
|
$(document).ready(function () {
|
||||||
|
$(".table").DataTable({
|
||||||
|
"paging": false,
|
||||||
|
"ordering": true,
|
||||||
|
"info": false,
|
||||||
|
"fixedHeader": true,
|
||||||
|
"dom": "t"
|
||||||
|
});
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="static.css") }}"/>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% for team, players in inventory.items() %}
|
{% for team, players in inventory.items() %}
|
||||||
|
|||||||
Reference in New Issue
Block a user