-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (42 loc) · 1.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LocalShrink: Browser-Based Image Compression</title>
<link rel="stylesheet" href="styles.css">
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-R4JVCNH5YN"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-R4JVCNH5YN');
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.7.1/jszip.min.js"></script>
</head>
<body>
<h1>LocalShrink</h1>
<p class="tagline">Secure, browser-based image compression - No uploads needed</p>
<div class="controls">
<div class="control-group">
<label for="imageInput">Select Images:</label>
<input type="file" id="imageInput" accept="image/*" multiple>
</div>
<div class="control-group">
<label for="resizePercentage">Resize Percentage:</label>
<input type="number" id="resizePercentage" min="1" max="100" value="50">
</div>
<div class="control-group">
<label for="jpegQuality">JPEG Quality:</label>
<input type="number" id="jpegQuality" min="1" max="100" value="70">
</div>
<button onclick="compressImages()">Compress Images</button>
</div>
<div id="imagesContainer"></div>
<footer>
<a href="https://github.com/abinthomasonline/localshrink" target="_blank">source code</a>
</footer>
<script src="script.js"></script>
</body>
</html>