Fix HTML
This commit is contained in:
parent
227c770b61
commit
1648f2f99e
@ -1,15 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
<link rel="stylesheet" href="https://matcha.mizu.sh/matcha.css" />
|
<link rel="stylesheet" href="https://matcha.mizu.sh/matcha.css" />
|
||||||
<script src="https://unpkg.com/htmx.org@2.0.0"></script>
|
<script src="https://unpkg.com/htmx.org@2.0.0"></script>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<header class="container">
|
||||||
async function getFunkos() {
|
<h1>Your Funko Collection</h1>
|
||||||
const response = await fetch("funkos/");
|
</header>
|
||||||
funkos = await response.json();
|
<main class=container>
|
||||||
console.log(funkos);
|
|
||||||
}
|
|
||||||
getFunkos();
|
|
||||||
</script>
|
|
||||||
<button hx-get="funkos/?format=html" hx-target="#funko-list">Update</button>
|
<button hx-get="funkos/?format=html" hx-target="#funko-list">Update</button>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -20,6 +19,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tbody id="funko-list">
|
<tbody id="funko-list">
|
||||||
</tbody>
|
</tbody>
|
||||||
</thead>
|
</thead>
|
||||||
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user