I have a DIV with long text and truncate it with a function. That is all good, until someone will print the page. The truncated text won't be readable.
Is there some way I can prevent it?
I have looked for an equivalent for CSS's media print, but all I can find works with screen width. I don't know what is better: to truncate only on for media screen or to remove the truncation on 'print'.
// Truncate the job description
$(function() {
if ( $('#jetsSearch').length ) {
$('.job-description').readmore({
speed: 100,
collapsedHeight: 50,
moreLink: '<a href="#">Read more</a>',
lessLink: '<a href="#">Less</a>',
});
}
});
I tried this one, but it doesn't work (still truncated)
if ( $('#jetsSearch').length && window.matchMedia("screen").matches) {
ReadMore.js. OP, i'd maybe tag your question withjqueryandreadmore.jsto see if more peeps can come in to help