-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (76 loc) · 3.56 KB
/
index.html
File metadata and controls
89 lines (76 loc) · 3.56 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Image Converter</title>
<link rel="stylesheet" href="./assets/css/index.css" />
</head>
<body>
<main class="app-shell" aria-labelledby="app-title">
<header class="app-header">
<h1 id="app-title">Image Converter</h1>
<p>Convert and resize images directly in your browser.</p>
</header>
<section class="panel" aria-label="Upload">
<label class="input-label" for="imageInput">Source images</label>
<input id="imageInput" type="file" class="native-file-input" accept="image/*" multiple />
<div id="dropzone" class="dropzone" role="button" tabindex="0" aria-describedby="dropzoneHelp">
<div class="dropzone-title">Drop images here</div>
<div id="dropzoneHelp" class="dropzone-subtitle">or click to choose files</div>
<div id="fileName" class="file-name">No files selected</div>
</div>
<div class="file-list-wrap">
<div class="file-list-title">Selected files</div>
<ul id="fileList" class="file-list"></ul>
</div>
</section>
<section class="panel controls" aria-label="Convert options">
<div class="control-grid">
<div class="control-item">
<label class="input-label" for="convertFileType">Target format</label>
<select id="convertFileType" class="control-input"></select>
</div>
<div class="control-item">
<label class="input-label" for="quality">Quality</label>
<div class="quality-wrap">
<input id="quality" type="range" class="quality-slider" min="10" max="100" value="92" />
<output id="qualityValue" for="quality" class="quality-value">92%</output>
</div>
</div>
<div class="control-item">
<label class="input-label" for="width">Width (px)</label>
<input id="width" type="number" min="1" step="1" class="control-input" placeholder="Auto" />
</div>
<div class="control-item">
<label class="input-label" for="height">Height (px)</label>
<input id="height" type="number" min="1" step="1" class="control-input" placeholder="Auto" />
</div>
</div>
<label class="checkbox-row" for="keepAspect">
<input id="keepAspect" type="checkbox" checked />
<span>Keep original aspect ratio</span>
</label>
</section>
<section class="panel" aria-label="Preview">
<div class="preview-header">
<span>Preview (first file)</span>
<span id="imageMeta" class="meta-text">No image loaded</span>
</div>
<div id="imagePreview" class="image-preview" role="img" aria-label="Selected image preview"></div>
</section>
<section class="actions" aria-label="Actions">
<button id="convertBtn" class="convert-btn" type="button">Convert and Download</button>
<p id="statusMessage" class="status-message" role="status" aria-live="polite"></p>
</section>
<footer class="feedback-hint">
<span>Feedback on</span>
<a target="_blank" rel="noreferrer" href="https://chromewebstore.google.com/detail/image-converter/fdigobpfkndelcjmihianfobjpnkkghc">Chrome Web Store</a>
</footer>
</main>
<div id="loading" class="loading" aria-hidden="true">
<div id="loadingText">Converting...</div>
</div>
<script src="./assets/js/index.js"></script>
</body>
</html>