Fix home strings

This commit is contained in:
dev-chiefworks
2022-06-25 17:41:35 -04:00
parent 9699b38d3a
commit 4d63d33585
5 changed files with 41 additions and 15 deletions
+10 -1
View File
@@ -18,6 +18,15 @@ async componentDidMount(){
this.setState({jobsDataResults:response});
}
titleLen(title){
let maxl = 58;
title.replace('/', ' ');
title.replace('www.', '');
title.replace('.com', '');
title.replace('http//', '');
return (title.length > maxl)? title.substring(0,maxl-2)+'...': title;
}
// if (jobsDataResults ()== null){
// return null;
// }
@@ -57,7 +66,7 @@ async componentDidMount(){
<div className="titleBox">
<h3 className="title">
<a href={dashUrl}>
<span className='font_black'>{i.title} </span>
<span className='font_black'>{this.titleLen(i.title)} </span>
</a>
</h3>
</div>