mirror of
https://github.com/mosbth/cimage.git
synced 2025-07-21 16:51:47 +02:00
compare deal with images leaving no json information
This commit is contained in:
@@ -32,6 +32,10 @@ input[type=text] {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.json {
|
||||
min-height: 100px;
|
||||
}
|
||||
|
||||
.top {
|
||||
z-index: 10;
|
||||
}
|
||||
|
@@ -60,7 +60,11 @@ window.CImage = (function(){
|
||||
|
||||
$.getJSON(this.value + "&json", function(data) {
|
||||
json.innerHTML = "filename: " + data.filename + "\ncolors: " + data.colors + "\nsize: " + data.size + "\nwidth: " + data.width + "\nheigh: " + data.height + "\naspect-ratio: " + data.aspectRatio;
|
||||
});
|
||||
})
|
||||
.fail(function() {
|
||||
json.innerHTML = "Details not available."
|
||||
console.log( "JSON error" );
|
||||
});
|
||||
|
||||
// Display image in overlay
|
||||
button.removeAttribute("disabled");
|
||||
|
Reference in New Issue
Block a user