index.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>Uppy :tl: playground</title>
  7. </head>
  8. <body>
  9. <style>
  10. html {
  11. background: #f1f1f1;
  12. }
  13. main {
  14. padding: 20px;
  15. font: 12pt sans-serif;
  16. background: white;
  17. width: 800px;
  18. margin: auto;
  19. }
  20. hr {
  21. border: 0;
  22. background-color: #111e33;
  23. height: 1px;
  24. }
  25. #logo { height: 1em; vertical-align: middle; }
  26. </style>
  27. <main>
  28. <h1>Uppy <img src="https://transloadit.edgly.net/assets/images/logo-small.svg" alt="Transloadit" id="logo"> playground</h1>
  29. <hr>
  30. <h2>transloadit.form()</h2>
  31. <form id="test-form" method="post" action="http://localhost:9967/test">
  32. <p><strong>leave a message</strong>
  33. <p>
  34. <label>name:
  35. <input type="text" name="name">
  36. </label>
  37. <p>
  38. <label>message: <br>
  39. <textarea name="message"></textarea>
  40. </label>
  41. <p>
  42. <label>
  43. attachments:
  44. <input type="file">
  45. </label>
  46. <p>
  47. <button type="submit">
  48. Upload
  49. </button>
  50. </form>
  51. <hr>
  52. <h2>transloadit.modal()</h2>
  53. <p>
  54. <button onclick="openModal()">Open</button>
  55. <hr>
  56. <h2>transloadit.upload()</h2>
  57. <p>
  58. An &lt;input type=file&gt; backed by `transloadit.upload`:
  59. <p>
  60. <input type="file" multiple onchange="doUpload(event)">
  61. </main>
  62. <link href="uppy.min.css" rel="stylesheet">
  63. <script src="bundle.js"></script>
  64. </body>
  65. </html>