Keeping the footer down and applying color to both ingredient fields if both match

master v1.0.2
Wynd 2024-07-01 21:16:46 +03:00
parent 2c60b23287
commit 14fca5a001
4 changed files with 40 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "khguide" name = "khguide"
version = "1.0.1" version = "1.0.2"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View File

@ -4,12 +4,25 @@
<title>Commands</title> <title>Commands</title>
<style> <style>
body { body {
position: relative;
min-height: 98vh;
background-color: #333; background-color: #333;
color: #fff; color: #fff;
} }
footer { footer {
text-align: center; text-align: center;
position: absolute;
bottom: 0;
width: 100%;
* {
margin-bottom: 0;
}
}
#content {
padding-bottom: 2.5rem;
} }
table { table {
@ -55,7 +68,7 @@
</style><script> </style><script>
let charFilter = ""; let charFilter = "";
let typeFilter = ""; let typeFilter = "";
let searchType = "result"; let searchType = "commands";
document.addEventListener("DOMContentLoaded", (event) => { document.addEventListener("DOMContentLoaded", (event) => {
const searchFilter = document.getElementById("filter"); const searchFilter = document.getElementById("filter");
@ -138,6 +151,11 @@
} }
} else { } else {
applyStyle(tds[2]); applyStyle(tds[2]);
if (
tds[3].innerText.toLowerCase().includes(search)
) {
applyStyle(tds[3]);
}
} }
} else if (searchType === "abilities") { } else if (searchType === "abilities") {
// Abilities // Abilities
@ -4142,7 +4160,7 @@
<td>5%</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr></tbody> <td>5%</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr></tbody>
</table></div> </table></div>
<footer> <footer>
<p>v1.0.1</p> <p>v1.0.2</p>
</footer> </footer>
</body> </body>
</html> </html>

View File

@ -4,12 +4,25 @@
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
<style> <style>
body { body {
position: relative;
min-height: 98vh;
background-color: #333; background-color: #333;
color: #fff; color: #fff;
} }
footer { footer {
text-align: center; text-align: center;
position: absolute;
bottom: 0;
width: 100%;
* {
margin-bottom: 0;
}
}
#content {
padding-bottom: 2.5rem;
} }
table { table {

View File

@ -6,7 +6,7 @@
<script> <script>
let charFilter = ""; let charFilter = "";
let typeFilter = ""; let typeFilter = "";
let searchType = "result"; let searchType = "commands";
document.addEventListener("DOMContentLoaded", (event) => { document.addEventListener("DOMContentLoaded", (event) => {
const searchFilter = document.getElementById("filter"); const searchFilter = document.getElementById("filter");
@ -89,6 +89,11 @@
} }
} else { } else {
applyStyle(tds[2]); applyStyle(tds[2]);
if (
tds[3].innerText.toLowerCase().includes(search)
) {
applyStyle(tds[3]);
}
} }
} else if (searchType === "abilities") { } else if (searchType === "abilities") {
// Abilities // Abilities