default.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <meta name="description" content="Create .zip files using Javascript. Provides a simple API to place any content generated by Javascript into a .zip file for your users." />
  8. <title>{{page.title}}</title>
  9. <!-- Latest compiled and minified CSS -->
  10. <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
  11. <!-- Optional theme -->
  12. <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
  13. <!-- Latest compiled and minified JavaScript -->
  14. <!-- <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> -->
  15. <link rel="stylesheet" href="{{site.baseurl}}/documentation/css/pygments.css">
  16. <link rel="stylesheet" href="{{site.baseurl}}/documentation/css/main.css">
  17. <script type="text/javascript" src="{{site.baseurl}}/dist/jszip.js"></script>
  18. <script type="text/javascript" src="//stuk.github.io/jszip-utils/dist/jszip-utils.js"></script>
  19. <!--
  20. Mandatory in IE 6, 7, 8 and 9.
  21. -->
  22. <!--[if IE]>
  23. <script type="text/javascript" src="//stuk.github.io/jszip-utils/dist/jszip-utils-ie.js"></script>
  24. <![endif]-->
  25. <!--
  26. Any version of jQuery will do (it's just to write some examples), this one
  27. happens to be available in our tests.
  28. -->
  29. <script type="text/javascript" src="{{site.baseurl}}/test/jquery-1.8.3.min.js"></script>
  30. <script type="text/javascript" src="{{site.baseurl}}/vendor/FileSaver.js"></script>
  31. </head>
  32. <body>
  33. <div class="container">
  34. <div class="navbar navbar-default" role="navigation">
  35. <div class="container-fluid">
  36. <div class="navbar-header">
  37. <a class="navbar-brand" href="{{site.baseurl}}/"><strong>JS</strong>Zip</a>
  38. </div>
  39. <ul class="nav navbar-nav">
  40. <li {% if page.section == "api" %}class="active"{% endif %}>
  41. <a href="{{site.baseurl}}/documentation/api_jszip.html">API</a>
  42. </li>
  43. <li {% if page.section == "example" %}class="active"{% endif %}>
  44. <a href="{{site.baseurl}}/documentation/examples.html">How to / examples</a>
  45. </li>
  46. <li {% if page.section == "limitations" %}class="active"{% endif %}>
  47. <a href="{{site.baseurl}}/documentation/limitations.html">Performances / limitations</a>
  48. </li>
  49. </ul>
  50. <ul class="nav navbar-nav navbar-right">
  51. <li>
  52. <a href="https://github.com/Stuk/jszip">JSZip on Github</a>
  53. </li>
  54. </ul>
  55. </div>
  56. </div>
  57. {% if page.section and page.fullpage != true %}
  58. <div class="row">
  59. <nav class="col-md-3">
  60. {% case page.section %}
  61. {% when "main" %}
  62. <h4>JSZip users :</h4>
  63. <ul class="nav">
  64. <li><a href="{{site.baseurl}}/">Installation</a></li>
  65. <li><a href="{{site.baseurl}}/documentation/faq.html">FAQ</a></li>
  66. <li><a href="{{site.baseurl}}/CHANGES.html">Changelog</a></li>
  67. <li><a href="{{site.baseurl}}/documentation/upgrade_guide.html">Upgrade guide</a></li>
  68. <li><a href="https://github.com/Stuk/jszip/issues">Bug tracker</a></li>
  69. </ul>
  70. <h4>JSZip developers :</h4>
  71. <ul class="nav">
  72. <li><a href="{{site.baseurl}}/documentation/contributing.html">How to contribute</a></li>
  73. <li><a href="https://github.com/Stuk/jszip/graphs/contributors">Contributors</a></li>
  74. </ul>
  75. {% when "api" %}
  76. <ul class="nav">
  77. <li><a href="{{site.baseurl}}/documentation/api_jszip.html">JSZip</a>
  78. <ul>
  79. <li><a href="{{site.baseurl}}/documentation/api_jszip/constructor.html">new JSZip() or JSZip()</a></li>
  80. <li><a href="{{site.baseurl}}/documentation/api_jszip/constructor_load.html">new JSZip(data [,options])</a></li>
  81. <li><a href="{{site.baseurl}}/documentation/api_jszip/file_name.html">JSZip#file(name)</a></li>
  82. <li><a href="{{site.baseurl}}/documentation/api_jszip/file_regex.html">JSZip#file(regex)</a></li>
  83. <li><a href="{{site.baseurl}}/documentation/api_jszip/file_data.html">JSZip#file(name, data [,options])</a></li>
  84. <li><a href="{{site.baseurl}}/documentation/api_jszip/folder_data.html">JSZip#folder(name)</a></li>
  85. <li><a href="{{site.baseurl}}/documentation/api_jszip/folder_regex.html">JSZip#folder(regex)</a></li>
  86. <li><a href="{{site.baseurl}}/documentation/api_jszip/filter.html">JSZip#filter(predicate)</a></li>
  87. <li><a href="{{site.baseurl}}/documentation/api_jszip/remove.html">JSZip#remove(name)</a></li>
  88. <li><a href="{{site.baseurl}}/documentation/api_jszip/generate.html">JSZip#generate(options)</a></li>
  89. <li><a href="{{site.baseurl}}/documentation/api_jszip/load.html">JSZip#load(data [, options])</a></li>
  90. <li><a href="{{site.baseurl}}/documentation/api_jszip/support.html">JSZip.support</a></li>
  91. </ul>
  92. </li>
  93. <li><a href="{{site.baseurl}}/documentation/api_zipobject.html">ZipObject</a></li>
  94. </ul>
  95. {% when "example" %}
  96. <h4>How to ...</h4>
  97. <ul class="nav">
  98. <li><a href="{{site.baseurl}}/documentation/examples.html">Use JSZip</a></li>
  99. <li><a href="{{site.baseurl}}/documentation/howto/read_zip.html">Read a file</a></li>
  100. <li><a href="{{site.baseurl}}/documentation/howto/write_zip.html">Write a file</a></li>
  101. </ul>
  102. <h4>Examples</h4>
  103. <ul class="nav">
  104. <li><a href="{{site.baseurl}}/documentation/examples/read-local-file-api.html">Read local file</a></li>
  105. <li><a href="{{site.baseurl}}/documentation/examples/get-binary-files-ajax.html">Read remote file</a></li>
  106. <li><a href="{{site.baseurl}}/documentation/examples/download-zip-file.html">Give the user its zip file</a></li>
  107. <li><a href="{{site.baseurl}}/documentation/examples/downloader.html">Mini app : downloader</a></li>
  108. </ul>
  109. {% endcase %}
  110. <!-- <ul class="nav"> -->
  111. <!-- <li><a href="{{site.baseurl}}/documentation/faq.html">FAQ</a></li> -->
  112. <!-- </ul> -->
  113. <!-- <li><a href="{{site.baseurl}}/">installation</a></li> -->
  114. </nav>
  115. {% endif %}
  116. <div class="{% if page.section and page.fullpage != true%}col-md-9{% else %}col-md-12{% endif %}">
  117. <h1>{{page.title}}</h1>
  118. <!-- ===================== -->
  119. <!-- === C O N T E N T === -->
  120. <!-- ===================== -->
  121. {{content}}
  122. <!-- ===================== -->
  123. <!-- == / C O N T E N T == -->
  124. <!-- ===================== -->
  125. </div>
  126. </div>
  127. </div>
  128. <script>
  129. // FIXME find how to do that cleanly
  130. (function(){
  131. var tables = document.getElementsByTagName("table");
  132. for(var i = 0; i < tables.length; i++) {
  133. tables[i].className += " table table-condensed table-striped table-bordered ";
  134. }
  135. })();
  136. </script>
  137. <script>
  138. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  139. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  140. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  141. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  142. ga('create', 'UA-52085706-1', 'stuk.github.io');
  143. ga('send', 'pageview');
  144. </script>
  145. </body>
  146. </html>