Skip to content

Commit 271ca6a

Browse files
committed
Fixed last merge.
1 parent 4faf642 commit 271ca6a

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

index.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE HTML>
22
<!--
33
/*
4-
* JavaScript Load Image Demo 1.3
4+
* JavaScript Load Image Demo 1.3.1
55
* https://github.com/blueimp/JavaScript-Load-Image
66
*
77
* Copyright 2011, Sebastian Tschan
@@ -84,11 +84,8 @@ <h2>Result</h2>
8484
(e.dataTransfer || e.target).files[0],
8585
function (img) {
8686
if (!(img.src || img instanceof HTMLCanvasElement)) {
87-
img = $('<p>'+
88-
'<span class="label label-important">Error</span>' +
89-
' <span>Loading image file failed</span>'+
90-
'</p>
91-
);
87+
img = $('<div><span class="label label-important">Error</span>' +
88+
' <span>Loading image file failed</span></div>');
9289
}
9390
result.children().replaceWith(img);
9491
},
@@ -98,10 +95,8 @@ <h2>Result</h2>
9895
}
9996
)) {
10097
result.children().replaceWith(
101-
$(
102-
'<span class="label label-important">Error</span>' +
103-
' <span>Your browser does not support the URL or FileReader API.</span>'
104-
)
98+
$('<div><span class="label label-important">Error</span>' +
99+
' <span>Your browser does not support the URL or FileReader API.</span></div>')
105100
);
106101
}
107102
};

0 commit comments

Comments
 (0)