card-mod-script 0.13.1 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/assets/script/decko/autosave.js.coffee +30 -0
  3. data/assets/script/decko/bridge.js.coffee +31 -0
  4. data/assets/script/decko/card_menu.js.coffee +26 -0
  5. data/assets/script/decko/components.js.coffee +49 -0
  6. data/assets/script/decko/decko.js.coffee +82 -0
  7. data/assets/script/decko/doubleclick.js.coffee +30 -0
  8. data/assets/script/decko/editor.js.coffee +57 -0
  9. data/assets/script/decko/filter.js.coffee +183 -0
  10. data/assets/script/decko/filter_items.js.coffee +128 -0
  11. data/assets/script/decko/filter_links.js.coffee +81 -0
  12. data/assets/script/decko/follow.js.coffee +22 -0
  13. data/assets/script/decko/layout.js.coffee +76 -0
  14. data/assets/script/decko/link_editor.js.coffee +61 -0
  15. data/assets/script/decko/mod.js.coffee +79 -0
  16. data/assets/script/decko/modal.js.coffee +113 -0
  17. data/assets/script/decko/name_editor.js.coffee +40 -0
  18. data/assets/script/decko/navbox.js.coffee +74 -0
  19. data/assets/script/decko/nest_editor.js.coffee +166 -0
  20. data/assets/script/decko/nest_editor_name.js.coffee +102 -0
  21. data/assets/script/decko/nest_editor_options.js.coffee +93 -0
  22. data/assets/script/decko/nest_editor_rules.js.coffee +3 -0
  23. data/assets/script/decko/overlay.js.coffee +54 -0
  24. data/assets/script/decko/pointer_config.js.coffee +79 -0
  25. data/assets/script/decko/pointer_list_editor.js.coffee +67 -0
  26. data/assets/script/decko/recaptcha.js.coffee +19 -0
  27. data/assets/script/decko/selectable_filtered_content.js.coffee +12 -0
  28. data/assets/script/decko/slot.js.coffee +182 -0
  29. data/assets/script/decko/slot_ready.js.coffee +12 -0
  30. data/assets/script/decko/slotter.js.coffee +268 -0
  31. data/assets/script/decko/type_editor.js.coffee +21 -0
  32. data/assets/script/decko/upload.js.coffee +64 -0
  33. data/assets/script/jquery-ui.min.js +13 -0
  34. data/assets/script/jquery.autosize.js +274 -0
  35. data/assets/script/manifest.yml +57 -0
  36. data/init/early/init_execjs.rb +3 -0
  37. data/set/abstract/00_script.rb +30 -31
  38. data/set/abstract/01_asset_script.rb +0 -16
  39. data/set/abstract/{script_asset_list.rb → script_group.rb} +12 -13
  40. data/set/all/head_javascript.rb +12 -8
  41. data/set/right/script.rb +1 -14
  42. data/set/type/local_script_folder_group.rb +2 -2
  43. data/set/type/local_script_manifest_group.rb +1 -1
  44. data/set/type_plus_right/mod/script.rb +56 -0
  45. data/set/type_plus_right/set/script.rb +7 -0
  46. data/vendor/jquery_file_upload/LICENSE.txt +11 -12
  47. data/vendor/jquery_file_upload/README.md +189 -72
  48. data/vendor/jquery_file_upload/SECURITY.md +227 -0
  49. data/vendor/jquery_file_upload/VULNERABILITIES.md +118 -0
  50. data/vendor/jquery_file_upload/cors/postmessage.html +68 -58
  51. data/vendor/jquery_file_upload/cors/result.html +12 -10
  52. data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +24 -13
  53. data/vendor/jquery_file_upload/css/jquery.fileupload.css +3 -4
  54. data/vendor/jquery_file_upload/docker-compose.yml +55 -0
  55. data/vendor/jquery_file_upload/index.html +332 -230
  56. data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +109 -109
  57. data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +81 -73
  58. data/vendor/jquery_file_upload/js/demo.js +75 -0
  59. data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +82 -94
  60. data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +321 -300
  61. data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +138 -146
  62. data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +737 -692
  63. data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +91 -97
  64. data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +82 -94
  65. data/vendor/jquery_file_upload/js/jquery.fileupload.js +1569 -1451
  66. data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +208 -205
  67. data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +397 -340
  68. data/vendor/jquery_file_upload/package-lock.json +6853 -0
  69. data/vendor/jquery_file_upload/package.json +71 -10
  70. data/vendor/jquery_file_upload/server/gae-python/app.yaml +11 -10
  71. data/vendor/jquery_file_upload/server/php/Dockerfile +23 -17
  72. data/vendor/jquery_file_upload/server/php/UploadHandler.php +206 -137
  73. data/vendor/jquery_file_upload/server/php/php.ini +5 -0
  74. data/vendor/jquery_file_upload/test/index.html +36 -159
  75. data/vendor/jquery_file_upload/test/unit.js +989 -0
  76. data/vendor/jquery_file_upload/test/vendor/chai.js +10854 -0
  77. data/vendor/jquery_file_upload/test/vendor/mocha.css +325 -0
  78. data/vendor/jquery_file_upload/test/vendor/mocha.js +18178 -0
  79. data/vendor/jquery_file_upload/wdio/LICENSE.txt +20 -0
  80. data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
  81. data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
  82. data/vendor/jquery_file_upload/wdio/conf/chrome.js +40 -0
  83. data/vendor/jquery_file_upload/wdio/conf/firefox.js +25 -0
  84. data/vendor/jquery_file_upload/wdio/hooks/index.js +36 -0
  85. data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +79 -0
  86. data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +25 -0
  87. data/vendor/jquery_file_upload/wdio/wdio.conf.js +4 -0
  88. metadata +66 -50
  89. data/file/mod_script_script_decko_machine_output/file.js +0 -2710
  90. data/file/mod_script_script_jquery_machine_output/file.js +0 -12924
  91. data/lib/javascript/script_html5shiv_printshiv.js +0 -1
  92. data/set/self/script_html5shiv_printshiv.rb +0 -11
  93. data/set/self/script_mods.rb +0 -1
  94. data/set/type/mod_script_assets.rb +0 -21
  95. data/vendor/jquery_file_upload/CONTRIBUTING.md +0 -15
  96. data/vendor/jquery_file_upload/angularjs.html +0 -211
  97. data/vendor/jquery_file_upload/basic-plus.html +0 -226
  98. data/vendor/jquery_file_upload/basic.html +0 -136
  99. data/vendor/jquery_file_upload/bower-version-update.js +0 -16
  100. data/vendor/jquery_file_upload/bower.json +0 -64
  101. data/vendor/jquery_file_upload/css/jquery-ui-demo-ie8.css +0 -21
  102. data/vendor/jquery_file_upload/css/jquery-ui-demo.css +0 -67
  103. data/vendor/jquery_file_upload/css/style.css +0 -15
  104. data/vendor/jquery_file_upload/jquery-ui.html +0 -252
  105. data/vendor/jquery_file_upload/js/app.js +0 -101
  106. data/vendor/jquery_file_upload/js/jquery.fileupload-angular.js +0 -437
  107. data/vendor/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +0 -161
  108. data/vendor/jquery_file_upload/js/main.js +0 -75
  109. data/vendor/jquery_file_upload/server/gae-go/app/main.go +0 -361
  110. data/vendor/jquery_file_upload/server/gae-go/app.yaml +0 -12
  111. data/vendor/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
  112. data/vendor/jquery_file_upload/server/gae-go/static/robots.txt +0 -2
  113. data/vendor/jquery_file_upload/server/php/docker-compose.yml +0 -9
  114. 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>