Ero sivun ”Widget:Test4” versioiden välillä
Järvi-meriwikistä
Rivi 658: | Rivi 658: | ||
mwDate = new Date( memo.obsesA[o].compareDate.getFullYear(), memo.obsesA[o].compareDate.getMonth(), memo.obsesA[o].compareDate.getDate(), 12 ); | mwDate = new Date( memo.obsesA[o].compareDate.getFullYear(), memo.obsesA[o].compareDate.getMonth(), memo.obsesA[o].compareDate.getDate(), 12 ); | ||
mwDate.setDate( mwDate.getDate() - mwDate.getDay() + 3 ); | mwDate.setDate( mwDate.getDate() - mwDate.getDay() + 3 ); | ||
+ | |||
w = mwDate.getWeek(); | w = mwDate.getWeek(); | ||
v = memo.obsesA[o].value; | v = memo.obsesA[o].value; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
if ( typeof memo.avgW[w] == 'undefined' ) { | if ( typeof memo.avgW[w] == 'undefined' ) { | ||
Rivi 1 244: | Rivi 1 240: | ||
var seriesC = [ 'lightgray', '#3366cc', 'orange' ]; | var seriesC = [ 'lightgray', '#3366cc', 'orange' ]; | ||
− | var colors = { 'average': ' | + | var colors = { 'average': '#3366cc', 'trend': '#ff4500', 'obses': 'lightgray', 'curObses': '#3366cc', 'selObses': 'gold', 'noticeObses': 'tan' }; |
var i18n = { | var i18n = { |