WebHost: List Rooms in a sortable table

This commit is contained in:
Fabian Dill
2020-07-21 23:15:19 +02:00
parent b7d45ae663
commit 78c85cce14
8 changed files with 52 additions and 17 deletions

View File

@@ -1,11 +1,8 @@
{% extends 'layout.html' %}
{% extends 'tablepage.html' %}
{% block head %}
{{ super() }}
<title>Multiworld Tracker for Room {{ room.id }}</title>
<link rel="stylesheet" type="text/css" href="{{ static_autoversion("static.css") }}"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4-4.1.1/jq-3.3.1/dt-1.10.21/datatables.min.css"/>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4-4.1.1/jq-3.3.1/dt-1.10.21/datatables.min.js"></script>
<script src="{{ static_autoversion("jquery.scrollsync.js") }}"></script>
<link rel="stylesheet" type="text/css" href="{{ static_autoversion("tracker.css") }}"/>
<script>
window.onload = () => {
let tables = $(".table").DataTable({