summaryrefslogtreecommitdiffstats
path: root/afm-client/bower_components/jszip/documentation/examples/downloader.html
blob: e3589dbef3a29cbf957f1494cc984ec1aeebb5cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
title: "Mini app : Downloader"
layout: default
section: example
---

<p>Tip : check the source of the page !</p>

<p>
  This mini application let you choose the files you want in a list, download
  them, zip them and give the result to the user.
</p>
<p>
  This demo requires a recent browser, see <a href="{{site.baseurl}}/documentation/howto/write_zip.html">
  the howto</a>.
</p>



<div id="downloader_application">
  <h3>Please select your files</h3>
  <form action="#" id="download_form">
  <ul>
    <li>
      <label>
        <input type="checkbox" data-url="{{site.baseurl}}/test/ref/complex_files/Franz Kafka - The Metamorphosis.epub" checked />
        Franz Kafka - The Metamorphosis.epub
      </label>
    </li>
    <li>
      <label>
        <input type="checkbox" data-url="{{site.baseurl}}/documentation/css/pygments.css" checked />
        pygments.css
      </label>
    </li>
    <li>
      <label>
        <input type="checkbox" data-url="{{site.baseurl}}/dist/jszip.js" />
        jszip.js
      </label>
    </li>
    <li>
      <label>
        <input type="checkbox" data-url="{{site.baseurl}}/test/ref/all.zip" />
        all.zip
      </label>
    </li>
  </ul>

  <button type="submit" class="btn btn-primary">pack them !</button>
</form>

<p class="hide" id="result"></p>


</div>

<script type="text/javascript" src="{{site.baseurl}}/documentation/examples/downloader.js"></script>