|
1 |
| -<!DOCTYPE HTML> |
2 |
| -<!-- |
3 |
| -/* |
4 |
| - * JavaScript Load Image Demo 1.9.0 |
5 |
| - * https://github.com/blueimp/JavaScript-Load-Image |
6 |
| - * |
7 |
| - * Copyright 2011, Sebastian Tschan |
8 |
| - * https://blueimp.net |
9 |
| - * |
10 |
| - * Licensed under the MIT license: |
11 |
| - * http://www.opensource.org/licenses/MIT |
12 |
| - */ |
13 |
| ---> |
14 |
| -<html lang="en"> |
15 |
| -<head> |
16 |
| -<!--[if IE]> |
17 |
| -<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
18 |
| -<![endif]--> |
19 |
| -<meta charset="utf-8"> |
20 |
| -<title>JavaScript Load Image</title> |
21 |
| -<meta name="description" content="JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped HTML img or canvas element. It also provides a method to parse image meta data to extract Exif tags and thumbnails and to restore the complete image header after resizing."> |
22 |
| -<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
23 |
| -<!-- Jcrop is not required by JavaScript Load Image, but included for the demo --> |
| 1 | + |
| 2 | + |
24 | 3 | <link rel="stylesheet" href="css/vendor/jquery.Jcrop.css">
|
25 |
| -<link rel="stylesheet" href="css/demo.css"> |
26 |
| -</head> |
27 |
| -<body> |
28 |
| -<h1>JavaScript Load Image Demo</h1> |
29 |
| -<p><a href="https://github.com/blueimp/JavaScript-Load-Image">JavaScript Load Image</a> is a library to load images provided as <a href="https://developer.mozilla.org/en/DOM/File">File</a> or <a href="https://developer.mozilla.org/en/DOM/Blob">Blob</a> objects or via URL.<br> |
30 |
| -It returns an optionally <strong>scaled</strong> and/or <strong>cropped</strong> HTML <a href="https://developer.mozilla.org/en/docs/HTML/Element/Img">img</a> or <a href="https://developer.mozilla.org/en/docs/HTML/Canvas">canvas</a> element.<br> |
31 |
| -It also provides a method to parse image meta data to extract <a href="http://en.wikipedia.org/wiki/Exif">Exif</a> tags and thumbnails and to restore the complete image header after resizing.</p> |
32 |
| -<ul class="navigation"> |
33 |
| - <li><a href="https://github.com/blueimp/JavaScript-Load-Image/tags">Download</a></li> |
34 |
| - <li><a href="https://github.com/blueimp/JavaScript-Load-Image">Source Code</a></li> |
35 |
| - <li><a href="https://github.com/blueimp/JavaScript-Load-Image/blob/master/README.md">Documentation</a></li> |
36 |
| - <li><a href="test/">Test</a></li> |
37 |
| - <li><a href="https://blueimp.net">© Sebastian Tschan</a></li> |
38 |
| -</ul> |
39 |
| -<br> |
40 |
| -<h2>Select an image file</h2> |
| 4 | + |
| 5 | + |
41 | 6 | <p><input type="file" id="file-input"></p>
|
42 |
| -<p>Or <strong>drag & drop</strong> an image file onto this webpage.</p> |
43 |
| -<br> |
44 |
| -<h2>Result</h2> |
| 7 | + |
| 8 | +<p>ARRASTAR A IMAGEM</p> |
| 9 | + |
45 | 10 | <p id="actions" style="display:none;">
|
46 |
| - <button type="button" id="edit">Edit</button> |
47 |
| - <button type="button" id="crop">Crop</button> |
| 11 | + <button type="button" id="edit">Editar</button> |
| 12 | + <button type="button" id="crop" onclick="buut();">Recortar</button> |
48 | 13 | </p>
|
49 |
| -<div id="result" class="result"> |
50 |
| - <p>This demo works only in browsers with support for the <a href="https://developer.mozilla.org/en/DOM/window.URL">URL</a> or <a href="https://developer.mozilla.org/en/DOM/FileReader">FileReader</a> API.</p> |
| 14 | + |
| 15 | + |
| 16 | +<div id="result" class="result" style="width: 800px;"> |
| 17 | + <p></p> |
51 | 18 | </div>
|
52 |
| -<br> |
53 |
| -<div id="exif" class="exif" style="display:none;"> |
54 |
| - <h2>Exif meta data</h2> |
55 |
| - <p id="thumbnail" class="thumbnail" style="display:none;"></p> |
56 |
| - <table></table> |
57 |
| -</div> |
58 |
| -<br> |
| 19 | + |
| 20 | + |
59 | 21 | <script src="js/load-image.js"></script>
|
60 | 22 | <script src="js/load-image-ios.js"></script>
|
61 | 23 | <script src="js/load-image-orientation.js"></script>
|
62 | 24 | <script src="js/load-image-meta.js"></script>
|
63 | 25 | <script src="js/load-image-exif.js"></script>
|
64 | 26 | <script src="js/load-image-exif-map.js"></script>
|
| 27 | + |
65 | 28 | <!-- jQuery and Jcrop are not required by JavaScript Load Image, but included for the demo -->
|
66 |
| -<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> |
| 29 | +<script src="js/jquery.min.js"></script> |
67 | 30 | <script src="js/vendor/jquery.Jcrop.js"></script>
|
68 | 31 | <script src="js/demo.js"></script>
|
69 |
| -</body> |
70 |
| -</html> |
| 32 | + |
| 33 | +<script type="text/javascript"> |
| 34 | + function buut() |
| 35 | + { |
| 36 | + var largura = $('.jcrop-holder div').first().width(); |
| 37 | + $('#result').width(largura); |
| 38 | + } |
| 39 | +</script> |
0 commit comments