Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 59: | Rivi 59: | ||
// var page = encodeURI( '<!--{$page|default:x|escape:'html'}-->' ); | // var page = encodeURI( '<!--{$page|default:x|escape:'html'}-->' ); | ||
out = '<h2 class="h3">Välijärvi nyt</h2>'; | out = ''; | ||
//out += '<h2 class="h3">Välijärvi nyt</h2>'; | |||
out += '<div class="row Xalign-items-center mt-4">'; | out += '<div class="row Xalign-items-center mt-4">'; | ||
| Rivi 83: | Rivi 84: | ||
} | } | ||
if ( typeof jw.obstype[ 'ice' ] != 'undefined' ) { | |||
if ( jw.obstype[ 'ice' ].count > 0 || jw.obstype[ 'ice' ].catcount > 0 ) { | |||
icetxt = [ 'Ei jäätä', 'Jäätymässä', 'Pysyvä jääpeite', 'Jäänlähtö' ]; | |||
out += '<div class="col col-6 col-sm-4 col-md-3 text-center">'; | |||
out += '<div style="width: 120px; height: 120px; margin: auto; border-radius: 50%; background-color: #fff;">'; | |||
out += Math.round( jw.obstype[ 'ice' ].mean ) + ' cm'; | |||
out += '</div>'; | |||
out += '<h2 class="h5">' + icetxt[ icecatmean ] + '</h2>'; | |||
out += '</div>'; | |||
} | |||
} | |||
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">'; | ||


