diff options
| -rw-r--r-- | css/pomf.css | 20 | ||||
| -rw-r--r-- | js/app.js | 1 | ||||
| -rw-r--r-- | pages/upload_form.swig | 2 |
3 files changed, 16 insertions, 7 deletions
diff --git a/css/pomf.css b/css/pomf.css index 75e7130..8cbf7c7 100644 --- a/css/pomf.css +++ b/css/pomf.css @@ -220,12 +220,7 @@ nav > ul > li:last-child:after { margin: 0; } -/** - * UPLOAD FORM - */ -#upload-input { - display: none; -} + /** * UPLOAD FILE LIST @@ -385,3 +380,16 @@ progress[value]::-webkit-progress-bar { padding: 10px 0; } } + +#upload-btn { + display: none; +} +.js #upload-input { + display: none; +} +.js input[type="submit"]{ + display: none; +} +.js #upload-btn { + display: inline-block !important; +} @@ -146,3 +146,4 @@ var uploadInput = document.getElementById('upload-input'); uploadInput.addEventListener('change', uploadFiles); uploadButton.addEventListener('click', selectFiles.bind(this, uploadInput)); uploadButton.addEventListener('drop', handleDragDrop.bind(this, state, uploadButton), false); +document.getElementById('upload-form').classList.add('js'); diff --git a/pages/upload_form.swig b/pages/upload_form.swig index 8068eb5..6c5de14 100644 --- a/pages/upload_form.swig +++ b/pages/upload_form.swig @@ -1,4 +1,4 @@ -<form enctype="multipart/form-data" method="post" action="upload.php?output=html"> +<form id="upload-form" enctype="multipart/form-data" method="post" action="upload.php?output=html"> <button id="upload-btn" class="btn" type="button">Select or drop file(s)</button> <input type="file" id="upload-input" name="files[]" multiple data-max-size="{{max_upload_size}}MiB"> <input type="submit" value="Submit"> |
