Influx graph part only + device name on jump and start + fixed dselect z-index

This commit is contained in:
l_samenv
2024-08-21 10:05:47 +02:00
parent 2ea1674991
commit 89dd427a22
8 changed files with 115 additions and 12 deletions

View File

@ -95,7 +95,12 @@ function handleUpdateMessage(src, message) {
}
var header = document.getElementById("header");
header.style.width = 'auto';
header.innerHTML = clientTitle;
let instrument = document.getElementById("instrument");
let device = document.getElementById("device");
instrument.style.width = 'auto'
device.style.width = 'auto'
instrument.innerHTML = message.instrument
device.innerHTML = message.device
console.log('ID', initCommands);
nextInitCommand();
break;

View File

@ -768,7 +768,7 @@ let graphs = (function (){
AJAX("http://" + hostPort + "/getvars?time=" + msLeftTimestampGetVars/1000 + "," + msRightTimestampGetVars/1000 + "&all=" +allQueryParameterRepresentation(mode) + "&id="+ clientID).getJSON().then(function(data){
blocks = data.blocks;
document.getElementById("device").innerHTML = data.device
maxTime = msRightTimestampGetGraph;
minTime = msLeftTimestampGetGraph;
@ -853,7 +853,7 @@ let graphs = (function (){
minTime = msLeftTimestamp;
blocks = data.blocks;
document.getElementById("device").innerHTML = data.device
ngraphs = 0;
createGraphs();
globalIndicators.getIndicatorsMap()[datesKey].update(currentMinTime);

View File

@ -175,7 +175,7 @@ function toggleHeader() {
var main_panel = document.getElementById("main-panel");
panelOn = !panelOn;
if (panelOn) {
header.innerHTML = clientTitle
// header.innerHTML = clientTitle
/* header.style.width = "auto;"; */
main_panel.style.display = "block";
} else {