Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 43: | Rivi 43: | ||
memo.graphType = jQuery( this ).attr( 'data-graph-type' ); | memo.graphType = jQuery( this ).attr( 'data-graph-type' ); | ||
memo.editUrl = jQuery( this ).attr( 'data-edit-url' ); if (typeof memo.editUrl == 'undefined') { memo.editUrl = '-'; } | memo.editUrl = jQuery( this ).attr( 'data-edit-url' ); if (typeof memo.editUrl == 'undefined') { memo.editUrl = '-'; } | ||
memo.maintainerUrl = ( jQuery( this ).attr( 'data-maintainer' ).toLowerCase() == 'true' ); | |||
memo.id = jQuery( this ).attr( 'id' ); if (typeof memo.id == 'undefined') { memo.id = 'jwsitegraph_' + Math.random() + '_container'; jQuery( this ).attr( 'id', memo.id ); } | memo.id = jQuery( this ).attr( 'id' ); if (typeof memo.id == 'undefined') { memo.id = 'jwsitegraph_' + Math.random() + '_container'; jQuery( this ).attr( 'id', memo.id ); } | ||
| Rivi 273: | Rivi 274: | ||
//if ( memo.graphType == 'dateofyear' ) { baseSize = baseSize + 1; } | //if ( memo.graphType == 'dateofyear' ) { baseSize = baseSize + 1; } | ||
if ( memo.maintainerShow ) { maintcol = maintColors[obs.maintainer]; } | |||
else { maintcol = 'transparent'; } | |||
if (!!obs.addInfo) { | if (!!obs.addInfo) { | ||
obs.style = 'point { shape-type: star; size: ' + (baseSize+3) + '; shape-dent: 0.5; fill-color: ' + colors['noticeObses'] + '; stroke-width: 0; stroke-color: ' + | obs.style = 'point { shape-type: star; size: ' + (baseSize+3) + '; shape-dent: 0.5; fill-color: ' + colors['noticeObses'] + '; stroke-width: 0; stroke-color: ' + maintcol + '; }'; | ||
} else { | } else { | ||
obs.style = 'point { size: ' + baseSize + '; stroke-width: 0.5; stroke-color: ' + | obs.style = 'point { size: ' + baseSize + '; stroke-width: 0.5; stroke-color: ' + maintcol + '; }'; | ||
} | } | ||


