Lines Matching refs:text
14 function getPadding(text, width) {
17 if (typeof text != 'string')
18 text = String(text);
20 if (text.length >= width)
24 for (var i = 0; i < width - text.length; i++)
29 function leftAlign(text, width) {
30 return text + getPadding(text, width);
33 function rightAlign(text, width) {
34 return getPadding(text, width) + text;
97 var text = '';
101 text = 'Selected item:\n';
102 text += leftAlign('Title', c0Width) + ': ' + slice.title + '\n';
103 text += leftAlign('Start', c0Width) + ': ' +
105 text += leftAlign('Duration', c0Width) + ': ' +
113 text += leftAlign('Args', c0Width) + ':\n';
116 text += leftAlign(' ' + argName, c0Width) + ': ' + argVal + '\n';
123 text = 'Selection summary:\n';
149 text += ' ' +
156 text += leftAlign('*Totals', c0Width) + ' : ' +
161 text += '\n';
163 text += leftAlign('Selection start', c0Width) + ' : ' +
166 text += leftAlign('Selection extent', c0Width) + ' : ' +
172 outputDiv.textContent = text;