forked from blueimp/JavaScript-Load-Image
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (27 loc) · 1.03 KB
/
index.html
File metadata and controls
39 lines (27 loc) · 1.03 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
<link rel="stylesheet" href="css/vendor/jquery.Jcrop.css">
<p><input type="file" id="file-input"></p>
<p>ARRASTAR A IMAGEM</p>
<p id="actions" style="display:none;">
<button type="button" id="edit">Editar</button>
<button type="button" id="crop" onclick="buut();">Recortar</button>
</p>
<div id="result" class="result" style="width: 800px;">
<p></p>
</div>
<script src="js/load-image.js"></script>
<script src="js/load-image-ios.js"></script>
<script src="js/load-image-orientation.js"></script>
<script src="js/load-image-meta.js"></script>
<script src="js/load-image-exif.js"></script>
<script src="js/load-image-exif-map.js"></script>
<!-- jQuery and Jcrop are not required by JavaScript Load Image, but included for the demo -->
<script src="js/jquery.min.js"></script>
<script src="js/vendor/jquery.Jcrop.js"></script>
<script src="js/demo.js"></script>
<script type="text/javascript">
function buut()
{
var largura = $('.jcrop-holder div').first().width();
$('#result').width(largura);
}
</script>