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.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/assets/script/decko/components.js.coffee +3 -0
  3. data/assets/script/decko/decko.js.coffee +0 -15
  4. data/assets/script/decko/editor.js.coffee +3 -1
  5. data/assets/script/decko/filter.js.coffee +13 -6
  6. data/assets/script/decko/mod.js.coffee +2 -8
  7. data/assets/script/{script_pointer_config.js.coffee → decko/pointer_config.js.coffee} +1 -2
  8. data/assets/script/{script_pointer_list_editor.js.coffee → decko/pointer_list_editor.js.coffee} +0 -0
  9. data/assets/script/decko/slot.js.coffee +2 -2
  10. data/assets/script/decko/slot_ready.js.coffee +1 -0
  11. data/assets/script/decko/slotter.js.coffee +23 -31
  12. data/assets/script/decko/type_editor.js.coffee +21 -0
  13. data/assets/script/decko/upload.js.coffee +12 -5
  14. data/assets/script/manifest.yml +15 -2
  15. data/set/abstract/00_script.rb +30 -31
  16. data/set/abstract/01_asset_script.rb +0 -16
  17. data/set/abstract/{script_asset_list.rb → script_group.rb} +12 -13
  18. data/set/all/head_javascript.rb +4 -5
  19. data/set/right/script.rb +1 -14
  20. data/set/type/local_script_folder_group.rb +2 -2
  21. data/set/type/local_script_manifest_group.rb +1 -1
  22. data/set/type_plus_right/mod/script.rb +56 -0
  23. data/set/type_plus_right/set/script.rb +7 -0
  24. data/vendor/jquery_file_upload/LICENSE.txt +11 -12
  25. data/vendor/jquery_file_upload/README.md +189 -72
  26. data/vendor/jquery_file_upload/SECURITY.md +227 -0
  27. data/vendor/jquery_file_upload/VULNERABILITIES.md +118 -0
  28. data/vendor/jquery_file_upload/cors/postmessage.html +68 -58
  29. data/vendor/jquery_file_upload/cors/result.html +12 -10
  30. data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +24 -13
  31. data/vendor/jquery_file_upload/css/jquery.fileupload.css +3 -4
  32. data/vendor/jquery_file_upload/docker-compose.yml +55 -0
  33. data/vendor/jquery_file_upload/index.html +332 -230
  34. data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +109 -109
  35. data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +81 -73
  36. data/vendor/jquery_file_upload/js/demo.js +75 -0
  37. data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +82 -94
  38. data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +321 -300
  39. data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +138 -146
  40. data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +737 -692
  41. data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +91 -97
  42. data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +82 -94
  43. data/vendor/jquery_file_upload/js/jquery.fileupload.js +1569 -1451
  44. data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +208 -205
  45. data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +397 -340
  46. data/vendor/jquery_file_upload/package-lock.json +6853 -0
  47. data/vendor/jquery_file_upload/package.json +71 -10
  48. data/vendor/jquery_file_upload/server/gae-python/app.yaml +11 -10
  49. data/vendor/jquery_file_upload/server/php/Dockerfile +23 -17
  50. data/vendor/jquery_file_upload/server/php/UploadHandler.php +206 -137
  51. data/vendor/jquery_file_upload/server/php/php.ini +5 -0
  52. data/vendor/jquery_file_upload/test/index.html +36 -159
  53. data/vendor/jquery_file_upload/test/unit.js +989 -0
  54. data/vendor/jquery_file_upload/test/vendor/chai.js +10854 -0
  55. data/vendor/jquery_file_upload/test/vendor/mocha.css +325 -0
  56. data/vendor/jquery_file_upload/test/vendor/mocha.js +18178 -0
  57. data/vendor/jquery_file_upload/wdio/LICENSE.txt +20 -0
  58. data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
  59. data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
  60. data/vendor/jquery_file_upload/wdio/conf/chrome.js +40 -0
  61. data/vendor/jquery_file_upload/wdio/conf/firefox.js +25 -0
  62. data/vendor/jquery_file_upload/wdio/hooks/index.js +36 -0
  63. data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +79 -0
  64. data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +25 -0
  65. data/vendor/jquery_file_upload/wdio/wdio.conf.js +4 -0
  66. metadata +34 -52
  67. data/file/mod_script_script_decko_machine_output/file.js +0 -2685
  68. data/file/mod_script_script_jquery_machine_output/file.js +0 -12924
  69. data/lib/javascript/script_html5shiv_printshiv.js +0 -1
  70. data/set/self/script_html5shiv_printshiv.rb +0 -11
  71. data/set/self/script_mods.rb +0 -1
  72. data/set/type/mod_script_assets.rb +0 -21
  73. data/vendor/jquery_file_upload/CONTRIBUTING.md +0 -15
  74. data/vendor/jquery_file_upload/angularjs.html +0 -211
  75. data/vendor/jquery_file_upload/basic-plus.html +0 -226
  76. data/vendor/jquery_file_upload/basic.html +0 -136
  77. data/vendor/jquery_file_upload/bower-version-update.js +0 -16
  78. data/vendor/jquery_file_upload/bower.json +0 -64
  79. data/vendor/jquery_file_upload/css/jquery-ui-demo-ie8.css +0 -21
  80. data/vendor/jquery_file_upload/css/jquery-ui-demo.css +0 -67
  81. data/vendor/jquery_file_upload/css/style.css +0 -15
  82. data/vendor/jquery_file_upload/jquery-ui.html +0 -252
  83. data/vendor/jquery_file_upload/js/app.js +0 -101
  84. data/vendor/jquery_file_upload/js/jquery.fileupload-angular.js +0 -437
  85. data/vendor/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +0 -161
  86. data/vendor/jquery_file_upload/js/main.js +0 -75
  87. data/vendor/jquery_file_upload/server/gae-go/app/main.go +0 -361
  88. data/vendor/jquery_file_upload/server/gae-go/app.yaml +0 -12
  89. data/vendor/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
  90. data/vendor/jquery_file_upload/server/gae-go/static/robots.txt +0 -2
  91. data/vendor/jquery_file_upload/server/php/docker-compose.yml +0 -9
  92. data/vendor/jquery_file_upload/test/test.js +0 -1292
@@ -1,7 +1,7 @@
1
- <!DOCTYPE HTML>
1
+ <!DOCTYPE html>
2
2
  <!--
3
3
  /*
4
- * jQuery File Upload Plugin Demo
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 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
- <!-- Bootstrap styles -->
25
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
26
- <!-- Generic page styles -->
27
- <link rel="stylesheet" href="css/style.css">
28
- <!-- blueimp Gallery styles -->
29
- <link rel="stylesheet" href="https://blueimp.github.io/Gallery/css/blueimp-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.css">
32
- <link rel="stylesheet" href="css/jquery.fileupload-ui.css">
33
- <!-- CSS adjustments for browsers with JavaScript disabled -->
34
- <noscript><link rel="stylesheet" href="css/jquery.fileupload-noscript.css"></noscript>
35
- <noscript><link rel="stylesheet" href="css/jquery.fileupload-ui-noscript.css"></noscript>
36
- </head>
37
- <body>
38
- <div class="navbar navbar-default navbar-fixed-top">
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&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."
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
- <div class="navbar-header">
41
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-fixed-top .navbar-collapse">
42
- <span class="icon-bar"></span>
43
- <span class="icon-bar"></span>
44
- <span class="icon-bar"></span>
45
- </button>
46
- <a class="navbar-brand" href="https://github.com/blueimp/jQuery-File-Upload">jQuery File Upload</a>
47
- </div>
48
- <div class="navbar-collapse collapse">
49
- <ul class="nav navbar-nav">
50
- <li><a href="https://github.com/blueimp/jQuery-File-Upload/tags">Download</a></li>
51
- <li><a href="https://github.com/blueimp/jQuery-File-Upload">Source Code</a></li>
52
- <li><a href="https://github.com/blueimp/jQuery-File-Upload/wiki">Documentation</a></li>
53
- <li><a href="https://blueimp.net">&copy; Sebastian Tschan</a></li>
54
- </ul>
55
- </div>
56
- </div>
57
- </div>
58
- <div class="container">
59
- <h1>jQuery File Upload Demo</h1>
60
- <h2 class="lead">Basic Plus UI version</h2>
61
- <ul class="nav nav-tabs">
62
- <li><a href="basic.html">Basic</a></li>
63
- <li><a href="basic-plus.html">Basic Plus</a></li>
64
- <li class="active"><a href="index.html">Basic Plus UI</a></li>
65
- <li><a href="angularjs.html">AngularJS</a></li>
66
- <li><a href="jquery-ui.html">jQuery UI</a></li>
67
- </ul>
68
- <br>
69
- <blockquote>
70
- <p>File Upload widget with multiple file selection, drag&amp;drop support, progress bars, validation and preview images, audio and video for jQuery.<br>
71
- Supports cross-domain, chunked and resumable file uploads and client-side image resizing.<br>
72
- Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.</p>
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&amp;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><input type="hidden" name="redirect" value="https://blueimp.github.io/jQuery-File-Upload/"></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
- <div class="col-lg-7">
82
- <!-- The fileinput-button span is used to style the file input field as button -->
83
- <span class="btn btn-success fileinput-button">
84
- <i class="glyphicon glyphicon-plus"></i>
85
- <span>Add files...</span>
86
- <input type="file" name="files[]" multiple>
87
- </span>
88
- <button type="submit" class="btn btn-primary start">
89
- <i class="glyphicon glyphicon-upload"></i>
90
- <span>Start upload</span>
91
- </button>
92
- <button type="reset" class="btn btn-warning cancel">
93
- <i class="glyphicon glyphicon-ban-circle"></i>
94
- <span>Cancel upload</span>
95
- </button>
96
- <button type="button" class="btn btn-danger delete">
97
- <i class="glyphicon glyphicon-trash"></i>
98
- <span>Delete</span>
99
- </button>
100
- <input type="checkbox" class="toggle">
101
- <!-- The global file processing state -->
102
- <span class="fileupload-process"></span>
103
- </div>
104
- <!-- The global progress state -->
105
- <div class="col-lg-5 fileupload-progress fade">
106
- <!-- The global progress bar -->
107
- <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
108
- <div class="progress-bar progress-bar-success" style="width:0%;"></div>
109
- </div>
110
- <!-- The extended global progress state -->
111
- <div class="progress-extended">&nbsp;</div>
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">&nbsp;</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"><tbody class="files"></tbody></table>
116
- </form>
117
- <br>
118
- <div class="panel panel-default">
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
- <h3 class="panel-title">Demo Notes</h3>
154
+ <h3 class="panel-title">Demo Notes</h3>
121
155
  </div>
122
156
  <div class="panel-body">
123
- <ul>
124
- <li>The maximum file size for uploads in this demo is <strong>999 KB</strong> (default file size is unlimited).</li>
125
- <li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
126
- <li>Uploaded files will be deleted automatically after <strong>5 minutes or less</strong> (demo files are stored in memory).</li>
127
- <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>
128
- <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>
129
- <li>Built with the <a href="http://getbootstrap.com/">Bootstrap</a> CSS framework and Icons from <a href="http://glyphicons.com/">Glyphicons</a>.</li>
130
- </ul>
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 &amp; 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
- </div>
134
- <!-- The blueimp Gallery widget -->
135
- <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
136
- <div class="slides"></div>
137
- <h3 class="title"></h3>
138
- <a class="prev">‹</a>
139
- <a class="next">›</a>
140
- <a class="close">×</a>
141
- <a class="play-pause"></a>
142
- <ol class="indicator"></ol>
143
- </div>
144
- <!-- The template to display files available for upload -->
145
- <script id="template-upload" type="text/x-tmpl">
146
- {% for (var i=0, file; file=o.files[i]; i++) { %}
147
- <tr class="template-upload fade">
148
- <td>
149
- <span class="preview"></span>
150
- </td>
151
- <td>
152
- <p class="name">{%=file.name%}</p>
153
- <strong class="error text-danger"></strong>
154
- </td>
155
- <td>
156
- <p class="size">Processing...</p>
157
- <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>
158
- </td>
159
- <td>
160
- {% if (!i && !o.options.autoUpload) { %}
161
- <button class="btn btn-primary start" disabled>
162
- <i class="glyphicon glyphicon-upload"></i>
163
- <span>Start</span>
164
- </button>
165
- {% } %}
166
- {% if (!i) { %}
167
- <button class="btn btn-warning cancel">
168
- <i class="glyphicon glyphicon-ban-circle"></i>
169
- <span>Cancel</span>
170
- </button>
171
- {% } %}
172
- </td>
173
- </tr>
174
- {% } %}
175
- </script>
176
- <!-- The template to display files available for download -->
177
- <script id="template-download" type="text/x-tmpl">
178
- {% for (var i=0, file; file=o.files[i]; i++) { %}
179
- <tr class="template-download fade">
180
- <td>
181
- <span class="preview">
182
- {% if (file.thumbnailUrl) { %}
183
- <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
184
- {% } %}
185
- </span>
186
- </td>
187
- <td>
188
- <p class="name">
189
- {% if (file.url) { %}
190
- <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
191
- {% } else { %}
192
- <span>{%=file.name%}</span>
193
- {% } %}
194
- </p>
195
- {% if (file.error) { %}
196
- <div><span class="label label-danger">Error</span> {%=file.error%}</div>
197
- {% } %}
198
- </td>
199
- <td>
200
- <span class="size">{%=o.formatFileSize(file.size)%}</span>
201
- </td>
202
- <td>
203
- {% if (file.deleteUrl) { %}
204
- <button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
205
- <i class="glyphicon glyphicon-trash"></i>
206
- <span>Delete</span>
207
- </button>
208
- <input type="checkbox" name="delete" value="1" class="toggle">
209
- {% } else { %}
210
- <button class="btn btn-warning cancel">
211
- <i class="glyphicon glyphicon-ban-circle"></i>
212
- <span>Cancel</span>
213
- </button>
214
- {% } %}
215
- </td>
216
- </tr>
217
- {% } %}
218
- </script>
219
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
220
- <!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
221
- <script src="js/vendor/jquery.ui.widget.js"></script>
222
- <!-- The Templates plugin is included to render the upload/download listings -->
223
- <script src="https://blueimp.github.io/JavaScript-Templates/js/tmpl.min.js"></script>
224
- <!-- The Load Image plugin is included for the preview images and image resizing functionality -->
225
- <script src="https://blueimp.github.io/JavaScript-Load-Image/js/load-image.all.min.js"></script>
226
- <!-- The Canvas to Blob plugin is included for image resizing functionality -->
227
- <script src="https://blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
228
- <!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
229
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
230
- <!-- blueimp Gallery script -->
231
- <script src="https://blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js"></script>
232
- <!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
233
- <script src="js/jquery.iframe-transport.js"></script>
234
- <!-- The basic File Upload plugin -->
235
- <script src="js/jquery.fileupload.js"></script>
236
- <!-- The File Upload processing plugin -->
237
- <script src="js/jquery.fileupload-process.js"></script>
238
- <!-- The File Upload image preview & resize plugin -->
239
- <script src="js/jquery.fileupload-image.js"></script>
240
- <!-- The File Upload audio preview plugin -->
241
- <script src="js/jquery.fileupload-audio.js"></script>
242
- <!-- The File Upload video preview plugin -->
243
- <script src="js/jquery.fileupload-video.js"></script>
244
- <!-- The File Upload validation plugin -->
245
- <script src="js/jquery.fileupload-validate.js"></script>
246
- <!-- The File Upload user interface plugin -->
247
- <script src="js/jquery.fileupload-ui.js"></script>
248
- <!-- The main application script -->
249
- <script src="js/main.js"></script>
250
- <!-- The XDomainRequest Transport is included for cross-domain file deletion for IE 8 and IE 9 -->
251
- <!--[if (gte IE 8)&(lt IE 10)]>
252
- <script src="js/cors/jquery.xdr-transport.js"></script>
253
- <![endif]-->
254
- </body>
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>