Ralf D. Müller 4 лет назад
Родитель
Сommit
f371c176b6
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      sd-card/html/graph.html

+ 2 - 1
sd-card/html/graph.html

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