Ero sivun ”Widget:JwCurrentCharts” versioiden välillä
Järvi-meriwikistä
Rivi 599: | Rivi 599: | ||
iavg = Math.round( icatsum/icatcount ); | iavg = Math.round( icatsum/icatcount ); | ||
− | console.log( iavg ); | + | //console.log( iavg ); |
if ( iavg < 0.25 || memo.obsesA[0].data.cat == '5' ) { istr = 'Ei jäätä'; } | if ( iavg < 0.25 || memo.obsesA[0].data.cat == '5' ) { istr = 'Ei jäätä'; } | ||
Rivi 610: | Rivi 610: | ||
//tstr += '<br /><span>(' + tc.toString() + ' havaintoa)</span>'; | //tstr += '<br /><span>(' + tc.toString() + ' havaintoa)</span>'; | ||
//tstr += ' <span class="smaller">(n=' + tc.toString() + ')</span><br /><span>(viimeisin ' + memo.obsesA[0].obsdatetime.inRelationToToday(memo.lang).toLowerCase() + ')</span>'; | //tstr += ' <span class="smaller">(n=' + tc.toString() + ')</span><br /><span>(viimeisin ' + memo.obsesA[0].obsdatetime.inRelationToToday(memo.lang).toLowerCase() + ')</span>'; | ||
− | istr += '<br /><span class="smaller">(n=' + | + | istr += '<br /><span class="smaller">(n=' + icount.toString() + ', viimeisin ' + memo.obsesA[0].obsdatetime.inRelationToToday(memo.lang).toLowerCase() + ')</span>'; |
} | } | ||
} else { | } else { |