File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ <h2>Result</h2>
111111 < button type ="button " id ="cancel "> Cancel</ button >
112112 </ p >
113113 < div id ="result ">
114- < p >
114+ < p style =" display: none; " >
115115 This demo works only in browsers with support for the
116116 < a href ="https://developer.mozilla.org/en/DOM/window.URL "> URL</ a > or
117117 < a href ="https://developer.mozilla.org/en/DOM/FileReader "> FileReader</ a >
Original file line number Diff line number Diff line change @@ -193,14 +193,16 @@ $(function () {
193193 if ( url ) displayImage ( url )
194194 }
195195
196- // Hide URL/FileReader API requirement message in capable browsers :
196+ // Show the URL/FileReader API requirement message if not supported :
197197 if (
198198 window . createObjectURL ||
199199 window . URL ||
200200 window . webkitURL ||
201201 window . FileReader
202202 ) {
203- result . children ( ) . hide ( )
203+ result . children ( ) . remove ( )
204+ } else {
205+ result . children ( ) . show ( )
204206 }
205207
206208 $ ( document )
You can’t perform that action at this time.
0 commit comments