Added info table to live chart
public/javascripts/datetime.js - wrong call fixed public/javascripts/global.js - direct call to live chart if sensorid is given public/javascripts/showcharts.js - info table added public/stylesheets/style.sass - style for infotabel - changed color vor nav tabs
This commit is contained in:
@@ -10,7 +10,7 @@ import * as chart_dayavg from './chart_dayavg.js'
|
||||
import * as chart_daynight from './chart_daynight.js'
|
||||
import * as chart_lden from './chart_lden.js'
|
||||
import * as utils from "./chart_utilities.js";
|
||||
import { tabtable, loadAll } from './showcharts.js'
|
||||
import {tabtable, loadAll, showChart} from './showcharts.js'
|
||||
import { DateTime } from './luxon.min.js'
|
||||
|
||||
|
||||
@@ -104,18 +104,23 @@ import { DateTime } from './luxon.min.js'
|
||||
setInterval(() => dt.showDate(false), 1000)
|
||||
|
||||
// show version and version-date
|
||||
document.querySelector('#versn').setHTML(`Version: ${sysparams.version} vom ${sysparams.date.slice(0,10)}`)
|
||||
document.querySelector('#versn').innerHTML =
|
||||
`Version: ${sysparams.version} vom ${sysparams.date.slice(0,10)}`
|
||||
|
||||
const csid = parseInt(sysparams.csid)
|
||||
if(csid !== -1) {
|
||||
let triggerEl = document.querySelector('#livetab')
|
||||
bootstrap.Tab.getInstance(triggerEl).show() // Select tab by name
|
||||
params.sid = csid
|
||||
await chart_live.showLive(params)
|
||||
let ok = await showChart(params, 'live', 'dlive')
|
||||
if (ok) {
|
||||
loadAll(params)
|
||||
status.loaded = true
|
||||
}
|
||||
} else {
|
||||
// show the map
|
||||
map.showMap(params, status)
|
||||
}
|
||||
|
||||
// show the map
|
||||
map.showMap(params, status)
|
||||
}
|
||||
|
||||
main().catch(console.error)
|
||||
|
||||
Reference in New Issue
Block a user