JJJud.js
"Jud jud jud" is jQuery plugin for the truncation of text to suitable with Thai language which is not separate the word with space. It shortens provided text to fit specified dimensions and appends the desired ellipsis style if/when truncation occurs.
to see demo: http://jjjud.github.io
$(".panel1").JJJud({
max_rows: 3
});