Debian Codegraph @

documentation/examples/downloader.html

raw
1 ---
2 title: "Mini app : Downloader"
3 layout: default
4 section: example
5 ---
6
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 <p>
16 This demo depends on the following libraries:
17 <ul>
18 <li><a href="https://jquery.com/">jQuery</a> (to manipulate the DOM)</li>
19 <li><a href="https://github.com/stuk/jszip-utils">JSZipUtils</a> (to download files)</li>
20 <li><a href="https://getbootstrap.com/">bootstrap</a> (for the progress bar)</li>
21 </ul>
22 </p>
23
24
25 <ul class="nav nav-tabs" role="tablist">
26 <li role="presentation" class="active">
27 <a href="#downloader-result" aria-controls="downloader-result" role="tab" data-toggle="tab">
28 result
29 </a>
30 </li>
31 <li role="presentation">
32 <a href="#downloader-js" aria-controls="downloader-js" role="tab" data-toggle="tab">
33 js code
34 </a>
35 </li>
36 <li role="presentation">
37 <a href="#downloader-helpers-js" aria-controls="downloader-helpers-js" role="tab" data-toggle="tab">
38 js helpers
39 </a>
40 </li>
41 <li role="presentation">
42 <a href="#downloader-html" aria-controls="downloader-html" role="tab" data-toggle="tab">
43 html code
44 </a>
45 </li>
46 </ul>
47 <div class="tab-content">
48 <div role="tabpanel" class="tab-pane active" id="downloader-result">
49 <div class="show-example">
50 <div id="downloader_application">
51 {% include_relative downloader.inc/downloader.html %}
52 </div>
53 </div>
54 </div>
55 <div role="tabpanel" class="tab-pane" id="downloader-js">
56 {% highlight js %}
57 {% include_relative downloader.inc/downloader.js %}
58 {% endhighlight %}
59 </div>
60 <div role="tabpanel" class="tab-pane" id="downloader-helpers-js">
61 {% highlight js %}
62 {% include_relative downloader.inc/helpers.js %}
63 {% endhighlight %}
64 </div>
65 <div role="tabpanel" class="tab-pane" id="downloader-html">
66 {% highlight html %}
67 {% include_relative downloader.inc/downloader.html %}
68 {% endhighlight %}
69 </div>
70 </div>
71
72 <script type="text/javascript">
73 jQuery(function ($) {
74 {% include_relative downloader.inc/downloader.js %}
75 {% include_relative downloader.inc/helpers.js %}
76 });
77 </script>