-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
23 lines (23 loc) · 844 Bytes
/
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
<!DOCTYPE html>
<html lang="en" style="height:100%">
<head>
<meta charset="utf-8" />
<title>mExif Example</title>
<script src="mExif.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>
<body style="height:100%">
<input name="photo" type="file"/>
<textarea id="photoInfo" style="width:100%;height:80%"></textarea>
<script>
$().ready(function() {
$('input[name=photo]').change(function(e) {
mExif.debugMode = true;
mExif.scan(e.target.files[0], function(result) {
$('#photoInfo').text(JSON.stringify(result, null, '\t'));
});
});
});
</script>
</body>
</html>