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 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 } ;
You can’t perform that action at this time.
0 commit comments