Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 70: | Rivi 70: | ||
jw.obstype[ ot ].catcount = jw.obstype[ ot ].catcount + 1/days; | jw.obstype[ ot ].catcount = jw.obstype[ ot ].catcount + 1/days; | ||
jw.obstype[ ot ].catmean = jw.obstype[ ot ].catsum / jw.obstype[ ot ].catcount; | jw.obstype[ ot ].catmean = jw.obstype[ ot ].catsum / jw.obstype[ ot ].catcount; | ||
} else { | } else { | ||
| Rivi 111: | Rivi 105: | ||
out += '<div style="height: 40px; display: flex; justify-content: center; align-items: center; flex-direction: column;">'; | out += '<div style="height: 40px; display: flex; justify-content: center; align-items: center; flex-direction: column;">'; | ||
if ( jw.obstype[ ot ].obses.length > 1 | if ( jw.obstype[ ot ].obses.length > 1 && ot != 'level' ) { | ||
if ( ot == 'temp' ) { | if ( ot == 'temp' ) { | ||
tooltip = 'Pintaveden lämpötila on painotettu keskiarvo viimeisen 7 vuorokauden aikana järvelle tallennetuista havainnoista. Näitä havaintoja on yhteensä ' + jw.obstype[ ot ].obses.length + ' kpl, joista uusin on tehty ' + jw.obstype[ ot ].newest.inRelationToToday() + '.'; | tooltip = 'Pintaveden lämpötila on painotettu keskiarvo viimeisen 7 vuorokauden aikana järvelle tallennetuista havainnoista. Näitä havaintoja on yhteensä ' + jw.obstype[ ot ].obses.length + ' kpl, joista uusin on tehty ' + jw.obstype[ ot ].newest.inRelationToToday() + '.'; | ||


