Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| (2 välissä olevaa versiota samalta käyttäjältä ei näytetä) | |||
| Rivi 72: | Rivi 72: | ||
//use just the most recent from level obses | //use just the most recent from level obses | ||
if ( ot == 'level' ) { jw.wbody[ wb ][ ot ].obses.splice(1); } | if ( ot == 'level' ) { jw.wbody[ wb ][ ot ].obses.splice(1); } | ||
for ( var oi in jw.wbody[ wb ][ ot ].obses ) { | for ( var oi in jw.wbody[ wb ][ ot ].obses ) { | ||
| Rivi 111: | Rivi 109: | ||
if ( ot == 'level' ) { | if ( ot == 'level' ) { | ||
if ( typeof data.inreltodateavg != 'undefined' ) { | if ( typeof data.inreltodateavg != 'undefined' ) { | ||
jw.wbody[ wb ][ot].mean = data.inreltodateavg; | jw.wbody[ wb ][ot].mean = data.inreltodateavg; | ||
| Rivi 164: | Rivi 161: | ||
ot = jw.obsorder[ i ].obstype; | ot = jw.obsorder[ i ].obstype; | ||
if ( ot != 'level' || jw.wbody[ wb ][ ot ].type != 'absolute' ) { | if ( ot != 'level' || ( jw.wbody[ wb ][ ot ].type != 'absolute' && jw.wbody[ wb ][ ot ].mean !== null ) ) { | ||
out += '<div class="col col-6 col-sm-4 col-md-3 text-center">'; | out += '<div class="col col-6 col-sm-4 col-md-3 text-center">'; | ||
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.wbody[ wb ][ ot ].obses.length > 1 | if ( jw.wbody[ wb ][ ot ].obses.length > 1 ) { | ||
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.wbody[ wb ][ ot ].obses.length + ' kpl.'; | tooltip = 'Pintaveden lämpötila on painotettu keskiarvo viimeisen 7 vuorokauden aikana järvelle tallennetuista havainnoista. Näitä havaintoja on yhteensä ' + jw.wbody[ wb ][ ot ].obses.length + ' kpl.'; | ||


