diff --git a/diffir/templates/template.html b/diffir/templates/template.html index b082cc9..1ff4fd2 100644 --- a/diffir/templates/template.html +++ b/diffir/templates/template.html @@ -315,6 +315,7 @@
var newEl = $('') .append($('') .attr('data-docid', doc.doc_id) + .attr('rank1-rank', doc.rank) .append($('') // .css('padding-' + docIdFloat, '30px') .append(doc.rank) @@ -379,6 +380,8 @@ var newEl = $('') // .append($('').text(symbol).css('float', docIdFloat).css('text-align', docIdFloat === 'right' ? 'left' : 'right').attr('title', tip)) .append($('') + .attr("run1-rank", docIdFloat === 'right' ? doc.rank : (otherRank === null ? "No" : otherRank)) + .attr("run2-rank", docIdFloat === 'right' ? (otherRank === null ? "No" : otherRank): doc.rank) .attr('data-docid', doc.doc_id) .append($('') .css('padding-' + docIdFloat, '30px') @@ -474,20 +477,26 @@ .appendTo(document.body); var legendTable = $('