|
|
|
|
@ -103,10 +103,7 @@ export class HomePage implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public slideOptsOne = {
|
|
|
|
|
slidesPerView: 3.5,
|
|
|
|
|
spaceBetween: 10
|
|
|
|
|
};
|
|
|
|
|
public slideOptsOne = {};
|
|
|
|
|
|
|
|
|
|
public slideOptsTwo = {};
|
|
|
|
|
public runTimer = false;
|
|
|
|
|
@ -131,6 +128,7 @@ export class HomePage implements OnInit {
|
|
|
|
|
public vacationRuleIcon: string;
|
|
|
|
|
direction: string;
|
|
|
|
|
public isPostNoLoad = true;
|
|
|
|
|
public showStaticServices = false;
|
|
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
|
public ts: TranslatorService,
|
|
|
|
|
@ -188,17 +186,21 @@ export class HomePage implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public slideSettings() {
|
|
|
|
|
public slideSettingsTwo() {
|
|
|
|
|
const width = this.platform.width();
|
|
|
|
|
console.log('enad testing: ' + width);
|
|
|
|
|
this.slideOptsOne = {
|
|
|
|
|
slidesPerView: width > 320 ? 3.5 : 3,
|
|
|
|
|
spaceBetween: 10
|
|
|
|
|
};
|
|
|
|
|
this.slideOptsTwo = {
|
|
|
|
|
slidesPerView: width > 320 ? 3.2 : 2.5,
|
|
|
|
|
spaceBetween: 10
|
|
|
|
|
spaceBetween: width > 320 ? 10 : 5
|
|
|
|
|
};
|
|
|
|
|
this.showStaticServices = true;
|
|
|
|
|
}
|
|
|
|
|
ionViewWillEnter() {
|
|
|
|
|
this.common.startLoading();
|
|
|
|
|
this.slideSettings();
|
|
|
|
|
this.slideSettingsTwo();
|
|
|
|
|
this.common.sharedService.setSharedData(true, 'loadWorkList');
|
|
|
|
|
this.remainingTime = 0;
|
|
|
|
|
this.displayTime = '00:00:00';
|
|
|
|
|
|