-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
215 lines (207 loc) · 9.99 KB
/
index.html
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html lang="en">
<!-- Source Code available on GitHub at https://github.com/39zde/simple-file-compressor -->
<!--
MIT License
Copyright (c) 2024 39zde
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<head>
<base href="https://39zde.github.io/simple-file-compressor/" target="_blank" />
<link rel="preload" type="text/css" href="index.css" fetchpriority="high" referrerpolicy="no-referrer" as="style" />
<meta charset="UTF-8" name="Simple File Compressor" lang="en-US" />
<meta name="description"
content="A tool to reduce the file size of your files. Free online, local, tracking-free, advert-free file compression. Simple and fast." />
<meta http-equiv="Content-Security-Policy"
content="default-src 'none'; script-src 'self'; style-src 'self'; manifest-src 'self'; img-src 'self'; frame-ancestors 'none'; form-action 'none'; object-src 'none'; base-uri 'none'; connect-src 'self'; upgrade-insecure-requests" />
<meta http-equiv="Referrer-Policy" content="no-referrer, strict-origin-when-cross-origin" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes" />
<noscript><output id="notification" aria-hidden="true" role="alert" class="error noscripterror">This site needs
JavaScript to be enabled, since all the compression happens locally.</output></noscript>
<title>
Simple File Compressor - Reduce the file size of your files
</title>
<link rel="icon" href="icons/icon.svg" fetchpriority="low" referrerpolicy="no-referrer" />
<link rel="license"
href="https://raw.githubusercontent.com/39zde/simple-file-compressor/b66e3e32a1e35fcde87f965d2b53dbf2ecf3a719/LICENSE" />
<link rel="stylesheet" type="text/css" href="index.css" fetchpriority="high" referrerpolicy="no-referrer" />
<script referrerpolicy="no-referrer" defer type="module" src="index.js"></script>
</head>
<body>
<header>
<h1 role="heading">
Simple File Compressor
</h1>
<small>Create a Zip or Gzip archives, from any file type.</small>
</header>
<main>
<aside aria-expanded="false" data-description="Drawer,which shows the available keyboard shortcuts">
<label class="toggle-shortcuts-label" for="toggle-shortcuts" tabindex="-1"
title="Show/Hide keyboard shortcuts">
<input id="toggle-shortcuts" type="checkbox" aria-controls="shortcuts" role="checkbox"
aria-checked="false">
</label>
<div id="shortcuts" aria-hidden="true">
<h3>Show/Hide Sidebar</h3>
<table>
<tbody>
<tr title="Arrow-Right">
<td>
<p>Open:</p>
</td>
<td>
<kbd>
→
</kbd>
</td>
</tr>
<tr title="Arrow-Left">
<td>
<p>
Close:
</p>
</td>
<td>
<kbd>
←
</kbd>
</td>
</tr>
</tbody>
</table>
<h3>Jump to Steps</h3>
<table>
<tbody>
<tr title="Number 1">
<td>
<p>Step 1:</p>
</td>
<td>
<kbd>1</kbd>
</td>
</tr>
<tr title="Number 2">
<td>
<p>Step 2:</p>
</td>
<td>
<kbd>2</kbd>
</td>
</tr>
<tr title="Number 3">
<td>
<p>Step 3:</p>
</td>
<td>
<kbd>3</kbd>
</td>
</tr>
<tr title="Tab">
<td>
<p>Next</p>
</td>
<td>
<kbd>⭲</kbd>
</td>
</tr>
<tr title="Shift + Tab">
<td>
<p>Previous:</p>
</td>
<td>
<span><kbd>⇑</kbd> +<kbd>⭲</kbd></span>
</td>
</tr>
</tbody>
</table>
<h3>Actions</h3>
<table>
<tbody>
<tr title="Enter">
<td>
<p>Action:</p>
</td>
<td><kbd>↵</kbd></td>
</tr>
<tr title="Letter Oscar">
<td>
<p>Select a file:</p>
</td>
<td><kbd>o</kbd></td>
</tr>
<tr title="Letter Tango">
<td>
<p>Change type:</p>
</td>
<td><kbd>t</kbd></td>
</tr>
<tr title="Letter Charlie">
<td>
<p>Compress:</p>
</td>
<td><kbd>c</kbd></td>
</tr>
<tr title="CTRL + S" id="save-html-shortcut">
<td>
<p>Save tool:</p>
</td>
<td>
<span><kbd>⌘</kbd> +<kbd>s</kbd></span>
</td>
</tr>
</tbody>
</table>
</div>
</aside>
<article>
<output id="notification" aria-hidden="true" role="status">
</output>
<form class="steps">
<label for="compression-file-input" tabindex="0" title="1. File Selection" aria-keyshortcuts="1"
data-description="Step 1: File Upload. Press 1 to focus, then press 'Enter' or 'o' to open the file explorer to pick one or more files">
<h2>1. File Selection</h2>
<input tabindex="-1" type="file" multiple id="compression-file-input" aria-keyshortcuts="o">
</label>
<label for="compression-type-input" tabindex="0" title="2. Compression Type" aria-keyshortcuts="2"
data-description="Step 2: Compression type selection. Press 2 to focus, then press 'Enter' or 's' to cycle through the available options">
<h2>2. Compression Type</h2>
<select id="compression-type-input" tabindex="-1" aria-keyshortcuts="s">
<option value="gzip">
gzip
</option>
<option value="deflate">
deflate
</option>
</select>
</label>
<label for="compression-start-input" tabindex="0" title="3. Start" aria-keyshortcuts="3"
data-description="Step 3: Start the compression. Press 3 to focus, then press 'Enter' or 'c' to compress or decompress the selected files. Decompression ignores the compression type input and picks the correct format, if supported. Processed files will be saved to the download folder.">
<h2>3. Start</h2>
<input id="compression-start-input" type="button" value="Go" tabindex="-1" disabled
aria-keyshortcuts="c">
</label>
</form>
</article>
</main>
<footer>
This tool does not require an internet-connection. <span id="save-html-notice">Click to <a id="save-html"
target="_self">save page as HTML file</a> for offline use.</span><br>
This site is open source. Check it out on <a href="https://github.com/39zde/simple-file-compressor"
referrerpolicy="no-referrer" target="_blank">Github ↗</a>
</footer>
</body>
</html>