1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- ---
- title: "Mini app : Downloader"
- layout: default
- section: example
- ---
-
- <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>
- <p>
- This demo depends on the following libraries:
- <ul>
- <li><a href="https://jquery.com/">jQuery</a> (to manipulate the DOM)</li>
- <li><a href="https://github.com/stuk/jszip-utils">JSZipUtils</a> (to download files)</li>
- <li><a href="https://getbootstrap.com/">bootstrap</a> (for the progress bar)</li>
- </ul>
- </p>
-
-
- <ul class="nav nav-tabs" role="tablist">
- <li role="presentation" class="active">
- <a href="#downloader-result" aria-controls="downloader-result" role="tab" data-toggle="tab">
- result
- </a>
- </li>
- <li role="presentation">
- <a href="#downloader-js" aria-controls="downloader-js" role="tab" data-toggle="tab">
- js code
- </a>
- </li>
- <li role="presentation">
- <a href="#downloader-helpers-js" aria-controls="downloader-helpers-js" role="tab" data-toggle="tab">
- js helpers
- </a>
- </li>
- <li role="presentation">
- <a href="#downloader-html" aria-controls="downloader-html" role="tab" data-toggle="tab">
- html code
- </a>
- </li>
- </ul>
- <div class="tab-content">
- <div role="tabpanel" class="tab-pane active" id="downloader-result">
- <div class="show-example">
- <div id="downloader_application">
- {% include_relative downloader.inc/downloader.html %}
- </div>
- </div>
- </div>
- <div role="tabpanel" class="tab-pane" id="downloader-js">
- {% highlight js %}
- {% include_relative downloader.inc/downloader.js %}
- {% endhighlight %}
- </div>
- <div role="tabpanel" class="tab-pane" id="downloader-helpers-js">
- {% highlight js %}
- {% include_relative downloader.inc/helpers.js %}
- {% endhighlight %}
- </div>
- <div role="tabpanel" class="tab-pane" id="downloader-html">
- {% highlight html %}
- {% include_relative downloader.inc/downloader.html %}
- {% endhighlight %}
- </div>
- </div>
-
- <script type="text/javascript">
- jQuery(function ($) {
- {% include_relative downloader.inc/downloader.js %}
- {% include_relative downloader.inc/helpers.js %}
- });
- </script>
|