Columnizer-jQuery-Plugin
Columnizer-jQuery-Plugin copied to clipboard
Usability on text splitting (suggestion)
If some text is split mid-paragraph/mid-sentence, it is a nice little touch to add an "mdash" entity at the split point, to make it clear to the reader what has happened.
Columns aren't usual for websites, so pulling out this traditional typographical trick works well to hint to the user what is going on, so they don't need to think.
var partsUsed = 0;
while($parentColumn.height() < height && oText.length != 0){
...
partsUsed++;
...
}
if($parentColumn.height() >= height && latestTextNode != null){
...
partsUsed--;
}
if(oText.length){
...
if (partsUsed != 0)
{
latestTextNode = document.createTextNode(' \u2014');
$putInHere.append(latestTextNode);
}