[MISC] Change comments, change app.use() for static files.
This commit is contained in:
parent
1602c7bd4e
commit
1819d03598
4
app.js
4
app.js
@ -52,7 +52,7 @@ app.use(function(req, res, next) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//deliver static files by default
|
//deliver static files by default
|
||||||
app.use(express.static(__dirname + '/static'));
|
app.use("/", express.static(__dirname + '/static'));
|
||||||
|
|
||||||
//API: /session
|
//API: /session
|
||||||
app.use("/session", function(req, res) {
|
app.use("/session", function(req, res) {
|
||||||
@ -101,7 +101,7 @@ app.use(function(err, req, res, next) {
|
|||||||
res.end();
|
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) {
|
if(settings.general.https == true) {
|
||||||
var httpsOptions = {
|
var httpsOptions = {
|
||||||
"cert": fs.readFileSync(settings.https.cert),
|
"cert": fs.readFileSync(settings.https.cert),
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
|
//TODO: remove this entirely, allow user to assign own colors!
|
||||||
$(".content-container-header").each(function() {
|
$(".content-container-header").each(function() {
|
||||||
$(this).css("background-color", "hsla(" + Math.round(Math.random() * 360) + ", 100%, 50%, 1);");
|
$(this).css("background-color", "hsla(" + Math.round(Math.random() * 360) + ", 100%, 50%, 1);");
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user