index.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!DOCTYPE html>
  2. <html lang="zh-cn">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>七牛云 - JavaScript SDK</title>
  6. <link href="images/favicon.ico" rel="shortcut icon">
  7. <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="./style.css">
  9. </head>
  10. <body>
  11. <div class="mainContainer">
  12. <div class="row" style="margin-top: 20px;">
  13. <ul class="tip col-md-12 text-mute">
  14. <li>
  15. <small>
  16. JavaScript SDK 基于 h5 file api 开发,可以上传文件至七牛云存储。
  17. </small>
  18. </li>
  19. </ul>
  20. </div>
  21. <div id="box">
  22. <button class="select-button">选择文件</button>
  23. <input class="file-input" type="file" id="select" />
  24. </div>
  25. <p style="margin-top:30px">
  26. <label for="quality">quality: </label>
  27. <input type="range" name="quality" id="quality" min="0" max="1" step="0.01">
  28. <span class="option-value"></span>
  29. </p>
  30. <p>
  31. <label for="width">max width: </label>
  32. <input type="range" name="maxWidth" id="width" min="100" max="1600">
  33. <span class="option-value"></span>
  34. </p>
  35. <p>
  36. <label for="height">max height: </label>
  37. <input type="range" name="maxHeight" id="height" min="100" max="1600">
  38. <span class="option-value"></span>
  39. </p>
  40. <div class= "imageContainer">
  41. <div class="sourceImage">
  42. <pre></pre>
  43. <img>
  44. </div>
  45. <div class="distImage">
  46. <pre></pre>
  47. <img>
  48. </div>
  49. </div>
  50. </div>
  51. </body>
  52. <style>
  53. </style>
  54. <script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
  55. <script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
  56. <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
  57. <script type="text/javascript" src='/dist/qiniu.min.js'></script>
  58. <script type="text/javascript" src="./index.js"></script>
  59. </html>