diff --git a/src/app/pages/search/search.page.html b/src/app/pages/search/search.page.html index 70db3019c..908397907 100644 --- a/src/app/pages/search/search.page.html +++ b/src/app/pages/search/search.page.html @@ -15,7 +15,7 @@ - +
@@ -38,7 +38,7 @@
- +
diff --git a/src/app/pages/search/search.page.ts b/src/app/pages/search/search.page.ts index 1ddddad0a..c27b8f432 100644 --- a/src/app/pages/search/search.page.ts +++ b/src/app/pages/search/search.page.ts @@ -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(); + } /**