mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Rollback toogle button
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
<ion-header translucent="true">
|
<ion-header translucent="true">
|
||||||
|
<ion-toolbar>
|
||||||
|
<!-- customized TOGGLE button -->
|
||||||
|
<label class="switch"><input type="checkbox" id="togBtn">
|
||||||
|
<div class="slider round" (click)="showAlert()">
|
||||||
|
<!--ADDED HTML --><span class="mdgpr">MDGPR</span><span class="pr">PR</span><!--END-->
|
||||||
|
</div>
|
||||||
|
</label>
|
||||||
|
</ion-toolbar>
|
||||||
<ion-toolbar>
|
<ion-toolbar>
|
||||||
<ion-title>
|
<ion-title>
|
||||||
<ion-item class="ion-text-header-top" lines="none">
|
<ion-item class="ion-text-header-top" lines="none">
|
||||||
@@ -20,27 +28,10 @@
|
|||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
</ion-title>
|
</ion-title>
|
||||||
|
|
||||||
<!-- customized TOGGLE button -->
|
|
||||||
<label class="switch"><input type="checkbox" id="togBtn">
|
|
||||||
<div class="slider round">
|
|
||||||
<!--ADDED HTML --><span class="mdgpr" (click)="showAlert()">MDGPR</span><span class="pr">PR</span><!--END-->
|
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
|
||||||
<ion-refresher-content
|
|
||||||
pullingIcon="chevron-down-circle-outline"
|
|
||||||
pullingText="deslize para actualizar"
|
|
||||||
refreshingSpinner="circles"
|
|
||||||
refreshingText="A actualizar...">
|
|
||||||
</ion-refresher-content>
|
|
||||||
</ion-refresher>
|
|
||||||
<!-- TABS -->
|
<!-- TABS -->
|
||||||
<ion-toolbar >
|
<ion-toolbar >
|
||||||
<ion-segment [(ngModel)]="segment" (ionChange)="onSegmentChange()">
|
<ion-segment [(ngModel)]="segment" (ionChange)="onSegmentChange()">
|
||||||
@@ -57,6 +48,11 @@
|
|||||||
</ion-toolbar>
|
</ion-toolbar>
|
||||||
<!-- COMBINADA -->
|
<!-- COMBINADA -->
|
||||||
<div [ngSwitch]="segment">
|
<div [ngSwitch]="segment">
|
||||||
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
||||||
|
<!-- <ion-refresher-content>
|
||||||
|
</ion-refresher-content> -->
|
||||||
|
</ion-refresher>
|
||||||
<ion-list *ngSwitchCase="'Combinada'" >
|
<ion-list *ngSwitchCase="'Combinada'" >
|
||||||
<ion-item-group>
|
<ion-item-group>
|
||||||
<ion-item-sliding>
|
<ion-item-sliding>
|
||||||
|
|||||||
@@ -146,10 +146,7 @@
|
|||||||
color: #666666;
|
color: #666666;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.switch {
|
.switch {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -168,8 +165,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
background-color: #ffffff;
|
background-color: #e16817;
|
||||||
border: 1px solid #e16817;
|
|
||||||
-webkit-transition: .4s;
|
-webkit-transition: .4s;
|
||||||
transition: .4s;
|
transition: .4s;
|
||||||
}
|
}
|
||||||
@@ -188,7 +184,7 @@
|
|||||||
|
|
||||||
input:checked + .slider {
|
input:checked + .slider {
|
||||||
background-color: #e16817;
|
background-color: #e16817;
|
||||||
border: 1px solid #ffffff;
|
/* border: 1px solid #ffffff; */
|
||||||
}
|
}
|
||||||
|
|
||||||
input:focus + .slider {
|
input:focus + .slider {
|
||||||
@@ -206,18 +202,17 @@
|
|||||||
{
|
{
|
||||||
display: none;
|
display: none;
|
||||||
text-align: left !important;
|
text-align: left !important;
|
||||||
|
left: 25px !important;
|
||||||
color: white;
|
|
||||||
left: 23px !important;
|
|
||||||
}
|
}
|
||||||
.mdgpr
|
.mdgpr
|
||||||
{
|
{
|
||||||
left: 58px !important;
|
|
||||||
color: #e16817;
|
left: 60px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pr, .mdgpr
|
.pr, .mdgpr
|
||||||
{
|
{
|
||||||
|
color: white;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
transform: translate(-50%,-50%);
|
transform: translate(-50%,-50%);
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@@ -232,7 +227,6 @@
|
|||||||
|
|
||||||
input:checked + .slider .mdgpr
|
input:checked + .slider .mdgpr
|
||||||
{display: none;
|
{display: none;
|
||||||
color: white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*--------- END --------*/
|
/*--------- END --------*/
|
||||||
@@ -245,5 +239,4 @@
|
|||||||
|
|
||||||
.slider.round:before {
|
.slider.round:before {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 1px solid #e16817;
|
|
||||||
}
|
}
|
||||||
@@ -57,10 +57,10 @@ export class EventsPage implements OnInit {
|
|||||||
|
|
||||||
doRefresh(event) {
|
doRefresh(event) {
|
||||||
this.RefreshEvents();
|
this.RefreshEvents();
|
||||||
|
event.target.complete();
|
||||||
setTimeout(() => {
|
// setTimeout(() => {
|
||||||
event.target.complete();
|
// event.target.complete();
|
||||||
}, 2000);
|
// }, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
onSegmentChange(){
|
onSegmentChange(){
|
||||||
|
|||||||
Reference in New Issue
Block a user