Commit e561b39e by Nabil Sadki

Launch time

parent 29001148
v1.1.0.0 v1.1.0.0
- Add login form - Add login form
- Optimise launch time
v1.0.8.3 v1.0.8.3
- Show main slide - Show main slide
......
...@@ -93,17 +93,17 @@ ...@@ -93,17 +93,17 @@
<preference name="DisallowOverscroll" value="true" /> <preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="19" /> <preference name="android-minSdkVersion" value="19" />
<preference name="BackupWebStorage" value="none" /> <preference name="BackupWebStorage" value="none" />
<preference name="SplashScreenDelay" value="10000" /> <preference name="fullscreen" value="true" />
<preference name="SplashScreenDelay" value="0" />
<preference name="FadeSplashScreen" value="true" /> <preference name="FadeSplashScreen" value="true" />
<preference name="ShowSplashScreen" value="true" /> <preference name="ShowSplashScreen" value="false" />
<preference name="ShowSplashScreenSpinner" value="false" /> <preference name="ShowSplashScreenSpinner" value="false" />
<preference name="FadeSplashScreenDuration" value="600" /> <preference name="FadeSplashScreenDuration" value="600" />
<preference name="SplashScreenBackgroundColor" value="0xFFFFFFFF" /> <preference name="SplashScreenBackgroundColor" value="0xFFFFFFFF" />
<preference name="SplashScreen" value="screen" /> <preference name="SplashScreen" value="screen" />
<preference name="SplashMaintainAspectRatio" value="true" /> <preference name="SplashMaintainAspectRatio" value="true" />
<preference name="fullscreen" value="true" /> <preference name="SplashShowOnlyFirstTime" value="false" />
<feature name="StatusBar"> <feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" /> <param name="ios-package" onload="true" value="CDVStatusBar" />
</feature> </feature>
<preference name="SplashShowOnlyFirstTime" value="false" />
</widget> </widget>
...@@ -15,6 +15,9 @@ import { TripService } from './services/trip-service'; ...@@ -15,6 +15,9 @@ import { TripService } from './services/trip-service';
templateUrl: 'app.component.html' templateUrl: 'app.component.html'
}) })
export class AppComponent { export class AppComponent {
public appStarted = false;
constructor( constructor(
public LN: LocalNotifications, public LN: LocalNotifications,
private platform: Platform, private platform: Platform,
...@@ -29,6 +32,7 @@ export class AppComponent { ...@@ -29,6 +32,7 @@ export class AppComponent {
initializeApp() { initializeApp() {
this.platform.ready().then(() => { this.platform.ready().then(() => {
this.appStarted = true;
this.statusBar.styleDefault(); this.statusBar.styleDefault();
this.splashScreen.hide(); this.splashScreen.hide();
......
...@@ -29,3 +29,19 @@ ...@@ -29,3 +29,19 @@
color: var(--ion-color-light, #ffffff) !important; color: var(--ion-color-light, #ffffff) !important;
} }
} }
div.start {
background: #f93129;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
transition: .5s;
ion-img {
width: 20vw;
}
ion-spinner {
transform: scale(3);
}
}
\ No newline at end of file
...@@ -18,7 +18,10 @@ export class MainsliderPage implements OnInit { ...@@ -18,7 +18,10 @@ export class MainsliderPage implements OnInit {
@ViewChild(IonSlides) mainSlider: IonSlides; @ViewChild(IonSlides) mainSlider: IonSlides;
slideOpts = { slideOpts = {
effect: 'flip' effect: 'fade',
fadeEffect: {
crossFade: true
}
}; };
public prmMainslider: boolean; public prmMainslider: boolean;
......
...@@ -22,6 +22,10 @@ ...@@ -22,6 +22,10 @@
</head> </head>
<body> <body>
<div class="start" *ngIf="!appStarted">
<!-- <ion-img src="./assets/rings.svg"></ion-img> -->
<ion-spinner name="dots"></ion-spinner>
</div>
<app-root></app-root> <app-root></app-root>
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" crossorigin=""></script> <script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js" crossorigin=""></script>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment