card-mod-script 0.11.0
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 +7 -0
- data/lib/javascript/decko/autosave.js.coffee +30 -0
- data/lib/javascript/decko/bridge.js.coffee +31 -0
- data/lib/javascript/decko/card_menu.js.coffee +26 -0
- data/lib/javascript/decko/components.js.coffee +51 -0
- data/lib/javascript/decko/decko.js.coffee +100 -0
- data/lib/javascript/decko/doubleclick.js.coffee +30 -0
- data/lib/javascript/decko/editor.js.coffee +55 -0
- data/lib/javascript/decko/filter.js.coffee +176 -0
- data/lib/javascript/decko/filter_items.js.coffee +128 -0
- data/lib/javascript/decko/filter_links.js.coffee +81 -0
- data/lib/javascript/decko/follow.js.coffee +22 -0
- data/lib/javascript/decko/layout.js.coffee +76 -0
- data/lib/javascript/decko/link_editor.js.coffee +61 -0
- data/lib/javascript/decko/mod.js.coffee +85 -0
- data/lib/javascript/decko/modal.js.coffee +110 -0
- data/lib/javascript/decko/name_editor.js.coffee +51 -0
- data/lib/javascript/decko/navbox.js.coffee +74 -0
- data/lib/javascript/decko/nest_editor.js.coffee +166 -0
- data/lib/javascript/decko/nest_editor_name.js.coffee +102 -0
- data/lib/javascript/decko/nest_editor_options.js.coffee +93 -0
- data/lib/javascript/decko/nest_editor_rules.js.coffee +3 -0
- data/lib/javascript/decko/overlay.js.coffee +57 -0
- data/lib/javascript/decko/recaptcha.js.coffee +19 -0
- data/lib/javascript/decko/selectable_filtered_content.js.coffee +12 -0
- data/lib/javascript/decko/slot.js.coffee +172 -0
- data/lib/javascript/decko/slot_ready.js.coffee +11 -0
- data/lib/javascript/decko/slotter.js.coffee +269 -0
- data/lib/javascript/decko/upload.js.coffee +57 -0
- data/lib/javascript/jquery-ui.js +10 -0
- data/lib/javascript/jquery.autosize.js +274 -0
- data/lib/javascript/jquery.iframe-transport.js +185 -0
- data/lib/javascript/script_html5shiv_printshiv.js +1 -0
- data/lib/javascript/script_pointer_config.js.coffee +80 -0
- data/lib/javascript/script_pointer_list_editor.js.coffee +67 -0
- data/lib/javascript/theme-textmate.js +130 -0
- data/set/abstract/script.rb +85 -0
- data/set/right/script.rb +19 -0
- data/set/self/01_script_libraries.rb +1 -0
- data/set/self/script.rb +1 -0
- data/set/self/script_decko.rb +12 -0
- data/set/self/script_editors.rb +1 -0
- data/set/self/script_html5shiv_printshiv.rb +11 -0
- data/set/self/script_jquery.rb +10 -0
- data/set/self/script_jquery_helper.rb +14 -0
- data/set/self/script_mods.rb +1 -0
- data/set/self/script_pointer_config.rb +9 -0
- data/set/type/coffee_script.rb +25 -0
- data/set/type/java_script.rb +9 -0
- data/vendor/jquery_file_upload/CONTRIBUTING.md +15 -0
- data/vendor/jquery_file_upload/LICENSE.txt +21 -0
- data/vendor/jquery_file_upload/README.md +107 -0
- data/vendor/jquery_file_upload/angularjs.html +211 -0
- data/vendor/jquery_file_upload/basic-plus.html +226 -0
- data/vendor/jquery_file_upload/basic.html +136 -0
- data/vendor/jquery_file_upload/bower-version-update.js +16 -0
- data/vendor/jquery_file_upload/bower.json +64 -0
- data/vendor/jquery_file_upload/cors/postmessage.html +75 -0
- data/vendor/jquery_file_upload/cors/result.html +24 -0
- data/vendor/jquery_file_upload/css/jquery-ui-demo-ie8.css +21 -0
- data/vendor/jquery_file_upload/css/jquery-ui-demo.css +67 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload-noscript.css +22 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui-noscript.css +17 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +57 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload.css +37 -0
- data/vendor/jquery_file_upload/css/style.css +15 -0
- data/vendor/jquery_file_upload/img/loading.gif +0 -0
- data/vendor/jquery_file_upload/img/progressbar.gif +0 -0
- data/vendor/jquery_file_upload/index.html +255 -0
- data/vendor/jquery_file_upload/jquery-ui.html +252 -0
- data/vendor/jquery_file_upload/js/app.js +101 -0
- data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +126 -0
- data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +89 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-angular.js +437 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +113 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +326 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-jquery-ui.js +161 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +178 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +714 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +125 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +113 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload.js +1486 -0
- data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +224 -0
- data/vendor/jquery_file_upload/js/main.js +75 -0
- data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +748 -0
- data/vendor/jquery_file_upload/package.json +55 -0
- data/vendor/jquery_file_upload/server/gae-go/app.yaml +12 -0
- data/vendor/jquery_file_upload/server/gae-go/app/main.go +361 -0
- data/vendor/jquery_file_upload/server/gae-go/static/favicon.ico +0 -0
- data/vendor/jquery_file_upload/server/gae-go/static/robots.txt +2 -0
- data/vendor/jquery_file_upload/server/gae-python/app.yaml +17 -0
- data/vendor/jquery_file_upload/server/gae-python/main.py +204 -0
- data/vendor/jquery_file_upload/server/gae-python/static/favicon.ico +0 -0
- data/vendor/jquery_file_upload/server/gae-python/static/robots.txt +2 -0
- data/vendor/jquery_file_upload/server/php/Dockerfile +38 -0
- data/vendor/jquery_file_upload/server/php/UploadHandler.php +1411 -0
- data/vendor/jquery_file_upload/server/php/docker-compose.yml +9 -0
- data/vendor/jquery_file_upload/server/php/index.php +15 -0
- data/vendor/jquery_file_upload/test/index.html +172 -0
- data/vendor/jquery_file_upload/test/test.js +1292 -0
- data/vendor/jquery_rails/CHANGELOG.md +359 -0
- data/vendor/jquery_rails/CONTRIBUTING.md +132 -0
- data/vendor/jquery_rails/Gemfile +22 -0
- data/vendor/jquery_rails/MIT-LICENSE +21 -0
- data/vendor/jquery_rails/README.md +75 -0
- data/vendor/jquery_rails/Rakefile +59 -0
- data/vendor/jquery_rails/VERSIONS.md +62 -0
- data/vendor/jquery_rails/jquery-rails.gemspec +26 -0
- data/vendor/jquery_rails/lib/jquery-rails.rb +1 -0
- data/vendor/jquery_rails/lib/jquery/assert_select.rb +149 -0
- data/vendor/jquery_rails/lib/jquery/rails.rb +8 -0
- data/vendor/jquery_rails/lib/jquery/rails/engine.rb +6 -0
- data/vendor/jquery_rails/lib/jquery/rails/version.rb +9 -0
- data/vendor/jquery_rails/test/assert_select_jquery_test.rb +85 -0
- data/vendor/jquery_rails/test/test_helper.rb +6 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.js +11008 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.js +5 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.map +1 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.js +9814 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.js +4 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.map +1 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.js +10364 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.js +2 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.map +1 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery_ujs.js +555 -0
- metadata +212 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
<!DOCTYPE HTML>
|
|
2
|
+
<!--
|
|
3
|
+
/*
|
|
4
|
+
* jQuery File Upload Plugin Basic Demo
|
|
5
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
|
6
|
+
*
|
|
7
|
+
* Copyright 2013, Sebastian Tschan
|
|
8
|
+
* https://blueimp.net
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the MIT license:
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*/
|
|
13
|
+
-->
|
|
14
|
+
<html lang="en">
|
|
15
|
+
<head>
|
|
16
|
+
<!-- Force latest IE rendering engine or ChromeFrame if installed -->
|
|
17
|
+
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
|
|
18
|
+
<meta charset="utf-8">
|
|
19
|
+
<title>jQuery File Upload Demo - Basic version</title>
|
|
20
|
+
<meta name="description" content="File Upload widget with multiple file selection, drag&drop support and progress bar for jQuery. Supports cross-domain, chunked and resumable file uploads. Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.">
|
|
21
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
22
|
+
<!-- Bootstrap styles -->
|
|
23
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
|
24
|
+
<!-- Generic page styles -->
|
|
25
|
+
<link rel="stylesheet" href="css/style.css">
|
|
26
|
+
<!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
|
|
27
|
+
<link rel="stylesheet" href="css/jquery.fileupload.css">
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<div class="navbar navbar-default navbar-fixed-top">
|
|
31
|
+
<div class="container">
|
|
32
|
+
<div class="navbar-header">
|
|
33
|
+
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-fixed-top .navbar-collapse">
|
|
34
|
+
<span class="icon-bar"></span>
|
|
35
|
+
<span class="icon-bar"></span>
|
|
36
|
+
<span class="icon-bar"></span>
|
|
37
|
+
</button>
|
|
38
|
+
<a class="navbar-brand" href="https://github.com/blueimp/jQuery-File-Upload">jQuery File Upload</a>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="navbar-collapse collapse">
|
|
41
|
+
<ul class="nav navbar-nav">
|
|
42
|
+
<li><a href="https://github.com/blueimp/jQuery-File-Upload/tags">Download</a></li>
|
|
43
|
+
<li><a href="https://github.com/blueimp/jQuery-File-Upload">Source Code</a></li>
|
|
44
|
+
<li><a href="https://github.com/blueimp/jQuery-File-Upload/wiki">Documentation</a></li>
|
|
45
|
+
<li><a href="https://blueimp.net">© Sebastian Tschan</a></li>
|
|
46
|
+
</ul>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="container">
|
|
51
|
+
<h1>jQuery File Upload Demo</h1>
|
|
52
|
+
<h2 class="lead">Basic version</h2>
|
|
53
|
+
<ul class="nav nav-tabs">
|
|
54
|
+
<li class="active"><a href="basic.html">Basic</a></li>
|
|
55
|
+
<li><a href="basic-plus.html">Basic Plus</a></li>
|
|
56
|
+
<li><a href="index.html">Basic Plus UI</a></li>
|
|
57
|
+
<li><a href="angularjs.html">AngularJS</a></li>
|
|
58
|
+
<li><a href="jquery-ui.html">jQuery UI</a></li>
|
|
59
|
+
</ul>
|
|
60
|
+
<br>
|
|
61
|
+
<blockquote>
|
|
62
|
+
<p>File Upload widget with multiple file selection, drag&drop support and progress bar for jQuery.<br>
|
|
63
|
+
Supports cross-domain, chunked and resumable file uploads.<br>
|
|
64
|
+
Works with any server-side platform (PHP, Python, Ruby on Rails, Java, Node.js, Go etc.) that supports standard HTML form file uploads.</p>
|
|
65
|
+
</blockquote>
|
|
66
|
+
<br>
|
|
67
|
+
<!-- The fileinput-button span is used to style the file input field as button -->
|
|
68
|
+
<span class="btn btn-success fileinput-button">
|
|
69
|
+
<i class="glyphicon glyphicon-plus"></i>
|
|
70
|
+
<span>Select files...</span>
|
|
71
|
+
<!-- The file input field used as target for the file upload widget -->
|
|
72
|
+
<input id="fileupload" type="file" name="files[]" multiple>
|
|
73
|
+
</span>
|
|
74
|
+
<br>
|
|
75
|
+
<br>
|
|
76
|
+
<!-- The global progress bar -->
|
|
77
|
+
<div id="progress" class="progress">
|
|
78
|
+
<div class="progress-bar progress-bar-success"></div>
|
|
79
|
+
</div>
|
|
80
|
+
<!-- The container for the uploaded files -->
|
|
81
|
+
<div id="files" class="files"></div>
|
|
82
|
+
<br>
|
|
83
|
+
<div class="panel panel-default">
|
|
84
|
+
<div class="panel-heading">
|
|
85
|
+
<h3 class="panel-title">Demo Notes</h3>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="panel-body">
|
|
88
|
+
<ul>
|
|
89
|
+
<li>The maximum file size for uploads in this demo is <strong>999 KB</strong> (default file size is unlimited).</li>
|
|
90
|
+
<li>Only image files (<strong>JPG, GIF, PNG</strong>) are allowed in this demo (by default there is no file type restriction).</li>
|
|
91
|
+
<li>Uploaded files will be deleted automatically after <strong>5 minutes or less</strong> (demo files are stored in memory).</li>
|
|
92
|
+
<li>You can <strong>drag & 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>
|
|
93
|
+
<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>
|
|
94
|
+
<li>Built with the <a href="http://getbootstrap.com/">Bootstrap</a> CSS framework and Icons from <a href="http://glyphicons.com/">Glyphicons</a>.</li>
|
|
95
|
+
</ul>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
|
100
|
+
<!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
|
|
101
|
+
<script src="js/vendor/jquery.ui.widget.js"></script>
|
|
102
|
+
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
|
|
103
|
+
<script src="js/jquery.iframe-transport.js"></script>
|
|
104
|
+
<!-- The basic File Upload plugin -->
|
|
105
|
+
<script src="js/jquery.fileupload.js"></script>
|
|
106
|
+
<!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
|
|
107
|
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
|
108
|
+
<script>
|
|
109
|
+
/*jslint unparam: true */
|
|
110
|
+
/*global window, $ */
|
|
111
|
+
$(function () {
|
|
112
|
+
'use strict';
|
|
113
|
+
// Change this to the location of your server-side upload handler:
|
|
114
|
+
var url = window.location.hostname === 'blueimp.github.io' ?
|
|
115
|
+
'//jquery-file-upload.appspot.com/' : 'server/php/';
|
|
116
|
+
$('#fileupload').fileupload({
|
|
117
|
+
url: url,
|
|
118
|
+
dataType: 'json',
|
|
119
|
+
done: function (e, data) {
|
|
120
|
+
$.each(data.result.files, function (index, file) {
|
|
121
|
+
$('<p/>').text(file.name).appendTo('#files');
|
|
122
|
+
});
|
|
123
|
+
},
|
|
124
|
+
progressall: function (e, data) {
|
|
125
|
+
var progress = parseInt(data.loaded / data.total * 100, 10);
|
|
126
|
+
$('#progress .progress-bar').css(
|
|
127
|
+
'width',
|
|
128
|
+
progress + '%'
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
}).prop('disabled', !$.support.fileInput)
|
|
132
|
+
.parent().addClass($.support.fileInput ? undefined : 'disabled');
|
|
133
|
+
});
|
|
134
|
+
</script>
|
|
135
|
+
</body>
|
|
136
|
+
</html>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var packageJSON = require(path.join(__dirname, 'package.json'));
|
|
7
|
+
var bowerFile = path.join(__dirname, 'bower.json');
|
|
8
|
+
var bowerJSON = require('bower-json').parse(
|
|
9
|
+
require(bowerFile),
|
|
10
|
+
{normalize: true}
|
|
11
|
+
);
|
|
12
|
+
bowerJSON.version = packageJSON.version;
|
|
13
|
+
require('fs').writeFileSync(
|
|
14
|
+
bowerFile,
|
|
15
|
+
JSON.stringify(bowerJSON, null, 2) + '\n'
|
|
16
|
+
);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "blueimp-file-upload",
|
|
3
|
+
"version": "9.21.0",
|
|
4
|
+
"title": "jQuery File Upload",
|
|
5
|
+
"description": "File Upload widget with multiple file selection, drag&drop support, progress bar, validation and preview images.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"jquery",
|
|
8
|
+
"file",
|
|
9
|
+
"upload",
|
|
10
|
+
"widget",
|
|
11
|
+
"multiple",
|
|
12
|
+
"selection",
|
|
13
|
+
"drag",
|
|
14
|
+
"drop",
|
|
15
|
+
"progress",
|
|
16
|
+
"preview",
|
|
17
|
+
"cross-domain",
|
|
18
|
+
"cross-site",
|
|
19
|
+
"chunk",
|
|
20
|
+
"resume",
|
|
21
|
+
"gae",
|
|
22
|
+
"go",
|
|
23
|
+
"python",
|
|
24
|
+
"php",
|
|
25
|
+
"bootstrap"
|
|
26
|
+
],
|
|
27
|
+
"homepage": "https://github.com/blueimp/jQuery-File-Upload",
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Sebastian Tschan",
|
|
30
|
+
"url": "https://blueimp.net"
|
|
31
|
+
},
|
|
32
|
+
"maintainers": [
|
|
33
|
+
{
|
|
34
|
+
"name": "Sebastian Tschan",
|
|
35
|
+
"url": "https://blueimp.net"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "git://github.com/blueimp/jQuery-File-Upload.git"
|
|
41
|
+
},
|
|
42
|
+
"bugs": "https://github.com/blueimp/jQuery-File-Upload/issues",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"jquery": ">=1.6",
|
|
46
|
+
"blueimp-tmpl": ">=2.5.4",
|
|
47
|
+
"blueimp-load-image": ">=1.13.0",
|
|
48
|
+
"blueimp-canvas-to-blob": ">=2.1.1"
|
|
49
|
+
},
|
|
50
|
+
"main": [
|
|
51
|
+
"js/jquery.fileupload.js"
|
|
52
|
+
],
|
|
53
|
+
"ignore": [
|
|
54
|
+
"/*.*",
|
|
55
|
+
"/cors",
|
|
56
|
+
"css/jquery-ui-demo-ie8.css",
|
|
57
|
+
"css/jquery-ui-demo.css",
|
|
58
|
+
"css/style.css",
|
|
59
|
+
"js/app.js",
|
|
60
|
+
"js/main.js",
|
|
61
|
+
"server",
|
|
62
|
+
"test"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<!DOCTYPE HTML>
|
|
2
|
+
<!--
|
|
3
|
+
/*
|
|
4
|
+
* jQuery File Upload Plugin postMessage API
|
|
5
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
|
6
|
+
*
|
|
7
|
+
* Copyright 2011, Sebastian Tschan
|
|
8
|
+
* https://blueimp.net
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the MIT license:
|
|
11
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*/
|
|
13
|
+
-->
|
|
14
|
+
<html lang="en">
|
|
15
|
+
<head>
|
|
16
|
+
<meta charset="utf-8">
|
|
17
|
+
<title>jQuery File Upload Plugin postMessage API</title>
|
|
18
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<script>
|
|
22
|
+
/*jslint unparam: true, regexp: true */
|
|
23
|
+
/*global $, Blob, FormData, location */
|
|
24
|
+
'use strict';
|
|
25
|
+
var origin = /^http:\/\/example.org/,
|
|
26
|
+
target = new RegExp('^(http(s)?:)?\\/\\/' + location.host + '\\/');
|
|
27
|
+
$(window).on('message', function (e) {
|
|
28
|
+
e = e.originalEvent;
|
|
29
|
+
var s = e.data,
|
|
30
|
+
xhr = $.ajaxSettings.xhr(),
|
|
31
|
+
f;
|
|
32
|
+
if (!origin.test(e.origin)) {
|
|
33
|
+
throw new Error('Origin "' + e.origin + '" does not match ' + origin);
|
|
34
|
+
}
|
|
35
|
+
if (!target.test(e.data.url)) {
|
|
36
|
+
throw new Error('Target "' + e.data.url + '" does not match ' + target);
|
|
37
|
+
}
|
|
38
|
+
$(xhr.upload).on('progress', function (ev) {
|
|
39
|
+
ev = ev.originalEvent;
|
|
40
|
+
e.source.postMessage({
|
|
41
|
+
id: s.id,
|
|
42
|
+
type: ev.type,
|
|
43
|
+
timeStamp: ev.timeStamp,
|
|
44
|
+
lengthComputable: ev.lengthComputable,
|
|
45
|
+
loaded: ev.loaded,
|
|
46
|
+
total: ev.total
|
|
47
|
+
}, e.origin);
|
|
48
|
+
});
|
|
49
|
+
s.xhr = function () {
|
|
50
|
+
return xhr;
|
|
51
|
+
};
|
|
52
|
+
if (!(s.data instanceof Blob)) {
|
|
53
|
+
f = new FormData();
|
|
54
|
+
$.each(s.data, function (i, v) {
|
|
55
|
+
f.append(v.name, v.value);
|
|
56
|
+
});
|
|
57
|
+
s.data = f;
|
|
58
|
+
}
|
|
59
|
+
$.ajax(s).always(function (result, statusText, jqXHR) {
|
|
60
|
+
if (!jqXHR.done) {
|
|
61
|
+
jqXHR = result;
|
|
62
|
+
result = null;
|
|
63
|
+
}
|
|
64
|
+
e.source.postMessage({
|
|
65
|
+
id: s.id,
|
|
66
|
+
status: jqXHR.status,
|
|
67
|
+
statusText: statusText,
|
|
68
|
+
result: result,
|
|
69
|
+
headers: jqXHR.getAllResponseHeaders()
|
|
70
|
+
}, e.origin);
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
</script>
|
|
74
|
+
</body>
|
|
75
|
+
</html>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!DOCTYPE HTML>
|
|
2
|
+
<!--
|
|
3
|
+
/*
|
|
4
|
+
* jQuery Iframe Transport Plugin Redirect Page
|
|
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
|
+
* https://opensource.org/licenses/MIT
|
|
12
|
+
*/
|
|
13
|
+
-->
|
|
14
|
+
<html lang="en">
|
|
15
|
+
<head>
|
|
16
|
+
<meta charset="utf-8">
|
|
17
|
+
<title>jQuery Iframe Transport Plugin Redirect Page</title>
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<script>
|
|
21
|
+
document.body.innerText=document.body.textContent=decodeURIComponent(window.location.search.slice(1));
|
|
22
|
+
</script>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/*
|
|
3
|
+
* jQuery File Upload Demo CSS Fixes for IE<9
|
|
4
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2013, Sebastian Tschan
|
|
7
|
+
* https://blueimp.net
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the MIT license:
|
|
10
|
+
* https://opensource.org/licenses/MIT
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.navigation {
|
|
14
|
+
list-style: none;
|
|
15
|
+
padding: 0;
|
|
16
|
+
margin: 1em 0;
|
|
17
|
+
}
|
|
18
|
+
.navigation li {
|
|
19
|
+
display: inline;
|
|
20
|
+
margin-right: 10px;
|
|
21
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/*
|
|
3
|
+
* jQuery File Upload Demo CSS
|
|
4
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2013, Sebastian Tschan
|
|
7
|
+
* https://blueimp.net
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the MIT license:
|
|
10
|
+
* https://opensource.org/licenses/MIT
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
body {
|
|
14
|
+
max-width: 750px;
|
|
15
|
+
margin: 0 auto;
|
|
16
|
+
padding: 1em;
|
|
17
|
+
font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif;
|
|
18
|
+
font-size: 1em;
|
|
19
|
+
line-height: 1.4em;
|
|
20
|
+
background: #222;
|
|
21
|
+
color: #fff;
|
|
22
|
+
-webkit-text-size-adjust: 100%;
|
|
23
|
+
-ms-text-size-adjust: 100%;
|
|
24
|
+
}
|
|
25
|
+
a {
|
|
26
|
+
color: orange;
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
}
|
|
29
|
+
img {
|
|
30
|
+
border: 0;
|
|
31
|
+
vertical-align: middle;
|
|
32
|
+
}
|
|
33
|
+
h1 {
|
|
34
|
+
line-height: 1em;
|
|
35
|
+
}
|
|
36
|
+
blockquote {
|
|
37
|
+
padding: 0 0 0 15px;
|
|
38
|
+
margin: 0 0 20px;
|
|
39
|
+
border-left: 5px solid #eee;
|
|
40
|
+
}
|
|
41
|
+
table {
|
|
42
|
+
width: 100%;
|
|
43
|
+
margin: 10px 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.fileupload-progress {
|
|
47
|
+
margin: 10px 0;
|
|
48
|
+
}
|
|
49
|
+
.fileupload-progress .progress-extended {
|
|
50
|
+
margin-top: 5px;
|
|
51
|
+
}
|
|
52
|
+
.error {
|
|
53
|
+
color: red;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: 481px) {
|
|
57
|
+
.navigation {
|
|
58
|
+
list-style: none;
|
|
59
|
+
padding: 0;
|
|
60
|
+
}
|
|
61
|
+
.navigation li {
|
|
62
|
+
display: inline-block;
|
|
63
|
+
}
|
|
64
|
+
.navigation li:not(:first-child):before {
|
|
65
|
+
content: "| ";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/*
|
|
3
|
+
* jQuery File Upload Plugin NoScript CSS
|
|
4
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2013, Sebastian Tschan
|
|
7
|
+
* https://blueimp.net
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the MIT license:
|
|
10
|
+
* https://opensource.org/licenses/MIT
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.fileinput-button input {
|
|
14
|
+
position: static;
|
|
15
|
+
opacity: 1;
|
|
16
|
+
filter: none;
|
|
17
|
+
font-size: inherit !important;
|
|
18
|
+
direction: inherit;
|
|
19
|
+
}
|
|
20
|
+
.fileinput-button span {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/*
|
|
3
|
+
* jQuery File Upload UI Plugin NoScript CSS
|
|
4
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2012, Sebastian Tschan
|
|
7
|
+
* https://blueimp.net
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the MIT license:
|
|
10
|
+
* https://opensource.org/licenses/MIT
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.fileinput-button i,
|
|
14
|
+
.fileupload-buttonbar .delete,
|
|
15
|
+
.fileupload-buttonbar .toggle {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|