Browse Source

fixed image ref

pull/6/merge
James Cryer 12 years ago
parent
commit
5ab2f4710e
  1. 8
      demoassets/main.js

8
demoassets/main.js

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

Loading…
Cancel
Save