idk, it's bad

This commit is contained in:
Evert Prants 2016-12-22 22:01:11 +02:00
parent 4c3e276df4
commit e3f9610c17
3 changed files with 10 additions and 11 deletions

View File

@ -60,7 +60,7 @@ box-shadow()
background-color: #00c7e0 background-color: #00c7e0
box-shadow 2px 2px 4px #cecece box-shadow 2px 2px 4px #cecece
.open_settings .open_settings
background-image: url(../image/settings.svg) background-image: url(/image/settings.svg)
background-repeat: no-repeat background-repeat: no-repeat
background-size: contain background-size: contain
.tabby .tabby
@ -87,7 +87,7 @@ box-shadow()
background-color: #00c7e8 background-color: #00c7e8
.chatarea .chatarea
.smsc-nicklistbtn .smsc-nicklistbtn
background-image: url(../image/users.svg) background-image: url(/image/users.svg)
background-repeat: no-repeat background-repeat: no-repeat
background-size: contain background-size: contain
background-color: #00bcd4 background-color: #00bcd4
@ -126,7 +126,7 @@ box-shadow()
border: 1px solid #929292 border: 1px solid #929292
box-shadow inset 4px 4px 8px #d8d8d8 box-shadow inset 4px 4px 8px #d8d8d8
.sendbutton .sendbutton
background-image: url(../image/send.svg) background-image: url(/image/send.svg)
background-repeat: no-repeat background-repeat: no-repeat
background-size: contain background-size: contain

View File

@ -63,7 +63,7 @@ a:hover
background-color: #008e8e background-color: #008e8e
box-shadow 2px 2px 4px #585858 box-shadow 2px 2px 4px #585858
.open_settings .open_settings
background-image: url(../image/settings.svg) background-image: url(/image/settings.svg)
background-repeat: no-repeat background-repeat: no-repeat
background-size: contain background-size: contain
.tabby .tabby
@ -92,7 +92,7 @@ a:hover
background-color: #00859a background-color: #00859a
.chatarea .chatarea
.smsc-nicklistbtn .smsc-nicklistbtn
background-image: url(../image/users.svg) background-image: url(/image/users.svg)
background-repeat: no-repeat background-repeat: no-repeat
background-size: contain background-size: contain
background-color: #00bcd4 background-color: #00bcd4
@ -137,7 +137,7 @@ a:hover
border: 1px solid #008e8e border: 1px solid #008e8e
color: white color: white
.sendbutton .sendbutton
background-image: url(../image/send.svg) background-image: url(/image/send.svg)
background-repeat: no-repeat background-repeat: no-repeat
background-size: contain background-size: contain

View File

@ -48,17 +48,16 @@ router.get('/', function(req, res){
res.sendFile(pubdir+'/document/index.html'); res.sendFile(pubdir+'/document/index.html');
}); });
router.get('/:server', function(req, res){ router.get('/:server?*', function(req, res){
res.sendFile(pubdir+'/document/index.html'); res.sendFile(pubdir+'/document/index.html');
}); });
app.use('/', express.static(pubdir, { maxAge: 365*24*60*60*1000 })); 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('/', 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('/', 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('/:server', express.static(pubdir+'/static', { maxAge: 365*24*60*60*1000 }));
app.use('/', router); app.use('/', router);