X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/9b34f6d9fa60d96025fe3835777f277b9cc002ad..ecafe82fb6cb293e9cf45a6a2f6474858f429221:/latinsample.js diff --git a/latinsample.js b/latinsample.js index fa6b0f1..37d3231 100644 --- a/latinsample.js +++ b/latinsample.js @@ -3,6 +3,10 @@ function appendsample() { for (var row of rows) { // append sample column var samplecol = row.getElementsByClassName('sample'); + if (!this.value.length) { + row.removeChild(samplecol[0]); + continue; + } if (samplecol.length) { samplecol = samplecol[0]; } @@ -42,6 +46,9 @@ function appendsample() { else { output += ' '; } + if (row.parentNode.tagName == 'THEAD') { + output += col < 26 ? ' ' : '· '; // number separator + } } if (cols[29] && !cols[28]) { // circumfix sign if no repetition