Ero sivun ”Widget:JwCurrentCharts” versioiden välillä
Järvi-meriwikistä
Rivi 629: | Rivi 629: | ||
x = col * 10 + 1; | x = col * 10 + 1; | ||
y = row * 10 + 1; | y = row * 10 + 1; | ||
− | if ( | + | if ( icount > 0 ) { |
dist = Math.sqrt( Math.pow( (4.5-col), 2 ) + Math.pow( (4.5-row), 2 ) )/ Math.sqrt( 40.5 ); | dist = Math.sqrt( Math.pow( (4.5-col), 2 ) + Math.pow( (4.5-row), 2 ) )/ Math.sqrt( 40.5 ); | ||
if ( today.getMonth() > 0 && today.getMonth() < 6 ) { dist = 1- dist; } | if ( today.getMonth() > 0 && today.getMonth() < 6 ) { dist = 1- dist; } |