mirror of
https://github.com/Xevion/trivia.git
synced 2026-01-31 02:26:15 -06:00
separate style.css, add jquery, increase font size, add ID table, remove error.html
This commit is contained in:
Vendored
+2
File diff suppressed because one or more lines are too long
@@ -0,0 +1,45 @@
|
|||||||
|
table {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
font-family: Calibri, serif;
|
||||||
|
font-size: large;
|
||||||
|
font-weight: bold;
|
||||||
|
/*padding: 5px;*/
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
|
background-color: #333;
|
||||||
|
color: #f6f6f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody tr:nth-child(even) {
|
||||||
|
background-color: #DDD;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
font-size: 300%;
|
||||||
|
padding-left: 1rem;
|
||||||
|
width: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td > div {
|
||||||
|
height: 10%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Error - {{ errorcode }}</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
+10
-70
@@ -3,79 +3,19 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Index</title>
|
<title>Index</title>
|
||||||
<style>
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||||
/*.fixed_headers {*/
|
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
|
||||||
/*width: 750px;*/
|
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
|
||||||
/*table-layout: fixed;*/
|
<script>window.jQuery || document.write('<script src="{{
|
||||||
/* border-collapse: collapse;*/
|
url_for('static', filename='jquery.js') }}">\x3C/script>')</script>
|
||||||
/*}*/
|
|
||||||
|
|
||||||
.fixed_headers th {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
.fixed_headers th,
|
|
||||||
.fixed_headers td {
|
|
||||||
font-family: Candara, serif;
|
|
||||||
font-size: large;
|
|
||||||
font-weight: bold;
|
|
||||||
/*padding: 5px;*/
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*.fixed_headers td:nth-child(1),*/
|
|
||||||
/*.fixed_headers th:nth-child(1) {*/
|
|
||||||
/* min-width: 200px;*/
|
|
||||||
/*}*/
|
|
||||||
|
|
||||||
/*.fixed_headers td:nth-child(2),*/
|
|
||||||
/*.fixed_headers th:nth-child(2) {*/
|
|
||||||
/* min-width: 200px;*/
|
|
||||||
/*}*/
|
|
||||||
|
|
||||||
/*.fixed_headers td:nth-child(3),*/
|
|
||||||
/*.fixed_headers th:nth-child(3) {*/
|
|
||||||
/* width: 350px;*/
|
|
||||||
/*}*/
|
|
||||||
|
|
||||||
.fixed_headers thead {
|
|
||||||
background-color: #333;
|
|
||||||
color: #FDFDFD;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*.fixed_headers thead tr {*/
|
|
||||||
/* display: block;*/
|
|
||||||
/* position: relative;*/
|
|
||||||
/*}*/
|
|
||||||
|
|
||||||
/*.fixed_headers tbody {*/
|
|
||||||
/* display: block;*/
|
|
||||||
/* overflow: auto;*/
|
|
||||||
/* width: 100%;*/
|
|
||||||
/* height: 300px;*/
|
|
||||||
/*}*/
|
|
||||||
|
|
||||||
.fixed_headers tbody tr:nth-child(even) {
|
|
||||||
background-color: #DDD;
|
|
||||||
}
|
|
||||||
|
|
||||||
th, td > div {
|
|
||||||
{#width: 100%;#}
|
|
||||||
height: 10%;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
th, td {
|
|
||||||
height: 20px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<table class="fixed_headers" style="height:100%;width:100%; position: absolute; top: 0; bottom: 0; left: 0; right: 0;">
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="height: 10%;">Rank</th>
|
<th>Rank</th>
|
||||||
|
<th>ID</th>
|
||||||
<th>Team Name</th>
|
<th>Team Name</th>
|
||||||
{% for i in range(scoreCount) %}
|
{% for i in range(scoreCount) %}
|
||||||
<th>{{ i + 1 }}</th>
|
<th>{{ i + 1 }}</th>
|
||||||
@@ -84,8 +24,9 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for team in teams %}
|
{% for team in teams %}
|
||||||
<tr id="{{ team.id }}">
|
<tr>
|
||||||
<td>{{ range(1, teams | length) | random }}</td>
|
<td>{{ range(1, teams | length) | random }}</td>
|
||||||
|
<td>{{ team.id }}</td>
|
||||||
{% if team.name | length > 0 %}
|
{% if team.name | length > 0 %}
|
||||||
<td>{{ team.name }}</td>
|
<td>{{ team.name }}</td>
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -98,6 +39,5 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user