Administrator
2022-09-14 58d006e05dcf2a20d0ec5367dd03d66a61db6849
提交 | 用户 | 时间
58d006 1 <!DOCTYPE HTML>
A 2 <!--
3 /*
4  * jQuery File Upload Plugin jQuery UI Demo 9.0.1
5  * https://github.com/blueimp/jQuery-File-Upload
6  *
7  * Copyright 2013, Sebastian Tschan
8  * https://blueimp.net
9  *
10  * Licensed under the MIT license:
11  * http://www.opensource.org/licenses/MIT
12  */
13 -->
14 <html lang="en">
15 <head>
16 <!-- Force latest IE rendering engine or ChromeFrame if installed -->
17 <!--[if IE]>
18 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
19 <![endif]-->
20 <meta charset="utf-8">
21 <title>jQuery File Upload Demo - jQuery UI version</title>
22 <meta name="description" content="File Upload widget with multiple file selection, drag&amp;drop support, progress bars, validation and preview images, audio and video for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.">
23 <meta name="viewport" content="width=device-width, initial-scale=1.0">
24 <!-- jQuery UI styles -->
25 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/dark-hive/jquery-ui.css" id="theme">
26 <!-- Demo styles -->
27 <link rel="stylesheet" href="css/demo.css">
28 <!--[if lte IE 8]>
29 <link rel="stylesheet" href="css/demo-ie8.css">
30 <![endif]-->
31 <style>
32 /* Adjust the jQuery UI widget font-size: */
33 .ui-widget {
34     font-size: 0.95em;
35 }
36 </style>
37 <!-- blueimp Gallery styles -->
38 <link rel="stylesheet" href="http://blueimp.github.io/Gallery/css/blueimp-gallery.min.css">
39 <!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
40 <link rel="stylesheet" href="css/jquery.fileupload.css">
41 <link rel="stylesheet" href="css/jquery.fileupload-ui.css">
42 <!-- CSS adjustments for browsers with JavaScript disabled -->
43 <noscript><link rel="stylesheet" href="css/jquery.fileupload-noscript.css"></noscript>
44 <noscript><link rel="stylesheet" href="css/jquery.fileupload-ui-noscript.css"></noscript>
45 </head>
46 <body>
47 <ul class="navigation">
48     <li><h3><a href="https://github.com/blueimp/jQuery-File-Upload">jQuery File Upload</a></h3></li>
49     <li><a href="https://github.com/blueimp/jQuery-File-Upload/tags">Download</a></li>
50     <li><a href="https://github.com/blueimp/jQuery-File-Upload">Source Code</a></li>
51     <li><a href="https://github.com/blueimp/jQuery-File-Upload/wiki">Documentation</a></li>
52     <li><a href="https://blueimp.net">&copy; blueimp.net</a></li>
53 </ul>
54 <h1>jQuery File Upload Demo</h1>
55 <h2>jQuery UI version</h2>
56 <form>
57     <label for="theme-switcher">Theme:</label>
58     <select id="theme-switcher" class="pull-right">
59         <option value="black-tie">Black Tie</option>
60         <option value="blitzer">Blitzer</option>
61         <option value="cupertino">Cupertino</option>
62         <option value="dark-hive" selected>Dark Hive</option>
63         <option value="dot-luv">Dot Luv</option>
64         <option value="eggplant">Eggplant</option>
65         <option value="excite-bike">Excite Bike</option>
66         <option value="flick">Flick</option>
67         <option value="hot-sneaks">Hot sneaks</option>
68         <option value="humanity">Humanity</option>
69         <option value="le-frog">Le Frog</option>
70         <option value="mint-choc">Mint Choc</option>
71         <option value="overcast">Overcast</option>
72         <option value="pepper-grinder">Pepper Grinder</option>
73         <option value="redmond">Redmond</option>
74         <option value="smoothness">Smoothness</option>
75         <option value="south-street">South Street</option>
76         <option value="start">Start</option>
77         <option value="sunny">Sunny</option>
78         <option value="swanky-purse">Swanky Purse</option>
79         <option value="trontastic">Trontastic</option>
80         <option value="ui-darkness">UI Darkness</option>
81         <option value="ui-lightness">UI Lightness</option>
82         <option value="vader">Vader</option>
83     </select>
84 </form>
85 <ul class="navigation">
86     <li><a href="basic.html">Basic</a></li>
87     <li><a href="basic-plus.html">Basic Plus</a></li>
88     <li><a href="index.html">Basic Plus UI</a></li>
89     <li><a href="angularjs.html">AngularJS</a></li>
90     <li class="active"><a href="jquery-ui.html">jQuery UI</a></li>
91 </ul>
92 <blockquote>
93     <p>File Upload widget with multiple file selection, drag&amp;drop support, progress bars, validation and preview images, audio and video for jQuery UI.<br>
94     Supports cross-domain, chunked and resumable file uploads and client-side image resizing.<br>
95     Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.</p>
96 </blockquote>
97 <!-- The file upload form used as target for the file upload widget -->
98 <form id="fileupload" action="//jquery-file-upload.appspot.com/" method="POST" enctype="multipart/form-data">
99     <!-- Redirect browsers with JavaScript disabled to the origin page -->
100     <noscript><input type="hidden" name="redirect" value="http://blueimp.github.io/jQuery-File-Upload/"></noscript>
101     <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
102     <div class="fileupload-buttonbar">
103         <div class="fileupload-buttons">
104             <!-- The fileinput-button span is used to style the file input field as button -->
105             <span class="fileinput-button">
106                 <span>Add files...</span>
107                 <input type="file" name="files[]" multiple>
108             </span>
109             <button type="submit" class="start">Start upload</button>
110             <button type="reset" class="cancel">Cancel upload</button>
111             <button type="button" class="delete">Delete</button>
112             <input type="checkbox" class="toggle">
113             <!-- The global file processing state -->
114             <span class="fileupload-process"></span>
115         </div>
116         <!-- The global progress state -->
117         <div class="fileupload-progress fade" style="display:none">
118             <!-- The global progress bar -->
119             <div class="progress" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
120             <!-- The extended global progress state -->
121             <div class="progress-extended">&nbsp;</div>
122         </div>
123     </div>
124     <!-- The table listing the files available for upload/download -->
125     <table role="presentation"><tbody class="files"></tbody></table>
126 </form>
127 <br>
128 <h3>Demo Notes</h3>
129 <ul>
130     <li>The maximum file size for uploads in this demo is <strong>5 MB</strong> (default file size is unlimited).</li>
131     <li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
132     <li>Uploaded files will be deleted automatically after <strong>5 minutes</strong> (demo setting).</li>
133     <li>You can <strong>drag &amp; drop</strong> files from your desktop on this webpage (see <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support">Browser support</a>).</li>
134     <li>Please refer to the <a href="https://github.com/blueimp/jQuery-File-Upload">project website</a> and <a href="https://github.com/blueimp/jQuery-File-Upload/wiki">documentation</a> for more information.</li>
135     <li>Built with <a href="http://jqueryui.com">jQuery UI</a>.</li>
136 </ul>
137 <!-- The blueimp Gallery widget -->
138 <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
139     <div class="slides"></div>
140     <h3 class="title"></h3>
141     <a class="prev">‹</a>
142     <a class="next">›</a>
143     <a class="close">×</a>
144     <a class="play-pause"></a>
145     <ol class="indicator"></ol>
146 </div>
147 <!-- The template to display files available for upload -->
148 <script id="template-upload" type="text/x-tmpl">
149 {% for (var i=0, file; file=o.files[i]; i++) { %}
150     <tr class="template-upload fade">
151         <td>
152             <span class="preview"></span>
153         </td>
154         <td>
155             <p class="name">{%=file.name%}</p>
156             <strong class="error"></strong>
157         </td>
158         <td>
159             <p class="size">Processing...</p>
160             <div class="progress"></div>
161         </td>
162         <td>
163             {% if (!i && !o.options.autoUpload) { %}
164                 <button class="start" disabled>Start</button>
165             {% } %}
166             {% if (!i) { %}
167                 <button class="cancel">Cancel</button>
168             {% } %}
169         </td>
170     </tr>
171 {% } %}
172 </script>
173 <!-- The template to display files available for download -->
174 <script id="template-download" type="text/x-tmpl">
175 {% for (var i=0, file; file=o.files[i]; i++) { %}
176     <tr class="template-download fade">
177         <td>
178             <span class="preview">
179                 {% if (file.thumbnailUrl) { %}
180                     <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
181                 {% } %}
182             </span>
183         </td>
184         <td>
185             <p class="name">
186                 <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
187             </p>
188             {% if (file.error) { %}
189                 <div><span class="error">Error</span> {%=file.error%}</div>
190             {% } %}
191         </td>
192         <td>
193             <span class="size">{%=o.formatFileSize(file.size)%}</span>
194         </td>
195         <td>
196             <button class="delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>Delete</button>
197             <input type="checkbox" name="delete" value="1" class="toggle">
198         </td>
199     </tr>
200 {% } %}
201 </script>
202 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
203 <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
204 <!-- The Templates plugin is included to render the upload/download listings -->
205 <script src="http://blueimp.github.io/JavaScript-Templates/js/tmpl.min.js"></script>
206 <!-- The Load Image plugin is included for the preview images and image resizing functionality -->
207 <script src="http://blueimp.github.io/JavaScript-Load-Image/js/load-image.min.js"></script>
208 <!-- The Canvas to Blob plugin is included for image resizing functionality -->
209 <script src="http://blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
210 <!-- blueimp Gallery script -->
211 <script src="http://blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js"></script>
212 <!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
213 <script src="js/jquery.iframe-transport.js"></script>
214 <!-- The basic File Upload plugin -->
215 <script src="js/jquery.fileupload.js"></script>
216 <!-- The File Upload processing plugin -->
217 <script src="js/jquery.fileupload-process.js"></script>
218 <!-- The File Upload image preview & resize plugin -->
219 <script src="js/jquery.fileupload-image.js"></script>
220 <!-- The File Upload audio preview plugin -->
221 <script src="js/jquery.fileupload-audio.js"></script>
222 <!-- The File Upload video preview plugin -->
223 <script src="js/jquery.fileupload-video.js"></script>
224 <!-- The File Upload validation plugin -->
225 <script src="js/jquery.fileupload-validate.js"></script>
226 <!-- The File Upload user interface plugin -->
227 <script src="js/jquery.fileupload-ui.js"></script>
228 <!-- The File Upload jQuery UI plugin -->
229 <script src="js/jquery.fileupload-jquery-ui.js"></script>
230 <!-- The main application script -->
231 <script src="js/main.js"></script>
232 <script>
233 // Initialize the jQuery UI theme switcher:
234 $('#theme-switcher').change(function () {
235     var theme = $('#theme');
236     theme.prop(
237         'href',
238         theme.prop('href').replace(
239             /[\w\-]+\/jquery-ui.css/,
240             $(this).val() + '/jquery-ui.css'
241         )
242     );
243 });
244 </script>
245 <!-- The XDomainRequest Transport is included for cross-domain file deletion for IE 8 and IE 9 -->
246 <!--[if (gte IE 8)&(lt IE 10)]>
247 <script src="js/cors/jquery.xdr-transport.js"></script>
248 <![endif]-->
249 </body> 
250 </html>