Fixed ability searching and made table header sticky for melding
parent
697ab3296d
commit
472a6f8c95
|
|
@ -77,7 +77,7 @@ function filter() {
|
|||
}
|
||||
} else if (searchType === "abilities") {
|
||||
// Abilities
|
||||
hasLine = false;
|
||||
var hasLine = false;
|
||||
for (let i = 0; i < 7; i++) {
|
||||
const id = i + 6;
|
||||
const ablName = tds[id].innerText.toLowerCase();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
table {
|
||||
th {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
||||
&.crystal {
|
||||
top: 3.3vh;
|
||||
}
|
||||
}
|
||||
|
||||
.charlist {
|
||||
display: inline-grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, minimum-scale=1.0" />
|
||||
<link rel="stylesheet" href="{{ crate::find_hash("/public/styles/common/base.css") }}"></link>
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
|
|
|
|||
|
|
@ -3,21 +3,19 @@
|
|||
{% block title %}BBS - Command Melding{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<link rel="stylesheet" href="{{ crate::find_hash("/public/styles/bbs/melding.css") }}"></link>
|
||||
<script
|
||||
type="module"
|
||||
src="{{ crate::find_hash("/public/scripts/bbs/melding.js") }}"
|
||||
></script>
|
||||
<link rel="stylesheet" href="{{ crate::find_hash("/public/styles/bbs/melding.css") }}">
|
||||
</link>
|
||||
<script type="module" src="{{ crate::find_hash("/public/scripts/bbs/melding.js") }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="filters">
|
||||
<div class="filters">
|
||||
{% include "components/bbs/search.html" %}
|
||||
<div class="row">{% include "components/bbs/type-filters.html" %}</div>
|
||||
<div class="row">{% include "components/bbs/char-filters.html" %}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowspan="2">Character</th>
|
||||
|
|
@ -30,7 +28,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
{% for crystal in crystals %}
|
||||
<th>{{ crystal }}</th>
|
||||
<th class="crystal">{{ crystal }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
@ -55,7 +53,7 @@
|
|||
<td class="{{ cmd.category }}">{{ cmd.name }}</td>
|
||||
<td>{{ recipe.ingredients.0 }}</td>
|
||||
<td>{{ recipe.ingredients.1 }}</td>
|
||||
<td>{{ recipe.type }}</td>
|
||||
<!-- <td>{{ recipe.type }}</td> -->
|
||||
<td>{{ recipe.chance }}%</td>
|
||||
{% for crystal in crystals %}
|
||||
{% let ability = recipe.get_ability(crystal) %}
|
||||
|
|
@ -71,5 +69,5 @@
|
|||
{% endfor %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue