Dark theme, pdf meta, de-serialize bugfix

This commit is contained in:
2019-10-30 21:48:58 -04:00
parent 130fb78787
commit 5661573b06
18 changed files with 542 additions and 251 deletions

View File

@@ -21,6 +21,17 @@ jQuery["jsonPost"] = function (url, data) {
});
};
window.onload = () => {
$("#theme").on("click", () => {
if (!document.cookie.includes("sist")) {
document.cookie = "sist=dark";
} else {
document.cookie = "sist=; Max-Age=-99999999;";
}
window.location.reload();
})
};
function toggleSearchBar() {
searchDebounced();
}