downloader.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. ---
  2. title: "Mini app : Downloader"
  3. layout: default
  4. section: example
  5. ---
  6. <p>Tip : check the source of the page !</p>
  7. <p>
  8. This mini application let you choose the files you want in a list, download
  9. them, zip them and give the result to the user.
  10. </p>
  11. <p>
  12. This demo requires a recent browser, see <a href="{{site.baseurl}}/documentation/howto/write_zip.html">
  13. the howto</a>.
  14. </p>
  15. <div id="downloader_application">
  16. <h3>Please select your files</h3>
  17. <form action="#" id="download_form">
  18. <ul>
  19. <li>
  20. <label>
  21. <input type="checkbox" data-url="{{site.baseurl}}/test/ref/complex_files/Franz Kafka - The Metamorphosis.epub" checked />
  22. Franz Kafka - The Metamorphosis.epub
  23. </label>
  24. </li>
  25. <li>
  26. <label>
  27. <input type="checkbox" data-url="{{site.baseurl}}/documentation/css/pygments.css" checked />
  28. pygments.css
  29. </label>
  30. </li>
  31. <li>
  32. <label>
  33. <input type="checkbox" data-url="{{site.baseurl}}/dist/jszip.js" />
  34. jszip.js
  35. </label>
  36. </li>
  37. <li>
  38. <label>
  39. <input type="checkbox" data-url="{{site.baseurl}}/test/ref/all.zip" />
  40. all.zip
  41. </label>
  42. </li>
  43. </ul>
  44. <button type="submit" class="btn btn-primary">pack them !</button>
  45. </form>
  46. <p class="hide" id="result"></p>
  47. </div>
  48. <script type="text/javascript" src="{{site.baseurl}}/documentation/examples/downloader.js"></script>