initial commit
[namibia] / public / scripts / blueimp-jQuery-File-Upload / index.html
1 <!DOCTYPE HTML>
2 <!--
3 /*
4  * jQuery File Upload Plugin Demo 6.8
5  * https://github.com/blueimp/jQuery-File-Upload
6  *
7  * Copyright 2010, 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 <meta charset="utf-8">
17 <title>jQuery File Upload Demo</title>
18 <meta name="description" content="File Upload widget with multiple file selection, drag&amp;drop support, progress bar and preview images for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.">
19 <meta name="viewport" content="width=device-width">
20 <!-- Bootstrap CSS Toolkit styles -->
21 <link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap.min.css">
22 <!-- Generic page styles -->
23 <link rel="stylesheet" href="css/style.css">
24 <!-- Bootstrap styles for responsive website layout, supporting different screen sizes -->
25 <link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap-responsive.min.css">
26 <!-- Bootstrap CSS fixes for IE6 -->
27 <!--[if lt IE 7]><link rel="stylesheet" href="http://blueimp.github.com/cdn/css/bootstrap-ie6.min.css"><![endif]-->
28 <!-- Bootstrap Image Gallery styles -->
29 <link rel="stylesheet" href="http://blueimp.github.com/Bootstrap-Image-Gallery/css/bootstrap-image-gallery.min.css">
30 <!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
31 <link rel="stylesheet" href="css/jquery.fileupload-ui.css">
32 <!-- Shim to make HTML5 elements usable in older Internet Explorer versions -->
33 <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
34 </head>
35 <body>
36 <div class="navbar navbar-fixed-top">
37     <div class="navbar-inner">
38         <div class="container">
39             <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
40                 <span class="icon-bar"></span>
41                 <span class="icon-bar"></span>
42                 <span class="icon-bar"></span>
43             </a>
44             <a class="brand" href="https://github.com/blueimp/jQuery-File-Upload">jQuery File Upload</a>
45             <div class="nav-collapse">
46                 <ul class="nav">
47                     <li class="active"><a href="#">Demo</a></li>
48                     <li><a href="https://github.com/blueimp/jQuery-File-Upload/downloads">Downloads</a></li>
49                     <li><a href="https://github.com/blueimp/jQuery-File-Upload">Source Code</a></li>
50                     <li><a href="https://github.com/blueimp/jQuery-File-Upload/wiki">Documentation</a></li>
51                     <li><a href="https://github.com/blueimp/jQuery-File-Upload/issues">Issues</a></li>
52                     <li><a href="test/">Test</a></li>
53                     <li><a href="https://blueimp.net">&copy; Sebastian Tschan</a></li>
54                 </ul>
55             </div>
56         </div>
57     </div>
58 </div>
59 <div class="container">
60     <div class="page-header">
61         <h1>jQuery File Upload Demo</h1>
62     </div>
63     <blockquote>
64         <p>File Upload widget with multiple file selection, drag&amp;drop support, progress bars and preview images for jQuery.<br>
65         Supports cross-domain, chunked and resumable file uploads and client-side image resizing.<br>
66         Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.</p>
67     </blockquote>
68     <br>
69     <!-- The file upload form used as target for the file upload widget -->
70     <form id="fileupload" action="server/php/" method="POST" enctype="multipart/form-data">
71         <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
72         <div class="row fileupload-buttonbar">
73             <div class="span7">
74                 <!-- The fileinput-button span is used to style the file input field as button -->
75                 <span class="btn btn-success fileinput-button">
76                     <i class="icon-plus icon-white"></i>
77                     <span>Add files...</span>
78                     <input type="file" name="files[]" multiple>
79                 </span>
80                 <button type="submit" class="btn btn-primary start">
81                     <i class="icon-upload icon-white"></i>
82                     <span>Start upload</span>
83                 </button>
84                 <button type="reset" class="btn btn-warning cancel">
85                     <i class="icon-ban-circle icon-white"></i>
86                     <span>Cancel upload</span>
87                 </button>
88                 <button type="button" class="btn btn-danger delete">
89                     <i class="icon-trash icon-white"></i>
90                     <span>Delete</span>
91                 </button>
92                 <input type="checkbox" class="toggle">
93             </div>
94             <!-- The global progress information -->
95             <div class="span5 fileupload-progress fade">
96                 <!-- The global progress bar -->
97                 <div class="progress progress-success progress-striped active">
98                     <div class="bar" style="width:0%;"></div>
99                 </div>
100                 <!-- The extended global progress information -->
101                 <div class="progress-extended">&nbsp;</div>
102             </div>
103         </div>
104         <!-- The loading indicator is shown during file processing -->
105         <div class="fileupload-loading"></div>
106         <br>
107         <!-- The table listing the files available for upload/download -->
108         <table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody></table>
109     </form>
110     <br>
111     <div class="well">
112         <h3>Demo Notes</h3>
113         <ul>
114             <li>The maximum file size for uploads in this demo is <strong>5 MB</strong> (default file size is unlimited).</li>
115             <li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
116             <li>Uploaded files will be deleted automatically after <strong>5 minutes</strong> (demo setting).</li>
117             <li>You can <strong>drag &amp; drop</strong> files from your desktop on this webpage with Google Chrome, Mozilla Firefox and Apple Safari.</li>
118             <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>
119             <li>Built with Twitter's <a href="http://twitter.github.com/bootstrap/">Bootstrap</a> toolkit and Icons from <a href="http://glyphicons.com/">Glyphicons</a>.</li>
120         </ul>
121     </div>
122 </div>
123 <!-- modal-gallery is the modal dialog used for the image gallery -->
124 <div id="modal-gallery" class="modal modal-gallery hide fade" data-filter=":odd">
125     <div class="modal-header">
126         <a class="close" data-dismiss="modal">&times;</a>
127         <h3 class="modal-title"></h3>
128     </div>
129     <div class="modal-body"><div class="modal-image"></div></div>
130     <div class="modal-footer">
131         <a class="btn modal-download" target="_blank">
132             <i class="icon-download"></i>
133             <span>Download</span>
134         </a>
135         <a class="btn btn-success modal-play modal-slideshow" data-slideshow="5000">
136             <i class="icon-play icon-white"></i>
137             <span>Slideshow</span>
138         </a>
139         <a class="btn btn-info modal-prev">
140             <i class="icon-arrow-left icon-white"></i>
141             <span>Previous</span>
142         </a>
143         <a class="btn btn-primary modal-next">
144             <span>Next</span>
145             <i class="icon-arrow-right icon-white"></i>
146         </a>
147     </div>
148 </div>
149 <!-- The template to display files available for upload -->
150 <script id="template-upload" type="text/x-tmpl">
151 {% for (var i=0, file; file=o.files[i]; i++) { %}
152     <tr class="template-upload fade">
153         <td class="preview"><span class="fade"></span></td>
154         <td class="name"><span>{%=file.name%}</span></td>
155         <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
156         {% if (file.error) { %}
157             <td class="error" colspan="2"><span class="label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
158         {% } else if (o.files.valid && !i) { %}
159             <td>
160                 <div class="progress progress-success progress-striped active"><div class="bar" style="width:0%;"></div></div>
161             </td>
162             <td class="start">{% if (!o.options.autoUpload) { %}
163                 <button class="btn btn-primary">
164                     <i class="icon-upload icon-white"></i>
165                     <span>{%=locale.fileupload.start%}</span>
166                 </button>
167             {% } %}</td>
168         {% } else { %}
169             <td colspan="2"></td>
170         {% } %}
171         <td class="cancel">{% if (!i) { %}
172             <button class="btn btn-warning">
173                 <i class="icon-ban-circle icon-white"></i>
174                 <span>{%=locale.fileupload.cancel%}</span>
175             </button>
176         {% } %}</td>
177     </tr>
178 {% } %}
179 </script>
180 <!-- The template to display files available for download -->
181 <script id="template-download" type="text/x-tmpl">
182 {% for (var i=0, file; file=o.files[i]; i++) { %}
183     <tr class="template-download fade">
184         {% if (file.error) { %}
185             <td></td>
186             <td class="name"><span>{%=file.name%}</span></td>
187             <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
188             <td class="error" colspan="2"><span class="label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
189         {% } else { %}
190             <td class="preview">{% if (file.thumbnail_url) { %}
191                 <a href="{%=file.url%}" title="{%=file.name%}" rel="gallery" download="{%=file.name%}"><img src="{%=file.thumbnail_url%}"></a>
192             {% } %}</td>
193             <td class="name">
194                 <a href="{%=file.url%}" title="{%=file.name%}" rel="{%=file.thumbnail_url&&'gallery'%}" download="{%=file.name%}">{%=file.name%}</a>
195             </td>
196             <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
197             <td colspan="2"></td>
198         {% } %}
199         <td class="delete">
200             <button class="btn btn-danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}">
201                 <i class="icon-trash icon-white"></i>
202                 <span>{%=locale.fileupload.destroy%}</span>
203             </button>
204             <input type="checkbox" name="delete" value="1">
205         </td>
206     </tr>
207 {% } %}
208 </script>
209 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
210 <!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
211 <script src="js/vendor/jquery.ui.widget.js"></script>
212 <!-- The Templates plugin is included to render the upload/download listings -->
213 <script src="http://blueimp.github.com/JavaScript-Templates/tmpl.min.js"></script>
214 <!-- The Load Image plugin is included for the preview images and image resizing functionality -->
215 <script src="http://blueimp.github.com/JavaScript-Load-Image/load-image.min.js"></script>
216 <!-- The Canvas to Blob plugin is included for image resizing functionality -->
217 <script src="http://blueimp.github.com/JavaScript-Canvas-to-Blob/canvas-to-blob.min.js"></script>
218 <!-- Bootstrap JS and Bootstrap Image Gallery are not required, but included for the demo -->
219 <script src="http://blueimp.github.com/cdn/js/bootstrap.min.js"></script>
220 <script src="http://blueimp.github.com/Bootstrap-Image-Gallery/js/bootstrap-image-gallery.min.js"></script>
221 <!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
222 <script src="js/jquery.iframe-transport.js"></script>
223 <!-- The basic File Upload plugin -->
224 <script src="js/jquery.fileupload.js"></script>
225 <!-- The File Upload file processing plugin -->
226 <script src="js/jquery.fileupload-fp.js"></script>
227 <!-- The File Upload user interface plugin -->
228 <script src="js/jquery.fileupload-ui.js"></script>
229 <!-- The localization script -->
230 <script src="js/locale.js"></script>
231 <!-- The main application script -->
232 <script src="js/main.js"></script>
233 <!-- The XDomainRequest Transport is included for cross-domain file deletion for IE8+ -->
234 <!--[if gte IE 8]><script src="js/cors/jquery.xdr-transport.js"></script><![endif]-->
235 </body> 
236 </html>