User:PC-XT/Advisor.js: Difference between revisions

Content deleted Content added
m summary: no ; after section
m +yyOffset() testing hook for scrolling
Line 13:
 
// == Helpers ==
 
function yyOffset(x){return x;}//testing hook for scrolling
 
// === DOM manipulation ===
Line 42 ⟶ 44:
hta.style.height = ta.clientHeight + 'px';
hta.value = _static.NEWLINES.substring(0, ta.rows) + ta.value.substring(0, start);
var yOffset = yyOffset(hta.scrollHeight);
hta.style.display = 'none';
ta.focus();