Ero sivun ”Widget:XJwCharts” versioiden välillä
Järvi-meriwikistä
Rivi 22: | Rivi 22: | ||
jQuery( '.jwChartWidget' ).each( function() { | jQuery( '.jwChartWidget' ).each( function() { | ||
− | var memo = { | + | var memo = { 'now': new Date() }; |
− | |||
memo.widgetEl = jQuery( this ); | memo.widgetEl = jQuery( this ); | ||
− | if ( typeof memo.widgetEl.prop( 'id' ) == 'undefined' ) { memo.widgetEl.prop( 'id', 'jwChartWidget_' + now.getTime() ); } | + | if ( typeof memo.widgetEl.prop( 'id' ) == 'undefined' ) { memo.widgetEl.prop( 'id', 'jwChartWidget_' + memo.now.getTime() ); } |
memo.widgetEl.css( 'position', 'relative' ); | memo.widgetEl.css( 'position', 'relative' ); | ||
Rivi 108: | Rivi 107: | ||
memo.season = i18n[memo.obscode]['season']; | memo.season = i18n[memo.obscode]['season']; | ||
− | if ( memo.season == ' | + | memo.curSeason = memo.now.getFullYear(); |
− | + | if ( memo.season == 'winter' && memo.now.getMonth() < 8 ) { memo.curSeason--; } | |
− | + | ||
− | |||
− | |||
− | |||
− | |||