diff --git a/host.ts b/host.ts index af8e3a6..1ab9588 100644 --- a/host.ts +++ b/host.ts @@ -39,6 +39,17 @@ createServer((req, res) => { req_path = path.join(__dirname, "build", decodeURI(req.url)); } } + /* + if (!req_path.startsWith(path.join(__dirname, "build"))) { + //nice try + //bad request + res.writeHead(400); + //write file + res.write("400"); + //end response + return res.end(); + } + */ //check for auth //hopefully no security vulnerabilities. please look away if (url_obj.pathname !== "/password") { diff --git a/templates/player.html b/templates/player.html index a793d7f..c9f3852 100644 --- a/templates/player.html +++ b/templates/player.html @@ -10,10 +10,14 @@ margin: 0; padding: 0; } + #top { + display: grid; + grid-template-columns: auto auto; + } #main { margin: 10px; } - .player { + #player { margin: 15px; } #filters-container { @@ -22,22 +26,53 @@ .artist-song-filter { padding-left: 15px; } + .add-to-queue-btns { + display: none; + cursor: pointer; + background-color: transparent; + border: none; + padding: 0px; + margin: 0px; + padding-left: 2px; + } + label:hover > .add-to-queue-btns { + display: inline-block; + } + .add-to-queue-btns:hover { + text-decoration: underline; + } + @media only screen and (max-width: 800px) { + #top { + grid-template-columns: auto; + } + }
Front page -
-

shuffling

- Current Song -
- -
- +
+
+

shuffling

+ Current Song +
+ +
+ +
+
+

queue

+

empty

+
+
+
+ + +
@@ -64,10 +99,16 @@ [[ endfor ]]