Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 93: | Rivi 93: | ||
jw.obstype[ot].type = 'none'; | jw.obstype[ot].type = 'none'; | ||
} | } | ||
if ( jw.obstype[ot].type != 'none' ) { | if ( jw.obstype[ot].type != 'none' ) { | ||
if ( jw.obstype[ot].type < -20 ) { | if ( jw.obstype[ot].type < -20 ) { | ||
jw.obstype[ot].cat = | jw.obstype[ot].cat = 1; | ||
} else if ( jw.obstype[ot].type < -10 ) { | } else if ( jw.obstype[ot].type < -10 ) { | ||
jw.obstype[ot].cat = | jw.obstype[ot].cat = 2; | ||
} else if ( jw.obstype[ot].type < 10 ) { | } else if ( jw.obstype[ot].type < 10 ) { | ||
jw.obstype[ot].cat = | jw.obstype[ot].cat = 3; | ||
} else if ( jw.obstype[ot].type < 20 ) { | } else if ( jw.obstype[ot].type < 20 ) { | ||
jw.obstype[ot].cat = | jw.obstype[ot].cat = 4; | ||
} else { | } else { | ||
jw.obstype[ot].cat = | jw.obstype[ot].cat = 5; | ||
} | } | ||
} | } | ||
} else { | } else { | ||
jw.obstype[ ot ].sum += data.val / days; | jw.obstype[ ot ].sum += data.val / days; | ||


