auto spinner enabled
This commit is contained in:
parent
c7c12ca72a
commit
e2b585215c
@ -21,7 +21,7 @@
|
||||
<p class="racetimetotal">{{getRaceTime(x, team.idteam)/1000 | number:'1.2-2'}}s</p>
|
||||
</td>
|
||||
</ng-container>
|
||||
<td>{{getAvgOfBestTwo(team.idteam)/1000 | number:'1.2-2'}}</td>
|
||||
<td>{{getAvgOfBestTwo(team.idteam)/1000 | number:'1.2-2'}}s</td>
|
||||
</tr>
|
||||
</table>
|
||||
</mat-card-content>
|
||||
|
||||
@ -1 +1,3 @@
|
||||
<div id="poulecontainer">
|
||||
<app-poule *ngFor="let poule of poules" [poule]="poule" [idChampionship]="idChampionship" [tier]="tier"></app-poule>
|
||||
</div>
|
||||
|
||||
@ -1,4 +1,9 @@
|
||||
app-poule {
|
||||
background-color: yellowgreen;
|
||||
margin: 10px;
|
||||
grid-row: 1;
|
||||
min-width: 470px;
|
||||
}
|
||||
|
||||
#poulecontainer {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
@ -16,14 +16,3 @@
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#goleftbutton, #gorightbutton {
|
||||
//position: absolute;
|
||||
}
|
||||
|
||||
#goleftbutton {
|
||||
left: 0px;
|
||||
}
|
||||
|
||||
#gorightbutton {
|
||||
right: 0px;
|
||||
}
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {timer} from 'rxjs';
|
||||
|
||||
@Component({
|
||||
selector: 'app-reclamespinner',
|
||||
@ -19,6 +20,10 @@ export class ReclamespinnerComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
// spin the commercials every 20s
|
||||
timer(5000, 20000).subscribe(val => {
|
||||
this.goRight();
|
||||
});
|
||||
}
|
||||
|
||||
goRight() {
|
||||
|
||||
@ -2,5 +2,4 @@
|
||||
<!--pick a year-->
|
||||
<button mat-raised-button (click)="openDialog()">{{currentChampionship()}}</button>
|
||||
<button mat-raised-button color="primary" *ngFor="let tier of tiers" routerLink="/championship/20/tier/{{tier}}">Tier {{tier}}</button>
|
||||
<a mat-button routerLink=".">Link</a>
|
||||
</div>
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
.button-row {
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user