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
// var btnDownloadList = document.createElement("button");
// btnDownloadList.setAttribute("id", "btnDownloadList");
// btnDownloadList.setAttribute("class", "toolbar-button");
// btnDownloadList.setAttribute("onClick", "Toolbar.downloadList();");
var btnDownloadList = document.createElement("button");
btnDownloadList.setAttribute("id", "btnDownloadList");
btnDownloadList.setAttribute("class", "toolbar_button button_full_width");
btnDownloadList.setAttribute("onClick", "Toolbar.downloadList();");
// var btnDownloadListImg = document.createElement("img");
// btnDownloadListImg.setAttribute("src", "/res/img/floppy_small.png");
// btnDownloadListImg.setAttribute("alt", "Download List");
var btnDownloadListImg = document.createElement("img");
btnDownloadListImg.setAttribute("src", "/res/img/floppy_small.png");
btnDownloadListImg.setAttribute("alt", "Download List");
// var btnDownloadListText = document.createElement("span");
// btnDownloadListText.innerHTML = " All Files";
var btnDownloadListText = document.createElement("span");
btnDownloadListText.innerHTML = " All Files";
// btnDownloadList.appendChild(btnDownloadListImg);
// btnDownloadList.appendChild(btnDownloadListText);
// $("#btnDownload").after(btnDownloadList);
btnDownloadList.appendChild(btnDownloadListImg);
btnDownloadList.appendChild(btnDownloadListText);
$("#btnDownload").after(btnDownloadList);
// Add the shuffle button to the toolbar
var btnShuffle = document.createElement("button");

View File

@@ -65,7 +65,7 @@ html{
margin-top: 30px;
margin-bottom: 30px;
text-align: left;
box-shadow: #000 8px 8px 50px;
box-shadow: #000000 8px 8px 50px 5px;
z-index: 1;
word-break: break-word;
}

View File

@@ -34,7 +34,7 @@
</head>
<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">
{{template "menu"}}
<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 err error
listdata := map[string]interface{}{
"id": list.ID,
"data": list.Files,
"date_created": list.DateCreated,
"title": list.Title,