%]
<script type="text/javascript">
var readingstats = [% reading_statistics %];
+var graphdot = '[% graphdot %]';
</script>
[% END -%]
<h1>Stexaminer</h1>
[% END -%]
</table>
</div>
- <div id="stemma_graph">
- [% svg %]
- </div>
- <div id="row_statistics">
- <h3>Aggregate text statistics</h3>
- <ul>
- <li>Total number of variant locations analyzed: [% total %]</li>
- <li>Number of fully genealogical locations: [% genealogical %]</li>
- <li>Number of readings that conflict with the stemma: [% conflict %]</li>
- <li>Genealogical reading transitions by relationship type: [% todo %]</li>
- </ul>
- <p>(Choose a row in the table to display statistics about individual readings.)</p>
+ <div>
+ <div id="stemma_graph">
+ [% svg %]
+ </div>
+ <div id="row_statistics">
+ <h3>Aggregate text statistics</h3>
+ <ul>
+ <li>Total number of variant locations analyzed: [% total %]</li>
+ <li>Number of fully genealogical locations: [% genealogical %]</li>
+ <li>Number of readings that conflict with the stemma: [% conflict %]</li>
+ <li>Genealogical reading transitions by relationship type: [% todo %]</li>
+ </ul>
+ <p>(Choose a row in the table to display statistics about individual readings.)</p>
+ </div>
</div>
<div id="stats_template" class="template">
<!-- reading_template will be appended here for each reading -->
</div>
- <div id="reading_template" class="template">
+ <div id="reading_template" class="template">
<div class="reading_statistics">
- <span class="readinglabel"></span> - copied <span class="reading_copied"></span> times, changed <span class="reading_changed"></span> times<br/>
+ <span class="readinglabel"></span> - copied <span class="reading_copied"></span> time(s), changed <span class="reading_changed"></span> time(s)<br/>
Reading root(s) at <span class="readingroots"></span><br/>
<!-- reading_parent_template will be appended here if there are parents -->
</div>
[% SET rowclass = 'class="genealogical"' IF row.genealogical -%]
[% SET rowclass = 'class="coincidental"' UNLESS row.genealogical -%]
<tr [% rowclass %]>
- <th><span class="rowid" onclick="color_row($(this));show_stats($(this).parent().parent().index())">[% row.id %]</span></th>
+ <th><span class="rowid" onclick="handle_row_click($(this))">[% row.id %]</span></th>
[% FOREACH reading IN row.readings -%]
[% SET cellclass = 'clickable conflict' IF reading.conflict -%]
[% SET cellclass = 'clickable' IF !reading.conflict -%]