26 lines
629 B
HTML
26 lines
629 B
HTML
<head>
|
|
<link rel="stylesheet" href="https://matcha.mizu.sh/matcha.css" />
|
|
<script src="https://unpkg.com/htmx.org@2.0.0"></script>
|
|
<body>
|
|
<script>
|
|
async function getFunkos() {
|
|
const response = await fetch("funkos/");
|
|
funkos = await response.json();
|
|
console.log(funkos);
|
|
}
|
|
getFunkos();
|
|
</script>
|
|
<button hx-get="funkos/?format=html" hx-target="#funko-list">Update</button>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Status</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
<tbody id="funko-list">
|
|
</tbody>
|
|
</thead>
|
|
</body>
|
|
</head>
|