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/[email protected]/dist/uppy.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/uppy.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/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