index.html 1.7 KB

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