mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 20:16:55 +03:00
set current date
This commit is contained in:
@@ -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">
|
||||
fetch('/fileserver/log/message/log_2022-10-15.txt')
|
||||
var date = getFullYear() + "-" + (getMonth()+1) + "-" + getDate();
|
||||
fetch('/fileserver/log/message/log_'+date+'.txt')
|
||||
.then(response => {
|
||||
// handle the response
|
||||
response.text()
|
||||
|
||||
Reference in New Issue
Block a user