Improve search page

This commit is contained in:
2021-02-11 11:06:56 +01:00
parent 1d8004c142
commit c443e44b91
2 changed files with 13 additions and 12 deletions
+11 -10
View File
@@ -39,15 +39,6 @@ export class SearchPage implements OnInit {
height: number = 411;
width: number = 411;
data: CloudData[] = [
{text: 'Docents', weight: 0.1, color: '#ffaaee'},
{text: '1232', weight: 0.2, tooltip: 'display a tooltip'},
{text: 'Dcuments', weight: 0.1, color: '#ffaaee'},
{text: 'Cat', weight: 0.3, color: '#ffaaee'},
{text: 'Dogs', weight: 0.1, tooltip: 'display a tooltip'},
{text: 'cars', weight: 0.2, color: '#ffaaee'},
];
// See http://idangero.us/swiper/api/ for valid options.
slideOpts = {
@@ -66,6 +57,10 @@ export class SearchPage implements OnInit {
ngOnInit() {
this.wordCloud()
}
wordCloud(){
this.search.mostSeachWord("10").subscribe(res=>{
let list = []
@@ -89,7 +84,6 @@ export class SearchPage implements OnInit {
);
});
}
close(){
@@ -241,6 +235,13 @@ export class SearchPage implements OnInit {
*/
clearSearchInput(){
this.searchSubject = ""
this.searchCategories = [];
this.searchDocuments = [];
this.showDocuments = false;
this.wordCloud();
}
/**