File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE HTML>
2
2
<!--
3
3
/*
4
- * JavaScript Load Image Demo 1.3
4
+ * JavaScript Load Image Demo 1.3.1
5
5
* https://github.com/blueimp/JavaScript-Load-Image
6
6
*
7
7
* Copyright 2011, Sebastian Tschan
@@ -84,11 +84,8 @@ <h2>Result</h2>
84
84
( e . dataTransfer || e . target ) . files [ 0 ] ,
85
85
function ( img ) {
86
86
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>' ) ;
92
89
}
93
90
result . children ( ) . replaceWith ( img ) ;
94
91
} ,
@@ -98,10 +95,8 @@ <h2>Result</h2>
98
95
}
99
96
) ) {
100
97
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>' )
105
100
) ;
106
101
}
107
102
} ;
You can’t perform that action at this time.
0 commit comments