This repository has been archived on 2024-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
2021-01-02 19:49:49 +01:00
|
|
|
var length = 35;
|
|
|
|
|
|
|
|
$(function(){
|
2021-01-03 10:15:40 +01:00
|
|
|
$(".trim-that a, .limit").each(function(i){
|
2021-01-02 19:49:49 +01:00
|
|
|
len=$(this).text().length;
|
|
|
|
if(len>length)
|
|
|
|
{
|
|
|
|
$(this).text($(this).text().substr(0,(length-3))+'...');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|