fix: Use standard html attributes

This commit is contained in:
overflowerror 2024-08-02 21:47:49 +02:00
parent c73201ffe2
commit 2547b91a77
2 changed files with 3 additions and 3 deletions

View file

@ -5,8 +5,8 @@
?>
<div class="mob" onclick="htmx.trigger(document.forms['<?= $side ?>'], 'submit', {})" id="form-<?= $side ?>">
<form action="?<?= $side ?>" method="POST" name="<?= $side ?>"
hx-post="?<?= $side ?>&ajax" hx-target=".selection" hx-swap="outerHTML"
hx-ext="img-preload" data-preload-spinner=".middle">
data-hx-post="?<?= $side ?>&ajax" data-hx-target=".selection" data-hx-swap="outerHTML"
data-hx-ext="img-preload" data-preload-spinner=".middle">
<input type="hidden" name="csrfToken" value="<?= $csrfToken ?>">
<h2><?= $mob["name"]; ?></h2>
<img alt="<?= $mob["name"]; ?>" src="/images/mobs/<?= $mob["image"] ?? "_placeholder.png"; ?>">

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title><?= $title ?? ""; ?></title>
<link rel="stylesheet" type="text/css" href="/styles/main.css" />