File size: 2,840 Bytes
ac3fc65 32655d3 ac3fc65 32655d3 ac3fc65 |
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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Read a zip file (demo zip.js)</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="../default.css">
<link rel="stylesheet" href="demo.css">
<link href="https://fonts.googleapis.com/css?family=Maven+Pro|Muli|Droid+Sans+Mono|Istok+Web" rel="stylesheet"
type="text/css">
</head>
<body>
<div id="container">
<h1>
<a href="../">zip.js</a> <span class="small"></span>
</h1>
<div class="description">
A JavaScript library to zip and unzip files
<hr>
</div>
<h2>Read a zip file (demo)</h2>
<ol id="demo-container">
<li>
<label>
<span class="form-label">choose a zip file</span>
<button id="file-input-button">Open...</button>
<input type="file" id="file-input" accept="application/zip" hidden>
</label>
</li>
<li id="encoding-item">
<label>
<span class="form-label">select the encoding of names</span>
<select id="encoding-input" disabled>
<option>utf-8</option>
<option>cp437</option>
<option>ibm866</option>
<option>iso-8859-2</option>
<option>iso-8859-3</option>
<option>iso-8859-4</option>
<option>iso-8859-5</option>
<option>iso-8859-6</option>
<option>iso-8859-7</option>
<option>iso-8859-8</option>
<option>iso-8859-10</option>
<option>iso-8859-13</option>
<option>iso-8859-14</option>
<option>iso-8859-15</option>
<option>iso-8859-16</option>
<option>koi8-r</option>
<option>koi8-u</option>
<option>macintosh</option>
<option>windows-874</option>
<option>windows-1250</option>
<option>windows-1251</option>
<option>windows-1252</option>
<option>windows-1253</option>
<option>windows-1254</option>
<option>windows-1255</option>
<option>windows-1256</option>
<option>windows-1257</option>
<option>windows-1258</option>
<option>x-mac-cyrillic</option>
<option>gbk</option>
<option>gb18030</option>
<option>big5</option>
<option>euc-jp</option>
<option>iso-2022-jp</option>
<option>shift-jis</option>
<option>euc-kr</option>
<option>utf-16be</option>
<option>utf-16le</option>
<option>x-user-defined</option>
</select>
</label>
</li>
<li>
<label>
<span class="form-label">set the password</span>
<input type="password" id="password-input" value="" disabled>
</label>
</li>
<li>
<label>
<span class="form-label">download uncompressed files</span>
<ul id="file-list" class="empty">
</ul>
</label>
</li>
</ol>
</div>
<script type="text/javascript" src="lib/zip-full.min.js"></script>
<script type="text/javascript" src="demo-read-file.js"></script>
</body>
</html> |