Hard Rock International | Hard Rock


‘);} $(‘#hrLatestNewsWidget957385Feed .newsCategory’).each(function(){var newsCategory=$(this);var newsCategoryLength=newsCategory.text().length;newsCategory.find(‘span:last-child’).remove();while(newsCategoryLength>40){newsCategory.find(‘> a:last-child’).html(newsCategory.find(‘> a:last-child’).text().split(” “).slice(0,-1).join(” “));$(‘…’).appendTo(newsCategory.find(‘> a:last-child’));if(newsCategory.find(‘> a:last-child’).text()==’…’){newsCategory.find(‘> a:last-child’).remove();newsCategory.find(‘span:last-child’).remove();newsCategory.find(‘> a:last-child’).slice(0,-2);$(‘…’).appendTo(newsCategory.find(‘> a:last-child’));} newsCategoryLength=newsCategory.text().length;}});$(‘#hrLatestNewsWidget957385Feed .newsTitle’).each(function(){var newsTitle=$(this).find(‘> a’);var newsTitleLength=newsTitle.text().length;if(newsTitleLength>130){newsTitle.text(newsTitle.text().substr(0,130)+’…’);}});$(‘#hrLatestNewsWidget957385Feed .newsDescription’).each(function(){var newsDescription=$(this).text().length;if(newsDescription>135){$(this).text($(this).text().substr(0,135)+’…’);}});}});}});$.fn.lazyloadanything(‘load’);});

Source

Leave a Reply

Your email address will not be published. Required fields are marked *