-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
51 lines (46 loc) · 1.17 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
44
45
46
47
48
49
50
51
<!doctype html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<title>split images</title>
<style>
#preview {
width: 400px;
height: 200px;
border: 2px dashed #00f;
}
#preview img {
width: 100%;
height: 100%;
}
table {
border-collapse: collapse;
}
td, th {
padding: 0;
}
td img {
display: block;
padding: 2px;
background: #fff;
}
</style>
</head>
<body>
<h1>Split Image Demo</h1>
<form action='#'>
<p>
<label for='row'>Row: </label>
<input type='number' id='row' name='row' min='0'>
<label for='column'>Column: </label>
<input type='number' id='column' name='column' min='0'>
<input type='file' name='imgFile' id='imgFile'>
</p>
</form>
<h2>Image Preview</h2>
<div id='preview'>try to drag an image here</div>
<h2>Image Split Piece</h2>
<div id='result'></div>
<script src='split.js'></script>
</body>
</html>