-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (39 loc) · 1.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Resizer</title>
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<h1 class="title">Image Resizer</h1>
<div class="container">
<form class="file-form" id="dropSection">
<input id="fileInput" type="file" multiple accept="image/*" onchange="app.actions.handleFiles(this.files)">
<label class="drop-content" for="fileInput">
Drops file to attach, or click and select
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="18" fill="none" viewBox="0 0 24 20"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12" />
</svg>
</label>
</form>
<div id="actionContainer" class="d-none">
<div class="execute-section">
<input type="text" id="widthValue" placeholder="400" />
<input type="text" id="heightValue" placeholder="400" />
<button id="executeBtn" onclick="app.actions.execute()">Execute</button>
</div>
<div>
<button id="clearAllBtn" onclick="app.actions.clearAll()">Clear</button>
</div>
</div>
<div id="uploadedImage"></div>
</div>
</div>
</body>
<script src="scripts/main.js"></script>
</html>