Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 94: | Rivi 94: | ||
ot = jw.obstypeorder[ i ]; | ot = jw.obstypeorder[ i ]; | ||
out += '<div class="col col-6 col-sm-3 col-md-2 text-center">'; | out += '<div class="col col-6 col-sm-3 col-md-2 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;">'; | ||
| Rivi 103: | Rivi 103: | ||
out += '</div>'; | out += '</div>'; | ||
if ( ot == 'temp' ) { | if ( ot == 'temp' ) { | ||
out += '<div style="width: 84px; height: 84px; margin: auto; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-direction: column; background-color: none;">'; | out += '<div style="width: 84px; height: 84px; margin: auto; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-direction: column; background-color: none;">'; | ||
out += '<div style="font-size: 44px;">+' + Math.round( jw.obstype[ ot ].mean ) + '°</div>'; | out += '<div style="font-size: 44px;">+' + Math.round( jw.obstype[ ot ].mean ) + '°</div>'; | ||
| Rivi 114: | Rivi 114: | ||
out += '</div>'; | out += '</div>'; | ||
} else if ( ot = 'alg' ) { | } else if ( ot == 'alg' ) { | ||
var algmean = Math.round( jw.obstype[ ot ].mean ); | var algmean = Math.round( jw.obstype[ ot ].mean ); | ||
var algtxt = [ 'Ei sinilevää', 'Hieman<br />sinilevää', 'Runsaasti<br />sinilevää', 'Erit. runsaasti<br />sinilevää' ]; | var algtxt = [ 'Ei sinilevää', 'Hieman<br />sinilevää', 'Runsaasti<br />sinilevää', 'Erit. runsaasti<br />sinilevää' ]; | ||
| Rivi 128: | Rivi 128: | ||
} else if ( ot == 'ice' ) { | } else if ( ot == 'ice' ) { | ||
icecatmean = Math.round( jw.obstype[ ot ].catmean ); | icecatmean = Math.round( jw.obstype[ ot ].catmean ); | ||
icetxt = [ 'Ei jäätä', 'Osittain jäässä', 'Yhtenäinen jääpeite' ]; | icetxt = [ 'Ei jäätä', 'Osittain jäässä', 'Yhtenäinen jääpeite' ]; | ||
| Rivi 157: | Rivi 157: | ||
} else if ( ot == 'secchi' ) { | } else if ( ot == 'secchi' ) { | ||
out += '<div style="width: 84px; height: 84px; margin: auto; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-direction: column; background-color: none;">'; | out += '<div style="width: 84px; height: 84px; margin: auto; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-direction: column; background-color: none;">'; | ||
out += '<div style="font-size: 36px;">' + ( Math.round( jw.obstype[ ot ].mean * 10 ) / 10 ).toString().replace( '.', ',' ) + '</div>'; | out += '<div style="font-size: 36px;">' + ( Math.round( jw.obstype[ ot ].mean * 10 ) / 10 ).toString().replace( '.', ',' ) + '</div>'; | ||


