refactor(frontend): update Dropzone init and script placement in index.html
Build Debian Package / build (push) Successful in 8s
Build Debian Package / build (push) Successful in 8s
Signed-off-by: Arian Nasr <arian@2ari.ca>
This commit is contained in:
+16
-12
@@ -5,19 +5,23 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Upload Music</title>
|
<title>Upload Music</title>
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" type="text/css" />
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}" type="text/css" />
|
||||||
<script src="{{ url_for('static', filename='js/dropzone-min.js') }}"></script>
|
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/dropzone.css') }}" type="text/css" />
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
||||||
Dropzone.options.myDropzone = {
|
|
||||||
parallelUploads: 4,
|
<form action="/"
|
||||||
uploadMultiple: true,
|
class="dropzone"
|
||||||
acceptedFiles: 'audio/*'
|
id="my-dropzone"
|
||||||
};
|
enctype="multipart/form-data"></form>
|
||||||
</script>
|
|
||||||
<form action="/"
|
<script src="{{ url_for('static', filename='js/dropzone-min.js') }}"></script>
|
||||||
class="dropzone"
|
<script>
|
||||||
id="my-dropzone"></form>
|
const dz = new Dropzone("#my-dropzone", {
|
||||||
|
url: "/",
|
||||||
|
parallelUploads: 4,
|
||||||
|
uploadMultiple: true,
|
||||||
|
acceptedFiles: "audio/*"
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user