|
@@ -12,13 +12,16 @@ permalink: uppy/
|
|
|
</head>
|
|
|
<body>
|
|
|
<h1>Uppy is here</h1>
|
|
|
+ <button id="uppyModalOpener">Open Modal</button>
|
|
|
<link href="uppy.min.css" rel="stylesheet">
|
|
|
<script src="uppy.min.js"></script>
|
|
|
<script src="locales/ru_RU.min.js"></script>
|
|
|
<script>
|
|
|
- var uppy = new Uppy.Core({locales: Uppy.locales.ru_RU, debug: true});
|
|
|
- uppy.use(Uppy.plugins.DragDrop, {target: 'body'});
|
|
|
- uppy.run();
|
|
|
+ var uppy = new Uppy.Core({locales: Uppy.locales.ru_RU, debug: true})
|
|
|
+ // uppy.use(Uppy.plugins.DragDrop, {target: 'body'});
|
|
|
+ .use(Uppy.plugins.Modal, {trigger: '#uppyModalOpener'})
|
|
|
+ .use(Uppy.plugins.Dummy, {target: Uppy.plugins.Modal})
|
|
|
+ .run();
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|