diff --git a/src/style/theme_default.styl b/src/style/theme_default.styl index aa3f057..32d955a 100644 --- a/src/style/theme_default.styl +++ b/src/style/theme_default.styl @@ -60,7 +60,7 @@ box-shadow() background-color: #00c7e0 box-shadow 2px 2px 4px #cecece .open_settings - background-image: url(../image/settings.svg) + background-image: url(/image/settings.svg) background-repeat: no-repeat background-size: contain .tabby @@ -87,7 +87,7 @@ box-shadow() background-color: #00c7e8 .chatarea .smsc-nicklistbtn - background-image: url(../image/users.svg) + background-image: url(/image/users.svg) background-repeat: no-repeat background-size: contain background-color: #00bcd4 @@ -126,7 +126,7 @@ box-shadow() border: 1px solid #929292 box-shadow inset 4px 4px 8px #d8d8d8 .sendbutton - background-image: url(../image/send.svg) + background-image: url(/image/send.svg) background-repeat: no-repeat background-size: contain diff --git a/src/style/theme_night.styl b/src/style/theme_night.styl index 36eddf1..95f4522 100644 --- a/src/style/theme_night.styl +++ b/src/style/theme_night.styl @@ -63,7 +63,7 @@ a:hover background-color: #008e8e box-shadow 2px 2px 4px #585858 .open_settings - background-image: url(../image/settings.svg) + background-image: url(/image/settings.svg) background-repeat: no-repeat background-size: contain .tabby @@ -92,7 +92,7 @@ a:hover background-color: #00859a .chatarea .smsc-nicklistbtn - background-image: url(../image/users.svg) + background-image: url(/image/users.svg) background-repeat: no-repeat background-size: contain background-color: #00bcd4 @@ -137,7 +137,7 @@ a:hover border: 1px solid #008e8e color: white .sendbutton - background-image: url(../image/send.svg) + background-image: url(/image/send.svg) background-repeat: no-repeat background-size: contain diff --git a/teemant.js b/teemant.js index 0f6aad7..2468caf 100755 --- a/teemant.js +++ b/teemant.js @@ -48,17 +48,16 @@ router.get('/', function(req, res){ res.sendFile(pubdir+'/document/index.html'); }); -router.get('/:server', function(req, res){ +router.get('/:server?*', function(req, res){ res.sendFile(pubdir+'/document/index.html'); }); app.use('/', express.static(pubdir, { maxAge: 365*24*60*60*1000 })); -app.use('/:server', express.static(pubdir, { maxAge: 365*24*60*60*1000 })); - app.use('/', express.static(pubdir+'/icons', { maxAge: 365*24*60*60*1000 })); -app.use('/:server', express.static(pubdir+'/icons', { maxAge: 365*24*60*60*1000 })); - app.use('/', express.static(__dirname+'/static', { maxAge: 365*24*60*60*1000 })); + +app.use('/:server', express.static(pubdir, { maxAge: 365*24*60*60*1000 })); +app.use('/:server', express.static(pubdir+'/icons', { maxAge: 365*24*60*60*1000 })); app.use('/:server', express.static(pubdir+'/static', { maxAge: 365*24*60*60*1000 })); app.use('/', router);