Commit | Line | Data |
361134f0 |
1 | var colors = ['#ffeeaa','#afc6e9','#d5fff6','#e5d5ff','#ffaaaa','#e5ff80','#ffccaa','#ffd5e5']; |
2 | var row_triggered = false; |
ce14597f |
3 | $(document).ready(function() { |
4 | $('.rowid').click( function() { |
361134f0 |
5 | row_triggered = true; |
6 | $('ellipse').attr( {stroke:'black', fill:'#eee'} ); |
ce14597f |
7 | $(this).parent().nextAll('.clickable').children('span').click(); |
361134f0 |
8 | row_triggered = false; |
ce14597f |
9 | }); |
10 | }) |
361134f0 |
11 | function color_nodes( column_index, arr_node_ids ) { |
12 | if( !row_triggered ) { $('ellipse').attr( {stroke:'black', fill:'#eee'} ) }; |
dbcf12a6 |
13 | jQuery.each( arr_node_ids, function(index,value) { |
14 | $('.node').children('title').filter( function(index) { |
15 | return $(this).text() == value; |
361134f0 |
16 | }).siblings('ellipse').each( function( index ) { |
17 | $(this).attr( {stroke:'black', fill:colors[column_index-1]} ); |
18 | }); |
dbcf12a6 |
19 | }); |
20 | } |
361134f0 |
21 | |
22 | // 8 columns tied to colors, based on td position I guess |
23 | // click on row id: all colors on, remaining (unused) nodes greyed |
24 | // click on cell: those colors on, unused nodes greyed |
25 | // c |
26 | |
27 | // |