|
|
|
@ -123,14 +123,14 @@ $(function(){
|
|
|
|
|
var done = $.Deferred(); |
|
|
|
|
var dtwo = $.Deferred(); |
|
|
|
|
|
|
|
|
|
xhr.open('GET', 'demoassets/people.jpg', true); |
|
|
|
|
xhr.open('GET', 'demoassets/People.jpg', true); |
|
|
|
|
xhr.responseType = 'blob'; |
|
|
|
|
xhr.onload = function(e) { |
|
|
|
|
done.resolve(this.response); |
|
|
|
|
}; |
|
|
|
|
xhr.send(); |
|
|
|
|
|
|
|
|
|
xhr2.open('GET', 'demoassets/people2.jpg', true); |
|
|
|
|
xhr2.open('GET', 'demoassets/People2.jpg', true); |
|
|
|
|
xhr2.responseType = 'blob'; |
|
|
|
|
xhr2.onload = function(e) { |
|
|
|
|
dtwo.resolve(this.response); |
|
|
|
@ -139,8 +139,8 @@ $(function(){
|
|
|
|
|
|
|
|
|
|
$('#example-images').click(function(){ |
|
|
|
|
|
|
|
|
|
$('#dropzone1').html('<img src="demoassets/people.jpg"/>'); |
|
|
|
|
$('#dropzone2').html('<img src="demoassets/people2.jpg"/>'); |
|
|
|
|
$('#dropzone1').html('<img src="demoassets/People.jpg"/>'); |
|
|
|
|
$('#dropzone2').html('<img src="demoassets/People2.jpg"/>'); |
|
|
|
|
|
|
|
|
|
$.when(done, dtwo).done(function(file, file1){ |
|
|
|
|
resembleControl = resemble(file).compareTo(file1).onComplete(onComplete); |
|
|
|
|