This commit is contained in:
Roberto Alsina 2024-07-02 19:02:05 -03:00
parent 227c770b61
commit 1648f2f99e

View File

@ -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>
@ -21,5 +20,6 @@
<tbody id="funko-list"> <tbody id="funko-list">
</tbody> </tbody>
</thead> </thead>
</main>
</body> </body>
</head> </head>