-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (54 loc) · 1.67 KB
/
Copy pathindex.html
File metadata and controls
58 lines (54 loc) · 1.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Circle Image Cropper</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header class="app-header">
<h1>Circle Image Cropper</h1>
<div class="file-controls">
<div class="url-controls">
<input id="urlInput" type="url" placeholder="Paste image URL (https://...)" />
<button id="loadUrlBtn">Load URL</button>
</div>
<label class="upload-btn">
<input id="fileInput" type="file" accept="image/*" />
<span>Upload Image</span>
</label>
<button id="downloadBtn" disabled>Download Crop</button>
</div>
</header>
<main class="app-main">
<div class="workspace">
<div class="stage-wrapper">
<div class="stage" id="stage">
<img id="image" alt="" draggable="false" />
<div class="mask"></div>
<div class="circle-guide" aria-hidden="true"></div>
</div>
</div>
<div class="controls">
<div class="action-row">
<button id="fitBtn" disabled>Fit to Circle</button>
<button id="centerBtn" disabled>Center</button>
</div>
<div class="zoom-row">
<button id="minusBtn" title="Scale -1px" disabled>−</button>
<input id="scaleSlider" type="range" min="50" max="4000" step="1" value="100" disabled />
<button id="plusBtn" title="Scale +1px" disabled>+</button>
</div>
<div class="meta">
<label>Scale: <span id="scalePx">0</span> px</label>
</div>
</div>
</div>
</main>
<footer class="app-footer">
<p>Drag to position the image. Use slider or +/- to scale by 1px.</p>
</footer>
<script src="script.js"></script>
</body>
</html>