Ero sivun ”Widget:JwCurrentCharts” versioiden välillä
Järvi-meriwikistä
Rivi 617: | Rivi 617: | ||
if ( ic > 0 ) { | if ( ic > 0 ) { | ||
dist = Math.sqrt( Math.pow( (5-x), 2 ) + Math.pow( (5-y), 2 ) ); | dist = Math.sqrt( Math.pow( (5-x), 2 ) + Math.pow( (5-y), 2 ) ); | ||
+ | console.log( x + ', ' + y + ', ' + dist ); | ||
if ( Math.random() < ( ( iavg * dist ) / 3 ) ) { | if ( Math.random() < ( ( iavg * dist ) / 3 ) ) { | ||
aclass = 'ice1'; | aclass = 'ice1'; |