index.html 957 B

12345678910111213141516171819202122232425
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Instant BOM Assistant — Category Inference Test</title>
  6. <script src="https://unpkg.com/htmx.org@1.9.12"></script>
  7. <style>
  8. body { font-family: system-ui, sans-serif; max-width: 960px; margin: 2rem auto; padding: 0 1rem; }
  9. table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
  10. th, td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid #ddd; vertical-align: top; }
  11. button { cursor: pointer; }
  12. .candidates { list-style: none; padding: 0; margin: 0; }
  13. .candidates li { font-size: 0.85rem; }
  14. .state { font-size: 0.75rem; color: #666; text-transform: uppercase; }
  15. </style>
  16. </head>
  17. <body>
  18. <h1>Category Inference Test</h1>
  19. <form hx-post="/upload" hx-target="#rows" hx-encoding="multipart/form-data">
  20. <input type="file" name="file" accept=".csv,.xlsx,.xls" required>
  21. <button type="submit">Upload BOM</button>
  22. </form>
  23. <div id="rows"></div>
  24. </body>
  25. </html>