Skip to content

Instantly share code, notes, and snippets.

@epexa
Created June 7, 2019 16:19
Show Gist options
  • Save epexa/1fe999461dd3f8784f420530892f77f5 to your computer and use it in GitHub Desktop.
Save epexa/1fe999461dd3f8784f420530892f77f5 to your computer and use it in GitHub Desktop.
<div id="uppy"></div>
<button id="show-uppy-btn">Show Uppy</button>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uppy@1.0.2/dist/uppy.min.css">
<script src="https://cdn.jsdelivr.net/npm/uppy@1.0.2/dist/uppy.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@8.11.7/dist/sweetalert2.all.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const uppy = Uppy.Core().use(Uppy.Dashboard, {
target: '#uppy',
trigger: '#show-uppy-btn'
});
Swal.fire({ toast: true });
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment