ccc
Javascript
code posted
created at 06 Mar 22:04, updated at 22 Mar 05:20
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
function autoResizePreline() { console.log('autoResizePreline'); \$('span.preline > div.multiligne').remove(); \$('span.preline').each(function(i) { if (\$(this).height()>17) { console.log(i + ' ' + \$(this).height()); var h=\$(this).height()-15; \$(this).append('<div class="multiligne" style=" height:' +h+ 'px">↵</div>'); } // \$( this ).prev().height( \$( this ).height( ) ); }); } function hello() { return 'HELLO WORLD'; } hello(); |
535 Bytes in 2 ms with coderay