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">&crarr;</div>');
          }
          
          //  \$( this ).prev().height( \$( this ).height(  ) );
        }); 
      }

function hello() {
    return 'HELLO WORLD';
}

hello();
535 Bytes in 4 ms with coderay