mirror of
https://github.com/sigmasternchen/mobmash.click
synced 2025-03-15 08:09:02 +00:00
feat: Add no-js fallback
This commit is contained in:
parent
2547b91a77
commit
27ac8195b3
2 changed files with 7 additions and 0 deletions
|
@ -93,6 +93,11 @@ h1 {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
.mob input.fallback {
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.mob img {
|
||||
object-fit: contain;
|
||||
width: 35vw;
|
||||
|
|
|
@ -10,5 +10,7 @@
|
|||
<input type="hidden" name="csrfToken" value="<?= $csrfToken ?>">
|
||||
<h2><?= $mob["name"]; ?></h2>
|
||||
<img alt="<?= $mob["name"]; ?>" src="/images/mobs/<?= $mob["image"] ?? "_placeholder.png"; ?>">
|
||||
<script>document.getElementById("form-<?= $side ?>").style.cursor = "pointer";</script>
|
||||
<noscript><input class="fallback" type="submit" value="<?= $mob["name"]; ?>"></noscript>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue