-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (30 loc) · 1.14 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
<!DOCTYPE html>
<html>
<head>
<title>Image Compressor</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" type="image/png" href="assets/compress.png">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h2>Image Compressor</h2>
<label for="imageInput" class="custom-file-upload">Select Image</label>
<input type="file" id="imageInput">
<br>
<button onclick="compressAndSave()" id="compressButton">Compress and Save</button>
<br>
<h4 style="display: inline-flex;">
<img src="assets/github.svg" height="20px" width="20px">
<a target="_blank" href="https://github.com/vaibhavharsoda/Image-Compressor">Code</a>
</h4>
<h4 style="display: inline-flex;">
<img src="assets/github.svg" height="20px" width="20px">
<a target="_blank" href="https://github.com/vaibhavharsoda">Vaibhav</a>
</h4>
<br>
<img id="preview">
</div>
<script type="text/javascript" src="script.js"></script>
</body>
</html>