diff --git a/public/s/css/f0ck-custom.css b/public/s/css/f0ck-custom.css index 7ced575..1d75550 100644 --- a/public/s/css/f0ck-custom.css +++ b/public/s/css/f0ck-custom.css @@ -204,4 +204,30 @@ select { img#biohaz { width: 28px; +} + +.metadata { + background: #1b1b1b; + border-top: 1px solid #262626; +} + +.content { + border-left: 1px solid #1b1b1b; + border-right: 1px solid #1b1b1b; +} + +.controls { + border-left: 1px solid #1b1b1b; + border-right: 1px solid #1b1b1b; +} + + +#themeselector { + padding: 0.04em 0.2em; + vertical-align: top; + font-weight: 560; +} + +span.badge.badge-dark { + margin-right: 5px; } \ No newline at end of file diff --git a/public/s/img/mp3.png b/public/s/img/mp3.png index 171d7bc..fea3f27 100644 Binary files a/public/s/img/mp3.png and b/public/s/img/mp3.png differ diff --git a/public/s/js/scroller.js b/public/s/js/scroller.js index 8067c65..cff0853 100644 --- a/public/s/js/scroller.js +++ b/public/s/js/scroller.js @@ -11,7 +11,7 @@ let load = false; .then((msg, html = "") => { for(let i = 0; i < msg.items.length; i++) if(msg.items[i].id) - html += `
  • \n`; + html += `
  • \n`; posts.insertAdjacentHTML("beforeend", html); posts.dataset.last = msg.last; load = false; diff --git a/src/websrv.mjs b/src/websrv.mjs index 58f5add..88a2df1 100644 --- a/src/websrv.mjs +++ b/src/websrv.mjs @@ -19,7 +19,13 @@ import router from "./inc/router.mjs"; req.post = new Promise((resolve, _, data = "") => req .on("data", d => void (data += d)) - .on("end", () => void resolve(Object.fromEntries(Object.entries(querystring.parse(data)).map(([k, v]) => [k, decodeURIComponent(v)]))))); + .on("end", () => void resolve(Object.fromEntries(Object.entries(querystring.parse(data)).map(([k, v]) => { + try { + return [k, decodeURIComponent(v)]; + } catch(err) { + console.error(err); + } + }))))); res.reply = ({ code = 200, diff --git a/views/index.html b/views/index.html index 33aba0c..fda41ac 100644 --- a/views/index.html +++ b/views/index.html @@ -4,7 +4,7 @@ {{each items as item}}
  • - + {{=item.mime}}