Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 913: | Rivi 913: | ||
// create ice cover series | // create ice cover series | ||
if ( memo.obscode == 'ice_cat_2,4,5' ) { | if ( memo.obscode == 'ice_cat_2,4,5' ) { | ||
memo.obsesS = {}; | memo.obsesS = {}; | ||
for ( var o in memo.obsesA ) { | for ( var o in memo.obsesA ) { | ||
var obs = memo.obsesA[ o ]; | var obs = memo.obsesA[ o ]; | ||
| Rivi 940: | Rivi 943: | ||
if ( obs.data.cat == '4' ) { | if ( obs.data.cat == '4' ) { | ||
if ( typeof memo.seriesO[ 'ice_cat_4' ] == 'undefined' ) { | if ( typeof memo.seriesO[ 'ice_cat_4' ] == 'undefined' ) { | ||
memo.seriesO[ 'ice_cat_4' ] = { 'id': 'ice_cat_4', 'order': 10, 'title': i18n[ 'ice_cat_4' ].title[ memo.lang ], 'type': ' | memo.seriesO[ 'ice_cat_4' ] = { 'id': 'ice_cat_4', 'order': 10, 'title': i18n[ 'ice_cat_4' ].title[ memo.lang ], 'type': 'download', 'color': i18n[ 'ice_cat_4' ].color, obses: [] }; | ||
} | } | ||
memo.seriesO[ 'ice_cat_4' ].obses.push( { 'obsdatetime': obs.obsdatetime, 'season': obs.season, 'value | memo.seriesO[ 'ice_cat_4' ].obses.push( { 'obsdatetime': obs.obsdatetime, 'season': obs.season, 'value': i18n[ 'ice_cat_4' ].title[ memo.lang ], 'valueUnit': '', 'addInfo': '', 'addInfoTxt': '', 'media_url': '', 'maintainer': memo.obsesS[ obs.season ][ 'maintainer' ], 'xvalue': obs.seasonmiddle, 'tooltip': '<p><b>' + i18n[ 'season' ][ 'winter' ][ memo.lang ] + ' ' + obs.season + '–' + (obs.season+1) + '</b></p><p>' + i18n[ 'ice_cat_4' ].title[ memo.lang ] + ': ' + days + ' ' + i18n[ 'days' ][ memo.lang ] + '</p>' } ); | ||
} | } | ||
} | } | ||


