Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 46: | Rivi 46: | ||
var days = ( obs.comparedate.getTime() - now.getTime() ) / ( 1000*60*60*24 ); | var days = ( obs.comparedate.getTime() - now.getTime() ) / ( 1000*60*60*24 ); | ||
− | firstW = Math.min( firstW, winter ); lastW = Math.min( lastW, winter ); | + | firstW = Math.min( firstW, obs.winter ); lastW = Math.min( lastW, obs.winter ); |
if ( typeof data[ obs.winter ] == 'undefined' ) { data[ obs.winter ] = { 'winter': obs.winter }; } | if ( typeof data[ obs.winter ] == 'undefined' ) { data[ obs.winter ] = { 'winter': obs.winter }; } |