Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkWidth() {
- if ($(window).width() < 1280) {
- $("#limit-char").each(function(i){
- len=$(this).text().length;
- if(len>30)
- {
- $(this).text($(this).text().substr(0,30)+'...');
- }
- })
- }
- }
- $(window).resize(checkWidth);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement