diff --git a/html/index.html b/html/index.html index 8a4c0d9..6d0b113 100644 --- a/html/index.html +++ b/html/index.html @@ -5,7 +5,7 @@ - derzombiiie.com - home + home diff --git a/html/js/posts.js b/html/js/posts.js index 8a258a3..8ababba 100644 --- a/html/js/posts.js +++ b/html/js/posts.js @@ -2,6 +2,7 @@ $(document).ready(() => { content = new entry(postDATA.title, postDATA.author, marked(postDATA.content), postDATA.href, postDATA.tags, postDATA.id, postDATA.rating) content.appendto(".content") + $("title").html(postDATA.title) // rating bit: $(".upvote") .on("click", () => { vote("+", $(".upvote"), $(".downvote")) }) diff --git a/html/js/search.js b/html/js/search.js index 05f2d85..6dd7501 100644 --- a/html/js/search.js +++ b/html/js/search.js @@ -10,10 +10,11 @@ $(document).ready(() => { a = d[i] ? a : "" } desc += a - + results.push( new entry( searchDATA.sd[i].title, searchDATA.sd[i].author, desc, "", searchDATA.sd[i].tags, searchDATA.sd[i].id, searchDATA.sd[i].rating ) ) results[results.length-1].appendto(".content") } - $(".subtitle.search").html(searchDATA.arg.join(", ")) + $(".subtitle.search").html((searchDATA.arg.join(", ").replace(/ - derzombiiie.com - home + view post diff --git a/html/posts/index.list.html b/html/posts/index.list.html index 26e25a9..f342920 100644 --- a/html/posts/index.list.html +++ b/html/posts/index.list.html @@ -5,7 +5,7 @@ - derzombiiie.com - home + post listing diff --git a/html/search/index.html b/html/search/index.html index 7715fb9..8bab66e 100644 --- a/html/search/index.html +++ b/html/search/index.html @@ -5,7 +5,7 @@ - derzombiiie.com - home + search - diff --git a/node/app.js b/node/app.js index 9df1049..1f3228a 100644 --- a/node/app.js +++ b/node/app.js @@ -50,6 +50,7 @@ con.registercmd( "appeval", (arg) => {try {console.log(eval(arg.join(" ")))} cat con.registercmd( "comment", (arg => { let t let body + let time sw: switch (arg[0]) { case "get": @@ -76,7 +77,7 @@ con.registercmd( "comment", (arg => { body.shift() body.shift() - let time = arg[2] + time = arg[2] if (arg[2] == "auto") { time = new Date().getTime() console.log( "Auto-time: using time: " + time) @@ -95,15 +96,31 @@ con.registercmd( "comment", (arg => { console.log(comments.delete( arg[1], arg[2] )) break - case "set": // DONT USE! its broken - if ( !arg[1] ) return console.log("No post ID specified!") - if ( !arg[2] ) return console.log("No comment specified!") + case "set": // DONT USE! its partially rewritten! + if (!arg[1] || !arg[2] || !arg[3] || !arg[4] || !arg[5]) { + return console.log("Not all args specified!\nUsage: comment set