Skip to content

Commit

Permalink
Add new change
Browse files Browse the repository at this point in the history
  • Loading branch information
alvachien committed May 4, 2024
1 parent a032182 commit a29fbe6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<mat-option *ngFor="let file of allFiles" [value]="file">{{file.fileName}}</mat-option>
</mat-select>
</mat-form-field>
<button mat-raised-button color="primary" (click)="onRestart()">Start</button>
<!-- <button mat-raised-button color="primary" (click)="onRestart()">Start</button> -->

<section>
<!-- <button mat-icon-button color="primary" [disabled]="!isExpertMode" routerLink="create" matTooltip="{{'Common.Create' | transloco}}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export class TypingGameComponent implements OnInit, AfterViewInit {
} else {
if (event.key === this._arwords[this._keyidx].letter) {
this._arwords[this._keyidx].visible = true;
this.audiosrv.playSound('key-sound/Default.wav');

this._keyidx++;
if (this._keyidx === this._arwords.length) {
Expand Down Expand Up @@ -148,6 +149,7 @@ export class TypingGameComponent implements OnInit, AfterViewInit {
}

initWordQueue() {
this.isQueueCompleted = false;
this.wordqueues = [];
if (this.selectedFile) {
this._service.readFileContent(this.selectedFile.fullPath).subscribe({
Expand Down

0 comments on commit a29fbe6

Please sign in to comment.