|
|
|
|
@ -107,10 +107,8 @@ export class HomePage implements OnInit {
|
|
|
|
|
slidesPerView: 3.5,
|
|
|
|
|
spaceBetween: 10
|
|
|
|
|
};
|
|
|
|
|
public slideOptsTwo = {
|
|
|
|
|
slidesPerView: 3.2,
|
|
|
|
|
spaceBetween: 10
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public slideOptsTwo = {};
|
|
|
|
|
public runTimer = false;
|
|
|
|
|
public hasStarted = false;
|
|
|
|
|
public hasFinished = false;
|
|
|
|
|
@ -190,9 +188,17 @@ export class HomePage implements OnInit {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public slideSettings() {
|
|
|
|
|
const width = this.platform.width();
|
|
|
|
|
console.log('enad testing: ' + width);
|
|
|
|
|
this.slideOptsTwo = {
|
|
|
|
|
slidesPerView: width > 320 ? 3.2 : 2.5,
|
|
|
|
|
spaceBetween: 10
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
ionViewWillEnter() {
|
|
|
|
|
this.common.startLoading();
|
|
|
|
|
this.slideSettings();
|
|
|
|
|
this.common.sharedService.setSharedData(true, 'loadWorkList');
|
|
|
|
|
this.remainingTime = 0;
|
|
|
|
|
this.displayTime = '00:00:00';
|
|
|
|
|
|