Skip to content

Commit 28b0844

Browse files
Update index.html
1 parent 9a6a63b commit 28b0844

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

index.html

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
background-color: #fff;
3535
}
3636

37-
label {
37+
.container label {
3838
cursor: pointer;
3939
}
4040

41-
label:hover strong {
41+
.container label:hover strong {
4242
color: #39bfd3;
4343
}
4444

@@ -48,13 +48,46 @@
4848
color: #0f3c4b;
4949
font-size: 0.75rem;
5050
}
51+
.list {
52+
text-align: initial;
53+
margin-top: 1rem;
54+
}
55+
.list li {
56+
font-size: 0.9rem;
57+
}
58+
59+
.flexcontainer {
60+
display: flex;
61+
align-items: stretch;
62+
}
63+
.flexcontainer section {
64+
flex-grow: 1;
65+
}
66+
67+
.hidden {
68+
display: none;
69+
}
5170
</style>
5271
<section id="containerContainer">
5372
<!--<label>Drag in or select a zip file, and the same zip file minus any hidden files will be downloaded</label>-->
5473
<section class="container">
5574
<!--<input type="file" id="fileElem" multiple webkitdirectory style="display: none" class="deleteme">-->
56-
<input type="file" id="fileElem" style="display: none" class="deleteme" accept=".zip">
57-
<label id="label" for="fileElem" class="deleteme"><strong>Select zip</strong> which has hidden files to remove</label>
75+
<input type="file" id="fileElem" style="display: none" accept=".zip">
76+
<label id="label" for="fileElem"><strong>Select zip</strong> which has hidden files to remove</label>
77+
</section>
78+
<section class="flexcontainer hidden">
79+
<section class="list left">
80+
<label>Original</label>
81+
<p id="itemsleft"></p>
82+
<ul id="left">
83+
</ul>
84+
</section>
85+
<section class="list right">
86+
<label>Result</label>
87+
<p id="itemsright"></p>
88+
<ul id="right">
89+
</ul>
90+
</section>
5891
</section>
5992
<p>Thanks heaps to <a href="https://css-tricks.com/drag-and-drop-file-uploading/">CSS-Tricks</a> for the basic look of this page, <a href="https://stuk.github.io/jszip/">JSZip</a> for working with zip files and <a href=""https://github.com/eligrey/FileSaver.js>FileSaver</a> for downloading the file.</p>
6093
</section>

0 commit comments

Comments
 (0)