Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 35: | Rivi 35: | ||
memo.season = i18n[memo.obscode]['season']; | memo.season = i18n[memo.obscode]['season']; | ||
− | if ( memo.season == 'summer' || | + | if ( memo.season == 'summer' || today.getMonth() > 7 ) { |
− | memo.curSeason = | + | memo.curSeason = today.getFullYear(); |
} else { | } else { | ||
− | memo.curSeason = | + | memo.curSeason = today.getFullYear()-1; |
} | } | ||
Rivi 73: | Rivi 73: | ||
function obsesReady() { | function obsesReady() { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
data = {}; | data = {}; | ||
Rivi 241: | Rivi 200: | ||
doResize(); | doResize(); | ||
− | } | + | }); |
+ | |||
memo.fullscreenEl.on( 'click', function() { | memo.fullscreenEl.on( 'click', function() { |