update
This commit is contained in:
@@ -241,7 +241,16 @@ window.onload = function() {
|
|||||||
.then(data => {
|
.then(data => {
|
||||||
//get device ID
|
//get device ID
|
||||||
const deviceID = data.deviceID.trim().toUpperCase();
|
const deviceID = data.deviceID.trim().toUpperCase();
|
||||||
document.getElementById('pageTitle_plus_ID').innerText = 'token: ' + deviceID;
|
//document.getElementById('pageTitle_plus_ID').innerText = 'token: ' + deviceID;
|
||||||
|
//get device Name
|
||||||
|
const deviceName = data.deviceName;
|
||||||
|
|
||||||
|
const elements = document.querySelectorAll('.sideBar_sensorName');
|
||||||
|
elements.forEach((element) => {
|
||||||
|
element.innerText = deviceName;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//get local RTC
|
//get local RTC
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|||||||
Reference in New Issue
Block a user