card-mod-script 0.13.3 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/script/decko/components.js.coffee +3 -0
- data/assets/script/decko/decko.js.coffee +0 -15
- data/assets/script/decko/editor.js.coffee +3 -1
- data/assets/script/decko/filter.js.coffee +13 -6
- data/assets/script/decko/mod.js.coffee +2 -8
- data/assets/script/{script_pointer_config.js.coffee → decko/pointer_config.js.coffee} +1 -2
- data/assets/script/{script_pointer_list_editor.js.coffee → decko/pointer_list_editor.js.coffee} +0 -0
- data/assets/script/decko/slot.js.coffee +2 -2
- data/assets/script/decko/slot_ready.js.coffee +1 -0
- data/assets/script/decko/slotter.js.coffee +23 -31
- data/assets/script/decko/type_editor.js.coffee +21 -0
- data/assets/script/decko/upload.js.coffee +12 -5
- data/assets/script/manifest.yml +15 -2
- data/set/abstract/00_script.rb +30 -31
- data/set/abstract/01_asset_script.rb +0 -16
- data/set/abstract/{script_asset_list.rb → script_group.rb} +12 -13
- data/set/all/head_javascript.rb +4 -5
- data/set/right/script.rb +1 -14
- data/set/type/local_script_folder_group.rb +2 -2
- data/set/type/local_script_manifest_group.rb +1 -1
- data/set/type_plus_right/mod/script.rb +56 -0
- data/set/type_plus_right/set/script.rb +7 -0
- data/vendor/jquery_file_upload/LICENSE.txt +11 -12
- data/vendor/jquery_file_upload/README.md +189 -72
- data/vendor/jquery_file_upload/SECURITY.md +227 -0
- data/vendor/jquery_file_upload/VULNERABILITIES.md +118 -0
- data/vendor/jquery_file_upload/cors/postmessage.html +68 -58
- data/vendor/jquery_file_upload/cors/result.html +12 -10
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +24 -13
- data/vendor/jquery_file_upload/css/jquery.fileupload.css +3 -4
- data/vendor/jquery_file_upload/docker-compose.yml +55 -0
- data/vendor/jquery_file_upload/index.html +332 -230
- data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +109 -109
- data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +81 -73
- data/vendor/jquery_file_upload/js/demo.js +75 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +82 -94
- data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +321 -300
- data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +138 -146
- data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +737 -692
- data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +91 -97
- data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +82 -94
- data/vendor/jquery_file_upload/js/jquery.fileupload.js +1569 -1451
- data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +208 -205
- data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +397 -340
- data/vendor/jquery_file_upload/package-lock.json +6853 -0
- data/vendor/jquery_file_upload/package.json +71 -10
- data/vendor/jquery_file_upload/server/gae-python/app.yaml +11 -10
- data/vendor/jquery_file_upload/server/php/Dockerfile +23 -17
- data/vendor/jquery_file_upload/server/php/UploadHandler.php +206 -137
- data/vendor/jquery_file_upload/server/php/php.ini +5 -0
- data/vendor/jquery_file_upload/test/index.html +36 -159
- data/vendor/jquery_file_upload/test/unit.js +989 -0
- data/vendor/jquery_file_upload/test/vendor/chai.js +10854 -0
- data/vendor/jquery_file_upload/test/vendor/mocha.css +325 -0
- data/vendor/jquery_file_upload/test/vendor/mocha.js +18178 -0
- data/vendor/jquery_file_upload/wdio/LICENSE.txt +20 -0
- data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
- data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
- data/vendor/jquery_file_upload/wdio/conf/chrome.js +40 -0
- data/vendor/jquery_file_upload/wdio/conf/firefox.js +25 -0
- data/vendor/jquery_file_upload/wdio/hooks/index.js +36 -0
- data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +79 -0
- data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +25 -0
- data/vendor/jquery_file_upload/wdio/wdio.conf.js +4 -0
- metadata +34 -52
- data/file/mod_script_script_decko_machine_output/file.js +0 -2685
- data/file/mod_script_script_jquery_machine_output/file.js +0 -12924
- data/lib/javascript/script_html5shiv_printshiv.js +0 -1
- data/set/self/script_html5shiv_printshiv.rb +0 -11
- data/set/self/script_mods.rb +0 -1
- data/set/type/mod_script_assets.rb +0 -21
- data/vendor/jquery_file_upload/CONTRIBUTING.md +0 -15
- data/vendor/jquery_file_upload/angularjs.html +0 -211
- data/vendor/jquery_file_upload/basic-plus.html +0 -226
- data/vendor/jquery_file_upload/basic.html +0 -136
- data/vendor/jquery_file_upload/bower-version-update.js +0 -16
- data/vendor/jquery_file_upload/bower.json +0 -64
- data/vendor/jquery_file_upload/css/jquery-ui-demo-ie8.css +0 -21
- data/vendor/jquery_file_upload/css/jquery-ui-demo.css +0 -67
- data/vendor/jquery_file_upload/css/style.css +0 -15
- data/vendor/jquery_file_upload/jquery-ui.html +0 -252
- data/vendor/jquery_file_upload/js/app.js +0 -101
- data/vendor/jquery_file_upload/js/jquery.fileupload-angular.js +0 -437
- data/vendor/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +0 -161
- data/vendor/jquery_file_upload/js/main.js +0 -75
- data/vendor/jquery_file_upload/server/gae-go/app/main.go +0 -361
- data/vendor/jquery_file_upload/server/gae-go/app.yaml +0 -12
- data/vendor/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
- data/vendor/jquery_file_upload/server/gae-go/static/robots.txt +0 -2
- data/vendor/jquery_file_upload/server/php/docker-compose.yml +0 -9
- data/vendor/jquery_file_upload/test/test.js +0 -1292
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<!DOCTYPE
|
|
1
|
+
<!DOCTYPE html>
|
|
2
2
|
<!--
|
|
3
3
|
/*
|
|
4
|
-
* jQuery File Upload
|
|
4
|
+
* jQuery File Upload Demo
|
|
5
5
|
* https://github.com/blueimp/jQuery-File-Upload
|
|
6
6
|
*
|
|
7
7
|
* Copyright 2010, Sebastian Tschan
|
|
@@ -12,244 +12,346 @@
|
|
|
12
12
|
*/
|
|
13
13
|
-->
|
|
14
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</title>
|
|
22
|
-
<meta
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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</title>
|
|
22
|
+
<meta
|
|
23
|
+
name="description"
|
|
24
|
+
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."
|
|
25
|
+
/>
|
|
26
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
27
|
+
<!-- Bootstrap styles -->
|
|
28
|
+
<link
|
|
29
|
+
rel="stylesheet"
|
|
30
|
+
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
|
|
31
|
+
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
|
|
32
|
+
crossorigin="anonymous"
|
|
33
|
+
/>
|
|
34
|
+
<!-- Generic page styles -->
|
|
35
|
+
<style>
|
|
36
|
+
#navigation {
|
|
37
|
+
margin: 10px 0;
|
|
38
|
+
}
|
|
39
|
+
@media (max-width: 767px) {
|
|
40
|
+
#title,
|
|
41
|
+
#description {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
</style>
|
|
46
|
+
<!-- blueimp Gallery styles -->
|
|
47
|
+
<link
|
|
48
|
+
rel="stylesheet"
|
|
49
|
+
href="https://blueimp.github.io/Gallery/css/blueimp-gallery.min.css"
|
|
50
|
+
/>
|
|
51
|
+
<!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
|
|
52
|
+
<link rel="stylesheet" href="css/jquery.fileupload.css" />
|
|
53
|
+
<link rel="stylesheet" href="css/jquery.fileupload-ui.css" />
|
|
54
|
+
<!-- CSS adjustments for browsers with JavaScript disabled -->
|
|
55
|
+
<noscript
|
|
56
|
+
><link rel="stylesheet" href="css/jquery.fileupload-noscript.css"
|
|
57
|
+
/></noscript>
|
|
58
|
+
<noscript
|
|
59
|
+
><link rel="stylesheet" href="css/jquery.fileupload-ui-noscript.css"
|
|
60
|
+
/></noscript>
|
|
61
|
+
</head>
|
|
62
|
+
<body>
|
|
39
63
|
<div class="container">
|
|
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
|
-
</blockquote>
|
|
74
|
-
<br>
|
|
75
|
-
<!-- The file upload form used as target for the file upload widget -->
|
|
76
|
-
<form id="fileupload" action="https://jquery-file-upload.appspot.com/" method="POST" enctype="multipart/form-data">
|
|
64
|
+
<ul class="nav nav-tabs" id="navigation">
|
|
65
|
+
<li>
|
|
66
|
+
<a href="https://github.com/blueimp/jQuery-File-Upload">Project</a>
|
|
67
|
+
</li>
|
|
68
|
+
<li class="active">
|
|
69
|
+
<a href="#">Demo</a>
|
|
70
|
+
</li>
|
|
71
|
+
<li>
|
|
72
|
+
<a href="https://github.com/blueimp/jQuery-File-Upload/wiki">Wiki</a>
|
|
73
|
+
</li>
|
|
74
|
+
<li>
|
|
75
|
+
<a href="https://blueimp.net">Author</a>
|
|
76
|
+
</li>
|
|
77
|
+
</ul>
|
|
78
|
+
<h1 id="title">jQuery File Upload Demo</h1>
|
|
79
|
+
<blockquote id="description">
|
|
80
|
+
<p>
|
|
81
|
+
File Upload widget with multiple file selection, drag&drop
|
|
82
|
+
support, progress bars, validation and preview images, audio and video
|
|
83
|
+
for jQuery.<br />
|
|
84
|
+
Supports cross-domain, chunked and resumable file uploads and
|
|
85
|
+
client-side image resizing.<br />
|
|
86
|
+
Works with any server-side platform (PHP, Python, Ruby on Rails, Java,
|
|
87
|
+
Node.js, Go etc.) that supports standard HTML form file uploads.
|
|
88
|
+
</p>
|
|
89
|
+
</blockquote>
|
|
90
|
+
<!-- The file upload form used as target for the file upload widget -->
|
|
91
|
+
<form
|
|
92
|
+
id="fileupload"
|
|
93
|
+
action="https://jquery-file-upload.appspot.com/"
|
|
94
|
+
method="POST"
|
|
95
|
+
enctype="multipart/form-data"
|
|
96
|
+
>
|
|
77
97
|
<!-- Redirect browsers with JavaScript disabled to the origin page -->
|
|
78
|
-
<noscript
|
|
98
|
+
<noscript
|
|
99
|
+
><input
|
|
100
|
+
type="hidden"
|
|
101
|
+
name="redirect"
|
|
102
|
+
value="https://blueimp.github.io/jQuery-File-Upload/"
|
|
103
|
+
/></noscript>
|
|
79
104
|
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
|
|
80
105
|
<div class="row fileupload-buttonbar">
|
|
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
|
-
|
|
106
|
+
<div class="col-lg-7">
|
|
107
|
+
<!-- The fileinput-button span is used to style the file input field as button -->
|
|
108
|
+
<span class="btn btn-success fileinput-button">
|
|
109
|
+
<i class="glyphicon glyphicon-plus"></i>
|
|
110
|
+
<span>Add files...</span>
|
|
111
|
+
<input type="file" name="files[]" multiple />
|
|
112
|
+
</span>
|
|
113
|
+
<button type="submit" class="btn btn-primary start">
|
|
114
|
+
<i class="glyphicon glyphicon-upload"></i>
|
|
115
|
+
<span>Start upload</span>
|
|
116
|
+
</button>
|
|
117
|
+
<button type="reset" class="btn btn-warning cancel">
|
|
118
|
+
<i class="glyphicon glyphicon-ban-circle"></i>
|
|
119
|
+
<span>Cancel upload</span>
|
|
120
|
+
</button>
|
|
121
|
+
<button type="button" class="btn btn-danger delete">
|
|
122
|
+
<i class="glyphicon glyphicon-trash"></i>
|
|
123
|
+
<span>Delete selected</span>
|
|
124
|
+
</button>
|
|
125
|
+
<input type="checkbox" class="toggle" />
|
|
126
|
+
<!-- The global file processing state -->
|
|
127
|
+
<span class="fileupload-process"></span>
|
|
128
|
+
</div>
|
|
129
|
+
<!-- The global progress state -->
|
|
130
|
+
<div class="col-lg-5 fileupload-progress fade">
|
|
131
|
+
<!-- The global progress bar -->
|
|
132
|
+
<div
|
|
133
|
+
class="progress progress-striped active"
|
|
134
|
+
role="progressbar"
|
|
135
|
+
aria-valuemin="0"
|
|
136
|
+
aria-valuemax="100"
|
|
137
|
+
>
|
|
138
|
+
<div
|
|
139
|
+
class="progress-bar progress-bar-success"
|
|
140
|
+
style="width: 0%;"
|
|
141
|
+
></div>
|
|
112
142
|
</div>
|
|
143
|
+
<!-- The extended global progress state -->
|
|
144
|
+
<div class="progress-extended"> </div>
|
|
145
|
+
</div>
|
|
113
146
|
</div>
|
|
114
147
|
<!-- The table listing the files available for upload/download -->
|
|
115
|
-
<table role="presentation" class="table table-striped"
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
148
|
+
<table role="presentation" class="table table-striped">
|
|
149
|
+
<tbody class="files"></tbody>
|
|
150
|
+
</table>
|
|
151
|
+
</form>
|
|
152
|
+
<div class="panel panel-default">
|
|
119
153
|
<div class="panel-heading">
|
|
120
|
-
|
|
154
|
+
<h3 class="panel-title">Demo Notes</h3>
|
|
121
155
|
</div>
|
|
122
156
|
<div class="panel-body">
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
157
|
+
<ul>
|
|
158
|
+
<li>
|
|
159
|
+
The maximum file size for uploads in this demo is
|
|
160
|
+
<strong>999 KB</strong> (default file size is unlimited).
|
|
161
|
+
</li>
|
|
162
|
+
<li>
|
|
163
|
+
Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in
|
|
164
|
+
this demo (by default there is no file type restriction).
|
|
165
|
+
</li>
|
|
166
|
+
<li>
|
|
167
|
+
Uploaded files will be deleted automatically after
|
|
168
|
+
<strong>5 minutes or less</strong> (demo files are stored in
|
|
169
|
+
memory).
|
|
170
|
+
</li>
|
|
171
|
+
<li>
|
|
172
|
+
You can <strong>drag & drop</strong> files from your desktop
|
|
173
|
+
on this webpage (see
|
|
174
|
+
<a
|
|
175
|
+
href="https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support"
|
|
176
|
+
>Browser support</a
|
|
177
|
+
>).
|
|
178
|
+
</li>
|
|
179
|
+
<li>
|
|
180
|
+
Please refer to the
|
|
181
|
+
<a href="https://github.com/blueimp/jQuery-File-Upload"
|
|
182
|
+
>project website</a
|
|
183
|
+
>
|
|
184
|
+
and
|
|
185
|
+
<a href="https://github.com/blueimp/jQuery-File-Upload/wiki"
|
|
186
|
+
>documentation</a
|
|
187
|
+
>
|
|
188
|
+
for more information.
|
|
189
|
+
</li>
|
|
190
|
+
<li>
|
|
191
|
+
Built with the
|
|
192
|
+
<a href="https://getbootstrap.com/">Bootstrap</a> CSS framework
|
|
193
|
+
and Icons from <a href="https://glyphicons.com/">Glyphicons</a>.
|
|
194
|
+
</li>
|
|
195
|
+
</ul>
|
|
131
196
|
</div>
|
|
197
|
+
</div>
|
|
132
198
|
</div>
|
|
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
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
199
|
+
<!-- The blueimp Gallery widget -->
|
|
200
|
+
<div
|
|
201
|
+
id="blueimp-gallery"
|
|
202
|
+
class="blueimp-gallery blueimp-gallery-controls"
|
|
203
|
+
aria-label="image gallery"
|
|
204
|
+
aria-modal="true"
|
|
205
|
+
role="dialog"
|
|
206
|
+
data-filter=":even"
|
|
207
|
+
>
|
|
208
|
+
<div class="slides" aria-live="polite"></div>
|
|
209
|
+
<h3 class="title"></h3>
|
|
210
|
+
<a
|
|
211
|
+
class="prev"
|
|
212
|
+
aria-controls="blueimp-gallery"
|
|
213
|
+
aria-label="previous slide"
|
|
214
|
+
aria-keyshortcuts="ArrowLeft"
|
|
215
|
+
></a>
|
|
216
|
+
<a
|
|
217
|
+
class="next"
|
|
218
|
+
aria-controls="blueimp-gallery"
|
|
219
|
+
aria-label="next slide"
|
|
220
|
+
aria-keyshortcuts="ArrowRight"
|
|
221
|
+
></a>
|
|
222
|
+
<a
|
|
223
|
+
class="close"
|
|
224
|
+
aria-controls="blueimp-gallery"
|
|
225
|
+
aria-label="close"
|
|
226
|
+
aria-keyshortcuts="Escape"
|
|
227
|
+
></a>
|
|
228
|
+
<a
|
|
229
|
+
class="play-pause"
|
|
230
|
+
aria-controls="blueimp-gallery"
|
|
231
|
+
aria-label="play slideshow"
|
|
232
|
+
aria-keyshortcuts="Space"
|
|
233
|
+
aria-pressed="false"
|
|
234
|
+
role="button"
|
|
235
|
+
></a>
|
|
236
|
+
<ol class="indicator"></ol>
|
|
237
|
+
</div>
|
|
238
|
+
<!-- The template to display files available for upload -->
|
|
239
|
+
<script id="template-upload" type="text/x-tmpl">
|
|
240
|
+
{% for (var i=0, file; file=o.files[i]; i++) { %}
|
|
241
|
+
<tr class="template-upload fade{%=o.options.loadImageFileTypes.test(file.type)?' image':''%}">
|
|
242
|
+
<td>
|
|
243
|
+
<span class="preview"></span>
|
|
244
|
+
</td>
|
|
245
|
+
<td>
|
|
246
|
+
<p class="name">{%=file.name%}</p>
|
|
247
|
+
<strong class="error text-danger"></strong>
|
|
248
|
+
</td>
|
|
249
|
+
<td>
|
|
250
|
+
<p class="size">Processing...</p>
|
|
251
|
+
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
|
|
252
|
+
</td>
|
|
253
|
+
<td>
|
|
254
|
+
{% if (!o.options.autoUpload && o.options.edit && o.options.loadImageFileTypes.test(file.type)) { %}
|
|
255
|
+
<button class="btn btn-success edit" data-index="{%=i%}" disabled>
|
|
256
|
+
<i class="glyphicon glyphicon-edit"></i>
|
|
257
|
+
<span>Edit</span>
|
|
258
|
+
</button>
|
|
259
|
+
{% } %}
|
|
260
|
+
{% if (!i && !o.options.autoUpload) { %}
|
|
261
|
+
<button class="btn btn-primary start" disabled>
|
|
262
|
+
<i class="glyphicon glyphicon-upload"></i>
|
|
263
|
+
<span>Start</span>
|
|
264
|
+
</button>
|
|
265
|
+
{% } %}
|
|
266
|
+
{% if (!i) { %}
|
|
267
|
+
<button class="btn btn-warning cancel">
|
|
268
|
+
<i class="glyphicon glyphicon-ban-circle"></i>
|
|
269
|
+
<span>Cancel</span>
|
|
270
|
+
</button>
|
|
271
|
+
{% } %}
|
|
272
|
+
</td>
|
|
273
|
+
</tr>
|
|
274
|
+
{% } %}
|
|
275
|
+
</script>
|
|
276
|
+
<!-- The template to display files available for download -->
|
|
277
|
+
<script id="template-download" type="text/x-tmpl">
|
|
278
|
+
{% for (var i=0, file; file=o.files[i]; i++) { %}
|
|
279
|
+
<tr class="template-download fade{%=file.thumbnailUrl?' image':''%}">
|
|
280
|
+
<td>
|
|
281
|
+
<span class="preview">
|
|
282
|
+
{% if (file.thumbnailUrl) { %}
|
|
283
|
+
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
|
|
284
|
+
{% } %}
|
|
285
|
+
</span>
|
|
286
|
+
</td>
|
|
287
|
+
<td>
|
|
288
|
+
<p class="name">
|
|
289
|
+
{% if (file.url) { %}
|
|
290
|
+
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
|
|
291
|
+
{% } else { %}
|
|
292
|
+
<span>{%=file.name%}</span>
|
|
293
|
+
{% } %}
|
|
294
|
+
</p>
|
|
295
|
+
{% if (file.error) { %}
|
|
296
|
+
<div><span class="label label-danger">Error</span> {%=file.error%}</div>
|
|
297
|
+
{% } %}
|
|
298
|
+
</td>
|
|
299
|
+
<td>
|
|
300
|
+
<span class="size">{%=o.formatFileSize(file.size)%}</span>
|
|
301
|
+
</td>
|
|
302
|
+
<td>
|
|
303
|
+
{% if (file.deleteUrl) { %}
|
|
304
|
+
<button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
|
|
305
|
+
<i class="glyphicon glyphicon-trash"></i>
|
|
306
|
+
<span>Delete</span>
|
|
307
|
+
</button>
|
|
308
|
+
<input type="checkbox" name="delete" value="1" class="toggle">
|
|
309
|
+
{% } else { %}
|
|
310
|
+
<button class="btn btn-warning cancel">
|
|
311
|
+
<i class="glyphicon glyphicon-ban-circle"></i>
|
|
312
|
+
<span>Cancel</span>
|
|
313
|
+
</button>
|
|
314
|
+
{% } %}
|
|
315
|
+
</td>
|
|
316
|
+
</tr>
|
|
317
|
+
{% } %}
|
|
318
|
+
</script>
|
|
319
|
+
<script
|
|
320
|
+
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"
|
|
321
|
+
integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ"
|
|
322
|
+
crossorigin="anonymous"
|
|
323
|
+
></script>
|
|
324
|
+
<!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
|
|
325
|
+
<script src="js/vendor/jquery.ui.widget.js"></script>
|
|
326
|
+
<!-- The Templates plugin is included to render the upload/download listings -->
|
|
327
|
+
<script src="https://blueimp.github.io/JavaScript-Templates/js/tmpl.min.js"></script>
|
|
328
|
+
<!-- The Load Image plugin is included for the preview images and image resizing functionality -->
|
|
329
|
+
<script src="https://blueimp.github.io/JavaScript-Load-Image/js/load-image.all.min.js"></script>
|
|
330
|
+
<!-- The Canvas to Blob plugin is included for image resizing functionality -->
|
|
331
|
+
<script src="https://blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
|
|
332
|
+
<!-- blueimp Gallery script -->
|
|
333
|
+
<script src="https://blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js"></script>
|
|
334
|
+
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
|
|
335
|
+
<script src="js/jquery.iframe-transport.js"></script>
|
|
336
|
+
<!-- The basic File Upload plugin -->
|
|
337
|
+
<script src="js/jquery.fileupload.js"></script>
|
|
338
|
+
<!-- The File Upload processing plugin -->
|
|
339
|
+
<script src="js/jquery.fileupload-process.js"></script>
|
|
340
|
+
<!-- The File Upload image preview & resize plugin -->
|
|
341
|
+
<script src="js/jquery.fileupload-image.js"></script>
|
|
342
|
+
<!-- The File Upload audio preview plugin -->
|
|
343
|
+
<script src="js/jquery.fileupload-audio.js"></script>
|
|
344
|
+
<!-- The File Upload video preview plugin -->
|
|
345
|
+
<script src="js/jquery.fileupload-video.js"></script>
|
|
346
|
+
<!-- The File Upload validation plugin -->
|
|
347
|
+
<script src="js/jquery.fileupload-validate.js"></script>
|
|
348
|
+
<!-- The File Upload user interface plugin -->
|
|
349
|
+
<script src="js/jquery.fileupload-ui.js"></script>
|
|
350
|
+
<!-- The main application script -->
|
|
351
|
+
<script src="js/demo.js"></script>
|
|
352
|
+
<!-- The XDomainRequest Transport is included for cross-domain file deletion for IE 8 and IE 9 -->
|
|
353
|
+
<!--[if (gte IE 8)&(lt IE 10)]>
|
|
354
|
+
<script src="js/cors/jquery.xdr-transport.js"></script>
|
|
355
|
+
<![endif]-->
|
|
356
|
+
</body>
|
|
255
357
|
</html>
|