-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
60 lines (55 loc) · 1.67 KB
/
index.htm
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
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WebpConverter - Convert Images Online</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>WebpConverter</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section class="converter-section">
<h2>Image Converter</h2>
<form>
<div class="input-group">
<label for="original-image">Choose an image to convert:</label>
<input type="file" id="original-image">
</div>
<div id="drop-zone" class="drop-zone">
<p>Drag and drop an image file here</p>
</div>
<div class="input-group">
<label for="format-select">Choose the output format:</label>
<select id="format-select">
<option value="jpeg">JPEG</option>
<option value="png">PNG</option>
<option value="bmp">BMP</option>
</select>
</div>
<div class="input-group">
<input type="checkbox" style="display:none" id="display-checkbox" checked >
<label for="display-checkbox" style="display:none;">Display converted image</label>
</div>
<div class="button-group">
<button onclick="convertImage()">Convert</button>
<a id="download-button" style="display: none;">Download converted image</a>
</div>
</form>
<div class="image-preview">
<img id="converted-image" alt="Converted image" style="display:none;">
</div>
</section>
</main>
<script src="converter.js"></script>
</body>
</html>