00.html 428 B

12345678910111213141516171819
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title id="page-title">HTMX Demos</title>
  6. <script src="htmx-1-9-12.min.js"></script>
  7. <link rel="stylesheet" href="styles.css" />
  8. </head>
  9. <body>
  10. <h1 id="title">Demo</h1>
  11. <h2>Default: swap current element</h2>
  12. <nav hx-get="/autonum/nav" hx-trigger="load"></nav>
  13. <button hx-post="/contacts" hx-swap="innerHTML">
  14. Contacts
  15. </button>
  16. </body>
  17. </html>