fix login

This commit is contained in:
Peter Maquiran
2023-01-04 11:11:30 +01:00
parent 0e5b739df5
commit f70391df4a
6 changed files with 26 additions and 25 deletions
+7 -5
View File
@@ -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
View File
@@ -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>
+6 -6
View File
@@ -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)
});
}