-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (50 loc) · 2.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Converter to WebP</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div id="titleContainer">
<h1>JPG and PNG Image Converter to WebP</h1>
<p>For better performance and speed, only 10 images per upload are recommended.</p>
</div>
<label for="imageInput" id="label">Upload Images</label>
<input type="file" id="imageInput" accept=".jpg, .jpeg, .png" multiple onchange="displayOriginalImages()">
<button onclick="convertToWebP()">Convert to WebP</button>
<br>
<div class="button-container">
<button id="downloadBtn" onclick="downloadWebP()">Download WebP</button>
<button id="startAgainBtn" onclick="startAgain()">Delete Uploaded Images</button>
</div>
<div id="loader">Converting...</div>
<div id="doneMessage">Done. Download the WebP images by clicking the Download button.</div>
<br>
<div id="outputContainer"></div>
<div id="loadedPicturesContainer"></div>
<br>
<hr>
<div id="donateContainer">
<p>Support my work by donating to PayPal</p>
<a class="donate-link" href="https://www.paypal.com/donate/?hosted_button_id=JX5K4CKZWRDVG" target="_blank" rel="noopener noreferrer">Donate</a>
</div>
<footer>
<div id="socialMedia">
<a href="https://www.linkedin.com/in/luc-constantin/" target="_blank" rel="noopener noreferrer">LinkedIn</a>
<a href="https://twitter.com/accolades_dev" target="_blank" rel="noopener noreferrer">𝕏</a>
<a href="https://github.com/luc-constantin" target="_blank" rel="noopener noreferrer">GitHub</a>
</div>
<div id="copyright">
<a href="https://accolades.dev">Digital Accolades - Luc Constantin.</a>
<p>© <span id="year"></span> All rights reserved.</p>
</div>
</footer>
<script>
document.getElementById('year').innerText = new Date().getFullYear();
</script>
<!-- this was coded by Luc <<https://accolades.dev>> November 15.2023 -->
<script defer src="script.js"></script>
</body>
</html>