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