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.
qdouze2-wordpress-theme/js/trim.js
2022-12-17 19:46:29 +01:00

11 lines
213 B
JavaScript

var length = 35;
$(function(){
$(".trim-that a, .limit").each(function(i){
len=$(this).text().length;
if(len>length)
{
$(this).text($(this).text().substr(0,(length-3))+'...');
}
});
});