-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (39 loc) · 1.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Image Crop</title>
<link rel="stylesheet" href="src/crop-component.css">
<link rel="stylesheet" href="src/image-markers.css">
<script src="src/pica.js"></script>
<script src="src/canvas-to-blob.js"></script>
<script src="src/save-as.js"></script>
<script src="src/transform-image.js"></script>
<script src="src/image-markers.js"></script>
<script src="src/crop-component.js"></script>
<style>
body {
margin: 0;
padding: 20px;
font: 12px sans-serif;
}
</style>
</head>
<body>
<script>
var crop = new CropComponent({
imageURL: 'test-images/1.jpg',
width: 300,
height: 300,
backgroundColor: '#808080',
enableFilePicker: true,
enableDownload: true,
enableUpload: true,
uploadURL: 'https://example.com/upload',
enableMarkers: true,
maxMarkerCount: 2
});
document.body.appendChild(crop.getDOMNode());
</script>
</body>
</html>