Commit e3d64db4 authored by Janne Koschinski's avatar Janne Koschinski

Fix upload page

Signed-off-by: Janne Koschinski's avatarJanne Koschinski <janne@kuschku.de>
parent 081e6ae9
......@@ -12,8 +12,8 @@ function postData(url, data) {
const page = document.querySelector(".page.upload");
const form = document.querySelector("form.upload");
const element = document.querySelector("form.upload input[type=file]");
const results = document.querySelector(".uploading .images");
const sidebar = document.querySelector(".uploading .sidebar");
const results = document.querySelector(".uploading-images .images");
const sidebar = document.querySelector(".uploading-images .sidebar");
element.addEventListener("change", () => {
page.classList.add("submitted");
for (let file of element.files) {
......
......@@ -57,7 +57,7 @@
top: 0
bottom: 0
opacity: 0
.uploading
.uploading-images
display: flex
flex-direction: row
.images
......@@ -104,7 +104,7 @@
opacity: 0
&.submitted .container.centered
display: none
&:not(.submitted) .uploading
&:not(.submitted) .uploading-images
display: none
@keyframes indeterminate
......
......@@ -9,7 +9,7 @@
</label>
</form>
</div>
<div class="uploading">
<div class="uploading-images">
<div class="images"></div>
<div class="sidebar">
<div class="url">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment