mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Merge branch 'master' of https://gitlab.com/YourFriendlyNeighborhoodDealer/question-node-server
This commit is contained in:
commit
cf867206f7
2 changed files with 16 additions and 0 deletions
12
stat.js
12
stat.js
|
@ -78,6 +78,18 @@ function AddVisitStat(name) {
|
|||
vData[now][name]++;
|
||||
}
|
||||
|
||||
function AddVisitStat(name) {
|
||||
var m = new Date();
|
||||
const now = m.getFullYear() + "/" +
|
||||
("0" + (m.getMonth() + 1)).slice(-2) + "/" +
|
||||
("0" + m.getDate()).slice(-2);
|
||||
if (vData[now] == undefined)
|
||||
vData[now] = [];
|
||||
if (vData[now][name] == undefined)
|
||||
vData[now][name] = 0;
|
||||
vData[now][name]++;
|
||||
}
|
||||
|
||||
function Save() {
|
||||
writes++;
|
||||
if (writes == writeInterval) {
|
||||
|
|
4
todos
4
todos
|
@ -1,4 +1,8 @@
|
|||
make init function that
|
||||
creates directory and file structure
|
||||
redirects, for more stats (ex. to greasyfork: /script
|
||||
like - dislike button
|
||||
static public links above textboxes
|
||||
public questions allow question deletion
|
||||
remove public questions
|
||||
remove greasyfork images from manual
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue