Create button demo

This commit is contained in:
Elnu 2023-07-15 20:00:52 -07:00
parent a48a97a7f7
commit ed11a84dca
6 changed files with 133 additions and 2 deletions

12
static/index.html Normal file
View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shiritori</title>
<script src="https://unpkg.com/htmx.org@1.9.3"></script>
</head>
<body>
<button hx-get="/api/click" hx-swap="innerHTML">Click me!</button>
</body>
</html>