[MISC] Change comments, change app.use() for static files.

This commit is contained in:
Jan Philipp Timme 2013-09-14 23:32:59 +02:00
parent 1602c7bd4e
commit 1819d03598
2 changed files with 3 additions and 2 deletions

4
app.js
View File

@ -52,7 +52,7 @@ app.use(function(req, res, next) {
});
//deliver static files by default
app.use(express.static(__dirname + '/static'));
app.use("/", express.static(__dirname + '/static'));
//API: /session
app.use("/session", function(req, res) {
@ -101,7 +101,7 @@ app.use(function(err, req, res, next) {
res.end();
});
//fire it up as https (or http) server
//fire it up as https (or http - NOT recommended(!)) server
if(settings.general.https == true) {
var httpsOptions = {
"cert": fs.readFileSync(settings.https.cert),

View File

@ -1,5 +1,6 @@
$(function() {
//TODO: remove this entirely, allow user to assign own colors!
$(".content-container-header").each(function() {
$(this).css("background-color", "hsla(" + Math.round(Math.random() * 360) + ", 100%, 50%, 1);");
});