2024-07-02 14:27:27 +00:00
|
|
|
<head>
|
2024-07-02 15:40:47 +00:00
|
|
|
<link rel="stylesheet" href="https://matcha.mizu.sh/matcha.css" />
|
|
|
|
<script src="https://unpkg.com/htmx.org@2.0.0"></script>
|
2024-07-02 14:27:27 +00:00
|
|
|
<body>
|
|
|
|
<script>
|
|
|
|
async function getFunkos() {
|
2024-07-02 15:40:47 +00:00
|
|
|
const response = await fetch("funkos/");
|
|
|
|
funkos = await response.json();
|
|
|
|
console.log(funkos);
|
2024-07-02 14:27:27 +00:00
|
|
|
}
|
|
|
|
getFunkos();
|
|
|
|
</script>
|
2024-07-02 15:40:47 +00:00
|
|
|
<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>
|
2024-07-02 14:27:27 +00:00
|
|
|
</body>
|
|
|
|
</head>
|