mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Minor logging improvement, open all on legacy page
This commit is contained in:
parent
4e0bea8e32
commit
38fc65b572
3 changed files with 22 additions and 0 deletions
|
@ -60,6 +60,10 @@ function LogReq (req, toFile, sc) {
|
||||||
if (sc !== undefined && sc === 404) { logEntry += DELIM + sc }
|
if (sc !== undefined && sc === 404) { logEntry += DELIM + sc }
|
||||||
let color = GetColor('green')
|
let color = GetColor('green')
|
||||||
|
|
||||||
|
if (req.url.includes('lred')) {
|
||||||
|
color = GetColor('red')
|
||||||
|
}
|
||||||
|
|
||||||
if (req.url.toLowerCase().includes('isadding')) { color = GetColor('yellow') }
|
if (req.url.toLowerCase().includes('isadding')) { color = GetColor('yellow') }
|
||||||
if (!toFile) {
|
if (!toFile) {
|
||||||
Log(logEntry, color)
|
Log(logEntry, color)
|
||||||
|
|
|
@ -53,6 +53,7 @@ function Load () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function LogStat (url) {
|
function LogStat (url) {
|
||||||
|
url = url.split('?')[0]
|
||||||
Inc(url)
|
Inc(url)
|
||||||
AddVisitStat(url)
|
AddVisitStat(url)
|
||||||
Save()
|
Save()
|
||||||
|
|
|
@ -43,6 +43,15 @@
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.openall {
|
||||||
|
background-color: #212127;
|
||||||
|
color: #999999;
|
||||||
|
cursor: pointer;
|
||||||
|
border: none;
|
||||||
|
outline: none;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
.active,
|
.active,
|
||||||
.collapsible:hover {
|
.collapsible:hover {
|
||||||
background-color: #555;
|
background-color: #555;
|
||||||
|
@ -64,6 +73,7 @@
|
||||||
</h2>
|
</h2>
|
||||||
</p>
|
</p>
|
||||||
<a href="<%=siteurl%>/allqr"> Letöltés </a>
|
<a href="<%=siteurl%>/allqr"> Letöltés </a>
|
||||||
|
<button class="openall" onclick="openall()"> Összes kinyitása </button>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<% include aludni.ejs %>
|
<% include aludni.ejs %>
|
||||||
|
@ -107,6 +117,13 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function openall () {
|
||||||
|
var coll = document.getElementsByClassName("content");
|
||||||
|
var i;
|
||||||
|
for (i = 0; i < coll.length; i++) {
|
||||||
|
coll[i].style.display = "block";
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<% include b.ejs %>
|
<% include b.ejs %>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue