Another try

This commit is contained in:
2019-08-24 22:59:34 -04:00
parent 1fd814d054
commit a996f18f15
4 changed files with 3327 additions and 156 deletions

View File

@@ -1,6 +1,4 @@
import {Component} from "@angular/core";
import {Observable, timer} from "rxjs";
import {map, take} from "rxjs/operators";
import {Router} from "@angular/router";
import {SyncService} from "../../services/sync.service";
@@ -12,12 +10,9 @@ const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
styleUrls: ['home.component.scss']
})
export class HomeComponent {
phrase = 'If you\'re into that';
typedText: Observable<string>;
splash = true;
constructor(private syncService: SyncService, private router: Router) {
this.typedText = timer(750, 50).pipe(take(this.phrase.length), map((i: number) => this.phrase.substring(0, i + 1)));
}
constructor(private syncService: SyncService, private router: Router) { }
async new() {
let mapCode: string;