This commit is contained in:
Ralf D. Müller
2022-10-15 16:04:49 +00:00
parent f371c176b6
commit 4fca050623

View File

@@ -19,7 +19,8 @@ function run() {
<button onclick="document.getElementById('editor').hidden = false; this.hidden = true;" >Editor</button>
<div id='editor' hidden='true'>
<textarea id="cnsl">
var date = getFullYear() + "-" + (getMonth()+1) + "-" + getDate();
const d = new Date();
var date = d.getFullYear() + "-" + (d.getMonth()+1) + "-" + d.getDate();
fetch('/fileserver/log/message/log_'+date+'.txt')
.then(response => {
// handle the response