cols[++col] = same;
}
}
+ for (var col = 0; col < cols.length; col++) {
+ cols[col] = cols[col].innerHTML.trimRight();
+ }
// copy letters into sample
var output = '';
}
if (col < cols.length) {
- output += '<span>' + (cols[col].innerHTML.trimRight() || ' ') + '</span>';
+ output += '<span>' + (cols[col] || ' ') + '</span>';
}
else {
output += ' ';
}
}
+ if (cols[29] && !cols[28]) {
+ // circumfix sign if no repetition
+ output = cols[29] + output + cols[29];
+ }
samplecol.innerHTML = output;
}
};