Converted to python flask #1
BIN
images/pic1.png
BIN
images/pic1.png
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
BIN
images/pic2.png
BIN
images/pic2.png
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
BIN
images/pic3.png
BIN
images/pic3.png
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
BIN
images/pic4.png
BIN
images/pic4.png
Binary file not shown.
After Width: | Height: | Size: 390 KiB |
BIN
images/pic5.png
BIN
images/pic5.png
Binary file not shown.
After Width: | Height: | Size: 316 KiB |
@ -56,6 +56,7 @@
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.volume-control-positioner {
|
.volume-control-positioner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 3.5em;
|
bottom: 3.5em;
|
||||||
|
@ -13,13 +13,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: Dosis;
|
font-family: Dosis;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul, li {
|
ul, li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Vertical slider */
|
/* Vertical slider */
|
||||||
input[type=range][orient=vertical] {
|
input[type=range][orient=vertical] {
|
||||||
writing-mode: bt-lr; /* IE */
|
writing-mode: bt-lr; /* IE */
|
||||||
@ -30,18 +31,18 @@ input[type=range][orient=vertical] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
[class*="col-"] {
|
[class*="col-"] {
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: 10px solid transparent;
|
border: 10px solid transparent;
|
||||||
margin: 0em !important;
|
margin: 0em !important;
|
||||||
padding: 0em !important;
|
padding: 0em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#video-container::-webkit-media-controls {
|
#video-container::-webkit-media-controls {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#video-container::-webkit-media-controls-enclosure {
|
#video-container::-webkit-media-controls-enclosure {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -57,6 +58,23 @@ input[type=range][orient=vertical] {
|
|||||||
background-color: rgba(50, 56, 62, 0.84);
|
background-color: rgba(50, 56, 62, 0.84);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card-body {
|
||||||
|
min-height: 326px;
|
||||||
|
font-size: x-large;
|
||||||
|
vertical-align: middle !important;
|
||||||
|
align-items: center;
|
||||||
|
display: grid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-img, .card-img-top {
|
||||||
|
max-height: 285px !important;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-group-item {
|
||||||
|
color: rgba(255, 255, 255, 1) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.label-as-badge {
|
.label-as-badge {
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
@ -14,6 +14,7 @@ const setPosition = ({ top, left }) => {
|
|||||||
toggleMenu("show");
|
toggleMenu("show");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
window.addEventListener("click", e => {
|
window.addEventListener("click", e => {
|
||||||
if(menuVisible) toggleMenu("hide");
|
if(menuVisible) toggleMenu("hide");
|
||||||
});
|
});
|
||||||
|
@ -28,3 +28,7 @@ $( "#uploadFiles" ).bind( "click", function(eve) {
|
|||||||
const files = document.getElementById('toUpload').files;
|
const files = document.getElementById('toUpload').files;
|
||||||
uploadFiles(files);
|
uploadFiles(files);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$( "#clearUploadFiles" ).bind( "click", function(eve) {
|
||||||
|
clearUlList();
|
||||||
|
});
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
|
|
||||||
// Uploader Logic
|
// Uploader Logic
|
||||||
|
const clearUlList = () => {
|
||||||
|
const titles = document.getElementById('uploadListTitles');
|
||||||
|
const files = document.getElementById('toUpload');
|
||||||
|
|
||||||
|
files.value = null;
|
||||||
|
clearChildNodes(titles);
|
||||||
|
}
|
||||||
|
|
||||||
const setUploadListTitles = (files = null) => {
|
const setUploadListTitles = (files = null) => {
|
||||||
if (files == null) {
|
if (files == null) {
|
||||||
return ;
|
return ;
|
||||||
|
@ -4,14 +4,6 @@ const goHome = () => {
|
|||||||
goHomeAjax();
|
goHomeAjax();
|
||||||
}
|
}
|
||||||
|
|
||||||
const clearUlList = () => {
|
|
||||||
const titles = document.getElementById('uploadListTitles');
|
|
||||||
const files = document.getElementById('toUpload');
|
|
||||||
|
|
||||||
files.value = null;
|
|
||||||
clearChildNodes(titles);
|
|
||||||
}
|
|
||||||
|
|
||||||
const downloadItem = (eve) => {
|
const downloadItem = (eve) => {
|
||||||
let elm = active_card.querySelector('a');
|
let elm = active_card.querySelector('a');
|
||||||
elm.click();
|
elm.click();
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<li class="nav-item mr-2">
|
<li class="nav-item mr-2">
|
||||||
<span id="tggl-faves-btn" class="btn btn-info btn-sm" title="Add/Delete from favorites..." >☆</span>
|
<span id="tggl-faves-btn" class="btn btn-info btn-sm" title="Add/Delete from favorites..." >☆</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item mx-auto">
|
||||||
<span id="path">{{current_directory}}</span>
|
<span id="path">{{current_directory}}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -60,8 +60,8 @@
|
|||||||
|
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<ul class="menu-options">
|
<ul class="menu-options">
|
||||||
|
<li class="menu-option" onclick="goUpADirectory()">Back</li>
|
||||||
<li class="menu-option" onclick="goHome()">Home Directory</li>
|
<li class="menu-option" onclick="goHome()">Home Directory</li>
|
||||||
<li class="menu-option" onclick="clearUlList()">Clear Upload List</li>
|
|
||||||
<li class="menu-option" onclick="downloadItem()">Download</li>
|
<li class="menu-option" onclick="downloadItem()">Download</li>
|
||||||
<li class="menu-option" onclick="deleteItem()">Delete</li>
|
<li class="menu-option" onclick="deleteItem()">Delete</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<div class="col scroller" style="max-height: 70vh; overflow: auto;">
|
<div class="col scroller" style="max-height: 70vh; overflow: auto;">
|
||||||
<!-- For video -->
|
<!-- For video -->
|
||||||
<div id="video-container">
|
<div id="video-container">
|
||||||
<video id="video" class="card-img-top viewer"
|
<video id="video" class="viewer"
|
||||||
loop
|
loop
|
||||||
src=""
|
src=""
|
||||||
autoplay=""
|
autoplay=""
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<input id="toUpload" class="btn btn-dark" type="file" multiple>
|
<input id="toUpload" class="btn btn-dark" type="file" multiple>
|
||||||
<button id="uploadFiles" class="btn btn-success">Submit Files...</button>
|
<button id="uploadFiles" class="btn btn-success">Submit Files...</button>
|
||||||
{% else %}
|
<button id="clearUploadFiles" class="btn btn-dark">Clear</button>
|
||||||
|
{% else %}
|
||||||
<h3>Upload not available to this user...</h3>
|
<h3>Upload not available to this user...</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user