Demo/src/main/webapp/resources/js/jquery/js/plugin/css3-multi-column.js
// and returns the removed text as a string.

and returns the removed text as a string.
and returns the removed text as a string .
function stripOneLine(n) {
		while (n && n.nodeType != 3)
			n = n.firstChild;
		if (!n) return;
		var e = n.parentNode;
		var h = e.offsetHeight;
		if (!h) {
			return "";
		}
		var str = n.nodeValue;
		var wIdx = n.nodeValue.lastIndexOf(' ');
		while (wIdx != -1 && e.offsetHeight == h) {
			n.nodeValue = n.nodeValue.substr(0, wIdx);
			wIdx = n.nodeValue.lastIndexOf(' ');
			if (wIdx == -1) wIdx = n.nodeValue.lastIndexOf('\n');
		}
		if (e.offsetHeight == h)
			n.nodeValue = "";
		return str.substr(n.nodeValue.length);
	}
function stripOneLine ( n ) { while ( n && n . nodeType != 3 ) n = n . firstChild ; if ( ! n ) return ; var e = n . parentNode ; var h = e . offsetHeight ; if ( ! h ) { return "" ; } var str = n . nodeValue ; var wIdx = n . nodeValue . lastIndexOf ( ' ' ) ; while ( wIdx != - 1 && e . offsetHeight == h ) { n . nodeValue = n . nodeValue . substr ( 0 , wIdx ) ; wIdx = n . nodeValue . lastIndexOf ( ' ' ) ; if ( wIdx == - 1 ) wIdx = n . nodeValue . lastIndexOf ( '\n' ) ; } if ( e . offsetHeight == h ) n . nodeValue = "" ; return str . substr ( n . nodeValue . length ) ; }
and returns the removed text as a string.
and returns the removed text as a string .
// get the text node
 // get the height of the element
 //debug('no height for: ' + e.tagName);
 // get the text as a string
 // remove a word from the end of the string
 // until the height of the element changes
 // (ie. a line has been removed)
 //debug(e.offsetHeight + ' ' + h + ' text=' + n.nodeValue + ' wIdx= ' + wIdx);
 // returns the removed text
