File manager mockup

This commit is contained in:
2018-07-09 23:19:16 +02:00
parent 9c7b79403e
commit 5d30b60f13
10 changed files with 138 additions and 85 deletions

View File

@@ -12,9 +12,9 @@ function createList(){
}
var url = "/api/list";
var postData = {};
var title = prompt(
"You are creating a list containing " + listfiles.length + " files.\n"
+ "What do you want to call it?", "My New Album"
@@ -29,13 +29,13 @@ function createList(){
"description": "yo",
"files": new Array()
};
for (var i = 0; i < listfiles.length; i++) {
postData.files.push({
"id": listfiles[i]
});
}
$.ajax({
url: url,
contentType: "application/json",
@@ -53,9 +53,9 @@ function listCreated(response){
+ "Your List URL: <br/>"
+ "<a href=\"/l/" + response.id + "\" target=\"_blank\" style=\"font-weight: bold;\">"+window.location.hostname+"/l/" + response.id + "</a>"
+ "</div>";
$('#uploads_queue').prepend(
$(resultString).hide().fadeIn('slow')
$(resultString).hide().fadeIn('slow').css("display", "")
);
window.open('/l/'+response.id, '_blank');
}else{
@@ -63,9 +63,9 @@ function listCreated(response){
+ "The server responded with this: <br/>"
+ response.type + ": " + response.value
+ "</div>";
$('#uploads_queue').prepend(
$(resultString).hide().fadeIn('slow')
$(resultString).hide().fadeIn('slow').css("display", "")
);
}
}
@@ -74,9 +74,9 @@ function listCreated(response){
// var fileDesc = $("#txtListDesc").val();
//
// addToList(fileId, fileDesc);
//
//
// divItems.prepend("ID: " + fileId + "<br>Description:<br>" + fileDesc + "<br><br>");
//
//
// $("#txtListId").val("");
// $("#txtListDesc").val("");
//});
//});

View File

@@ -133,14 +133,8 @@ hr{
::-webkit-scrollbar-thumb {background-color: #555;}
::-webkit-scrollbar-corner{background: transparent;}
a{
color: var(--highlight_color);
text-decoration: none;
}
a:hover{
text-decoration: underline;
color: var(--highlight_color);
}
a {color: var(--highlight_color); text-decoration: none;}
a:hover {color: var(--highlight_color); text-decoration: underline;}
.form{
margin-left: auto;
@@ -243,10 +237,13 @@ pre{
/* BUTTONS */
button,
.button,
input[type="submit"],
input[type="button"],
input[type="color"],
select{
display: inline-block;
box-sizing: border-box;
border-radius: 4px;
border: none;
margin: 2px;
@@ -254,24 +251,33 @@ select{
padding: 6px 10px 6px 10px;
box-shadow: 2px 2px 8px #000000;
font-weight: bold;
font-size: 0.85em;
line-height: 1;
text-decoration: none;
color: #FFFFFF;
outline: 0;
vertical-align: middle;
cursor: pointer;
}
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="color"]:hover,
select:hover,
button:focus,
.button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="color"]:focus,
select:focus{
color: #FFFFFF;
text-decoration: none;
box-shadow: var(--highlight_border), 2px 2px 8px #000000;
}
button:active,
.button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="color"]:active,
@@ -291,6 +297,7 @@ option{background-color: #404040; color: #FFFFFF;}
/* TEXT FIELDS */
textarea,
.groove,
input[type="text"],
input[type="password"],
input[type="email"],