mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
fix login
This commit is contained in:
@@ -233,11 +233,13 @@ export class EventsPage implements OnInit {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
this.storage.get('events').then((events: any[] = []) => {
|
||||
//
|
||||
let todayEvents = new Array()
|
||||
this.listToPresent = events
|
||||
this.totalEvent = this.listToPresent.length
|
||||
this.currentEvent = this.listToPresent[0].Subject
|
||||
this.currentHoursMinutes = this.listToPresent[0].StartDate
|
||||
|
||||
if(Array.isArray(events)) {
|
||||
this.listToPresent = events
|
||||
this.totalEvent = this.listToPresent.length
|
||||
this.currentEvent = this.listToPresent[0].Subject
|
||||
this.currentHoursMinutes = this.listToPresent[0].StartDate
|
||||
}
|
||||
//
|
||||
})
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
<!-- HEADER-->
|
||||
<ion-header class="ion-no-border header-main d-md-flex">
|
||||
|
||||
<div *ngIf="select" class="btn-close d-none d-lg-flex cursor-pointer font-35" (click)="close()">
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "class="icon" src="assets/images/icons-search-close.svg"></ion-icon>
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="icon" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
|
||||
|
||||
@@ -154,7 +154,7 @@ export class SearchPage implements OnInit {
|
||||
|
||||
this.windowWidth = window.innerWidth
|
||||
|
||||
window['dynamicSearch'] = (search:string) =>{
|
||||
window['dynamicSearch'] = (search:string) => {
|
||||
this.searchSubject = search;
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ export class SearchPage implements OnInit {
|
||||
|
||||
this.search.mostSeachWord("15").subscribe(res=>{
|
||||
|
||||
const container = document.querySelector('.seach-wrapper');
|
||||
console.log('LOAD LIST');
|
||||
|
||||
const highest= res[0].Hits;
|
||||
const lowest = res[res.length-1].Hits;
|
||||
@@ -191,12 +191,11 @@ export class SearchPage implements OnInit {
|
||||
});
|
||||
|
||||
this.list = list
|
||||
|
||||
|
||||
console.log('set list')
|
||||
|
||||
const elem = document.documentElement.querySelector('.most-searched-word-container');
|
||||
|
||||
setTimeout(()=>{
|
||||
setTimeout(() => {
|
||||
WordCloud(
|
||||
elem,
|
||||
{
|
||||
@@ -205,7 +204,8 @@ export class SearchPage implements OnInit {
|
||||
gridSize: 15
|
||||
},
|
||||
);
|
||||
},300)
|
||||
console.log('set visualy')
|
||||
}, 300)
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user