feat: Add links to Minecraft Wiki on results page

This commit is contained in:
overflowerror 2024-08-04 21:16:54 +02:00
parent 07c2c9018e
commit b44aba30ce
2 changed files with 14 additions and 3 deletions

View file

@ -132,8 +132,6 @@ h2 {
width: 0;
}
.choice {
position: relative;
}
@ -273,6 +271,17 @@ h2 {
background-color: white;
}
.results-list td a, .results-list td a:visited {
text-decoration: none;
color: black;
transition: color 0.2s;
}
.results-list td a:hover {
color: grey;
text-decoration: underline;
}
#disclaimer p {
font-size: 13px;
text-align: center;

View file

@ -13,7 +13,9 @@
<img alt="<?= $mob["name"] ?>" src="/images/mobs/<?= $mob["image"] ?>" />
</td>
<td>
<?= $mob["name"] ?>
<a target="_blank" href="https://minecraft.wiki/w/<?= str_replace(" ", "_", $mob["name"]) ?>">
<?= $mob["name"] ?>
</a>
</td>
<td>
<?= number_format($mob["rating"]) ?>