Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 23: | Rivi 23: | ||
jw.loadObses( { 'obscode': 'ice', 'waterbody': page, 'startdate': twoweeksago.toISOString() }, function( o ) { | jw.loadObses( { 'obscode': 'ice', 'waterbody': page, 'startdate': twoweeksago.toISOString() }, function( o ) { | ||
jw.loadObses( { 'obscode': 'secchi', 'waterbody': page, 'startdate': amonthago.toISOString() }, function( o ) { | jw.loadObses( { 'obscode': 'secchi', 'waterbody': page, 'startdate': amonthago.toISOString() }, function( o ) { | ||
obsesReady(); | |||
}); | }); | ||
}); | }); | ||
| Rivi 79: | Rivi 77: | ||
} | } | ||
} | } | ||
console.log( data ); | |||
jw.obstype[ ot ].sum += data.val / days; | jw.obstype[ ot ].sum += data.val / days; | ||
jw.obstype[ ot ].count = jw.obstype[ ot ].count + 1/days; | jw.obstype[ ot ].count = jw.obstype[ ot ].count + 1/days; | ||
| Rivi 207: | Rivi 205: | ||
} else if ( ot == 'level' ) { | } else if ( ot == 'level' ) { | ||
console.log( jw ); | |||
//out += '<div style="width: 84px; height: 84px; margin: auto; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-direction: column; background-color: none;">'; | //out += '<div style="width: 84px; height: 84px; margin: auto; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-direction: column; background-color: none;">'; | ||


