From: Tara L Andrews Date: Sun, 2 Oct 2011 23:37:16 +0000 (+0200) Subject: changes requested by Joris X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ce14597feff81761c2f1698c76cc0d3de9a7d4aa;p=scpubgit%2Fstemmatology.git changes requested by Joris --- diff --git a/TreeOfTexts/root/js/interaction.js b/TreeOfTexts/root/js/interaction.js index 42af732..17a1906 100644 --- a/TreeOfTexts/root/js/interaction.js +++ b/TreeOfTexts/root/js/interaction.js @@ -1,5 +1,10 @@ +$(document).ready(function() { + $('.rowid').click( function() { + $(this).parent().nextAll('.clickable').children('span').click(); + }); +}) function color_nodes( arr_node_ids ) { - $('ellipse').attr( {stroke:'black', fill:'#fff'} ); + $('ellipse').attr( {stroke:'black', fill:'#999'} ); jQuery.each( arr_node_ids, function(index,value) { $('.node').children('title').filter( function(index) { return $(this).text() == value; diff --git a/TreeOfTexts/root/src/index.tt b/TreeOfTexts/root/src/index.tt index 66e3edb..24b31e8 100644 --- a/TreeOfTexts/root/src/index.tt +++ b/TreeOfTexts/root/src/index.tt @@ -11,23 +11,25 @@ [% svg %]
- - [% FOREACH row IN variants -%] - [% INCLUDE variantrow %] - [% END -%] +
+[% FOREACH row IN variants -%] +[% INCLUDE variantrow %] +[% END -%]
-[% BLOCK variantrow %] - - [% row.id %] - [% FOREACH reading IN row.readings -%] - [% reading.text %] - [% END -%] - [% FILTER repeat( row.empty ) -%] - - [% END -%] - -[% END %] \ No newline at end of file +[% BLOCK variantrow -%] +[% SET rowclass = 'class="genealogical"' IF row.genealogical -%] +[% SET rowclass = 'class="coincidental"' UNLESS row.genealogical -%] + + [% row.id %] +[% FOREACH reading IN row.readings -%] + [% reading.text %] +[% END -%] +[% FILTER repeat( row.empty ) -%] + +[% END -%] + +[% END -%] \ No newline at end of file