summaryrefslogtreecommitdiffstats
path: root/afb-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

@media only all and (prefers-color-scheme: dark) {
.highlight .hll { background-color: #49483e }
.highlight .c { color: #75715e } /* Comment */
.highlight .err { color: #960050; background-color: #1e0010 } /* Error */
.highlight .k { color: #66d9ef } /* Keyword */
.highlight .l { color: #ae81ff } /* Literal */
.highlight .n { color: #f8f8f2 } /* Name */
.highlight .o { color: #f92672 } /* Operator */
.highlight .p { color: #f8f8f2 } /* Punctuation */
.highlight .ch { color: #75715e } /* Comment.Hashbang */
.highlight .cm { color: #75715e } /* Comment.Multiline */
.highlight .cp { color: #75715e } /* Comment.Preproc */
.highlight .cpf { color: #75715e } /* Comment.PreprocFile */
.highlight .c1 { color: #75715e } /* Comment.Single */
.highlight .cs { color: #75715e } /* Comment.Special */
.highlight .gd { color: #f92672 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gi { color: #a6e22e } /* Generic.Inserted */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #75715e } /* Generic.Subheading */
.highlight .kc { color: #66d9ef } /* Keyword.Constant */
.highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.highlight .kn { color: #f92672 } /* Keyword.Namespace 
---
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>