grey out any stemma node not in the collation
[scpubgit/stemmatology.git] / TreeOfTexts / root / src / index.tt
CommitLineData
dbcf12a6 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3 <head>
4 <META http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
6 <script type="text/javascript" src="js/jquery-ui-1.8.10.custom.min.js"></script>
7 <script type="text/javascript" src="js/interaction.js"></script>
54f0ce46 8 <link type="text/css" href="[% c.uri_for('css/cupertino/jquery-ui-1.8.13.custom.css') %]" rel="stylesheet" />
9 [% INCLUDE style.tt2 %]
dbcf12a6 10 </head>
11 <body>
54f0ce46 12 <h1>Stexaminer</h1>
0a8f09a9 13 <h2>[% text_title %]</h2>
d5c17cec 14 <div id="statistics">
15 <p>Analyzed [% total %] variant locations, of which [% genealogical %] entirely followed the stemma. [% conflict %] readings conflicted with the stemma.</p>
16 </div>
54f0ce46 17 <div id="svg_graph">
dbcf12a6 18 [% svg %]
19 </div>
54f0ce46 20 <div id="variants_table">
ce14597f 21 <table>
22[% FOREACH row IN variants -%]
23[% INCLUDE variantrow %]
24[% END -%]
732152b1 25 </table>
26 </div>
dbcf12a6 27 </body>
28</html>
29
ce14597f 30[% BLOCK variantrow -%]
31[% SET rowclass = 'class="genealogical"' IF row.genealogical -%]
32[% SET rowclass = 'class="coincidental"' UNLESS row.genealogical -%]
33 <tr [% rowclass %]>
34 <th><span class="rowid">[% row.id %]</span></th>
35[% FOREACH reading IN row.readings -%]
9c52877e 36[% SET cellclass = 'clickable conflict' IF reading.conflict -%]
0a8f09a9 37[% SET cellclass = 'clickable' IF !reading.conflict -%]
d5c17cec 38 <td class="[% cellclass %]"><span onclick="color_nodes($(this).parent().index(), [% reading.group %], [% reading.missing %]);$(this).parents('tr').addClass('active_variant_row');$(this).parent().addClass('active_variant_cell cellb'+($(this).parent().index()-1))">[% reading.text %]</span></td>
ce14597f 39[% END -%]
40[% FILTER repeat( row.empty ) -%]
41 <td/>
42[% END -%]
43 </tr>
44[% END -%]