List download button and new header

This commit is contained in:
2018-01-11 23:12:35 +01:00
parent 4aa8d8378b
commit 4139405d39
6 changed files with 16 additions and 16 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

View File

@@ -169,22 +169,21 @@ var ListNavigator = {
} }
// Add the list download button to the toolbar // Add the list download button to the toolbar
// var btnDownloadList = document.createElement("button"); var btnDownloadList = document.createElement("button");
// btnDownloadList.setAttribute("id", "btnDownloadList"); btnDownloadList.setAttribute("id", "btnDownloadList");
// btnDownloadList.setAttribute("class", "toolbar-button"); btnDownloadList.setAttribute("class", "toolbar_button button_full_width");
// btnDownloadList.setAttribute("onClick", "Toolbar.downloadList();"); btnDownloadList.setAttribute("onClick", "Toolbar.downloadList();");
// var btnDownloadListImg = document.createElement("img"); var btnDownloadListImg = document.createElement("img");
// btnDownloadListImg.setAttribute("src", "/res/img/floppy_small.png"); btnDownloadListImg.setAttribute("src", "/res/img/floppy_small.png");
// btnDownloadListImg.setAttribute("alt", "Download List"); btnDownloadListImg.setAttribute("alt", "Download List");
// var btnDownloadListText = document.createElement("span"); var btnDownloadListText = document.createElement("span");
// btnDownloadListText.innerHTML = " All Files"; btnDownloadListText.innerHTML = " All Files";
// btnDownloadList.appendChild(btnDownloadListImg); btnDownloadList.appendChild(btnDownloadListImg);
// btnDownloadList.appendChild(btnDownloadListText); btnDownloadList.appendChild(btnDownloadListText);
$("#btnDownload").after(btnDownloadList);
// $("#btnDownload").after(btnDownloadList);
// Add the shuffle button to the toolbar // Add the shuffle button to the toolbar
var btnShuffle = document.createElement("button"); var btnShuffle = document.createElement("button");

View File

@@ -60,12 +60,12 @@ html{
width: 100%; width: 100%;
height: auto; height: auto;
padding: 0px 8px 0px 8px; padding: 0px 8px 0px 8px;
box-sizing: border-box; box-sizing: border-box;
background-color: #242424; background-color: #242424;
margin-top: 30px; margin-top: 30px;
margin-bottom: 30px; margin-bottom: 30px;
text-align: left; text-align: left;
box-shadow: #000 8px 8px 50px; box-shadow: #000000 8px 8px 50px 5px;
z-index: 1; z-index: 1;
word-break: break-word; word-break: break-word;
} }

View File

@@ -34,7 +34,7 @@
</head> </head>
<body> <body>
<img id="header-image" src="/res/img/header_blackchancery.png" alt="Header image"/> <img id="header-image" src="/res/img/header_neuropol.png" alt="Header image"/>
<div id="body" class="body"> <div id="body" class="body">
{{template "menu"}} {{template "menu"}}
<div class="highlight_middle border-bottom"> <div class="highlight_middle border-bottom">

View File

@@ -21,6 +21,7 @@ func ServeListViewer(w http.ResponseWriter, r *http.Request, p httprouter.Params
var ogData OGData var ogData OGData
var err error var err error
listdata := map[string]interface{}{ listdata := map[string]interface{}{
"id": list.ID,
"data": list.Files, "data": list.Files,
"date_created": list.DateCreated, "date_created": list.DateCreated,
"title": list.Title, "title": list.Title,