mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-23 10:18:40 +00:00
Fix the CDN example
This commit is contained in:
parent
44bb2d104c
commit
7cb1fc0cf3
4 changed files with 12 additions and 24 deletions
|
|
@ -5,9 +5,9 @@
|
|||
# Uppy versions, auto updated by update.js
|
||||
uppy_version: 0.0.1
|
||||
|
||||
uppy_dev_size: "81.15"
|
||||
uppy_min_size: "81.15"
|
||||
uppy_gz_size: "81.15"
|
||||
uppy_dev_size: "81.22"
|
||||
uppy_min_size: "81.22"
|
||||
uppy_gz_size: "81.22"
|
||||
|
||||
# Theme
|
||||
google_analytics: UA-63083-12
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<link rel="stylesheet" href="/css/uppy.css">
|
||||
<link rel="stylesheet" href="/uppy/uppy.css">
|
||||
|
||||
<script src="/js/uppy.js"></script>
|
||||
<script src="/uppy/uppy.js"></script>
|
||||
<script>
|
||||
var uppy = new Uppy.Core();
|
||||
uppy.use(Uppy.plugins.Tus10);
|
||||
var uppy = new Uppy.Core();
|
||||
uppy.use(Uppy.plugins.Tus10);
|
||||
|
||||
console.log('Uppy ' + uppy.type + ' loaded from CDN with tus enabled');
|
||||
console.log('Uppy ' + uppy.type + ' loaded from CDN with tus enabled');
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -9,9 +9,7 @@ order: 0
|
|||
This example showcases sourcing an UMD dist build straight from a CDN.
|
||||
{% endblockquote %}
|
||||
|
||||
<!-- <link rel="stylesheet" href="app.css"> -->
|
||||
<% include app.html %>
|
||||
<script src="app.js"></script>
|
||||
|
||||
<hr />
|
||||
|
||||
|
|
@ -20,16 +18,6 @@ This example showcases sourcing an UMD dist build straight from a CDN.
|
|||
</p>
|
||||
|
||||
<p>
|
||||
On this page we're using the following HTML snippet:
|
||||
On this page we're using the following HTML & JS snippet:
|
||||
</p>
|
||||
{% include_code lang:html cdn/app.html %}
|
||||
|
||||
<p>
|
||||
Along with this JavaScript:
|
||||
</p>
|
||||
{% include_code lang:js cdn/app.es6 %}
|
||||
|
||||
<!-- <p>
|
||||
And the following CSS:
|
||||
</p>
|
||||
{% include_code lang:css cdn/app.css %} -->
|
||||
|
|
|
|||
|
|
@ -2201,8 +2201,8 @@ var DragDrop = (function (_Plugin) {
|
|||
Object.assign(this.opts, opts);
|
||||
|
||||
// get the element where Drag & Drop event will occur
|
||||
this.dropzone = document.querySelector(this.opts.selector);
|
||||
this.dropzoneInput = document.querySelector('.UppyDragDrop-input');
|
||||
this.dropzone = document.querySelectorAll(this.opts.selector)[0];
|
||||
this.dropzoneInput = document.querySelectorAll('.UppyDragDrop-input')[0];
|
||||
|
||||
this.status = document.querySelectorAll('.UppyDragDrop-status')[0];
|
||||
|
||||
|
|
@ -2244,6 +2244,7 @@ var DragDrop = (function (_Plugin) {
|
|||
value: function listenForEvents() {
|
||||
var _this = this;
|
||||
|
||||
console.log('translation is all like: ' + this.core.translate('Choose a file'));
|
||||
console.log('waiting for some files to be dropped on ' + this.opts.selector);
|
||||
|
||||
if (this.isDragDropSupported) {
|
||||
|
|
@ -2294,7 +2295,6 @@ var DragDrop = (function (_Plugin) {
|
|||
value: function handleDrop(e) {
|
||||
console.log('all right, someone dropped something here...');
|
||||
var files = e.dataTransfer.files;
|
||||
console.log(files);
|
||||
|
||||
// const formData = new FormData(this.dropzone);
|
||||
// console.log('pizza', formData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue