Ei muokkausyhteenvetoa Merkkaus: Muokkaamalla palautettu |
Ei muokkausyhteenvetoa |
||
| Rivi 64: | Rivi 64: | ||
out += '<div class="row Xalign-items-center mt-4">'; | out += '<div class="row Xalign-items-center mt-4">'; | ||
if ( typeof jw.obstype[ 'temp' ] != 'undefined' ) { | |||
if ( jw.obstype[ 'temp' ].count > 0 ) { | |||
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="width: 120px; height: 120px; margin: auto; border-radius: 50%; Xbackground-color: var(--syke-green); font-size: 56px; display: flex; justify-content: center; align-items: center; flex-direction: column;">+ | out += '<div style="width: 120px; height: 120px; margin: auto; border-radius: 50%; Xbackground-color: var(--syke-green); font-size: 56px; display: flex; justify-content: center; align-items: center; flex-direction: column;">+' + Math.round( jw.obstype[ 'temp' ].mean ) + '°</div>'; | ||
out += '<h2 class="h5">Pintaveden<br />lämpötila</h2>'; | out += '<h2 class="h5">Pintaveden<br />lämpötila</h2>'; | ||
out += '</div>'; | 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">'; | ||


