initial commit of Catalyst skeleton app
[scpubgit/stemmatology.git] / TreeOfTexts / root / js / interaction.js
1 function color_nodes( arr_node_ids ) {
2   $('ellipse').attr( {stroke:'black', fill:'#fff'} );
3   jQuery.each( arr_node_ids, function(index,value) {
4     $('.node').children('title').filter( function(index) {
5       return $(this).text() == value;
6     }).siblings('ellipse').attr( {stroke:'red', fill:'yellow'} );;
7   });
8 }