From 165a298188d16c7c5b1afc76934ba744ba282d8f Mon Sep 17 00:00:00 2001 From: Flummi Date: Wed, 17 Aug 2016 09:52:17 +0200 Subject: [PATCH] modified: s/item.tpl.html modified: s/style.css modified: src/main.js --- s/item.tpl.html | 2 +- s/style.css | 2 +- src/main.js | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/s/item.tpl.html b/s/item.tpl.html index c57abbb..d90fa8e 100644 --- a/s/item.tpl.html +++ b/s/item.tpl.html @@ -16,7 +16,7 @@ {% endif %} {% if item == "image" %} - + {% endif %}
{% if next != null %} | {% endif %} random {% if prev != null %} | {% endif %}

diff --git a/s/style.css b/s/style.css index 560745f..3020077 100644 --- a/s/style.css +++ b/s/style.css @@ -3,7 +3,7 @@ body { color: #fff; font-family: Monospace; } -a > img { +.mrhankyisteinneger > a > img { max-height: 128px; max-width: 128px; border: 2px solid #4c4a4a; diff --git a/src/main.js b/src/main.js index 6f4c362..47e0d14 100644 --- a/src/main.js +++ b/src/main.js @@ -204,7 +204,8 @@ http.createServer((req, res) => { '.mp3': 'audio/mpeg', '.mp4': 'video/mp4', '.webm': 'video/webm', - '.css': 'text/css' + '.css': 'text/css', + '.ogg': 'audio/ogg' }; if(filePath == "./index.html") { // mainpage var tpl = swig.compile(templates.index); @@ -246,6 +247,7 @@ http.createServer((req, res) => { data.item = 'video'; break; case "audio/mpeg": + case "audio/ogg": data.item = 'audio'; break; } @@ -304,6 +306,7 @@ http.createServer((req, res) => { case "video/webm": case "video/mp4": case "audio/mpeg": + case "audio/ogg": var start = 0; var end = 0; var range = req.headers['range'];