Skip to content
Snippets Groups Projects
Commit 416b79d5 authored by jojohoch's avatar jojohoch
Browse files

[player] Change the duration of the highlighting of anchors

#733
parent 092ba7e9
No related branches found
No related tags found
Loading
Pipeline #67828 failed
...@@ -12,6 +12,8 @@ Player ...@@ -12,6 +12,8 @@ Player
### Fehlerbehebungen ### Fehlerbehebungen
- Korrigiert die Validierung von Eingabefeldern mit eingestellter maximaler Länge - Korrigiert die Validierung von Eingabefeldern mit eingestellter maximaler Länge
### Änderungen
- Ändert die Dauer von Texthervorhebung auf 60 Sekunden
## 2.5.0 ## 2.5.0
- Unterstützung neuer Funktionen; siehe Allgemein - Unterstützung neuer Funktionen; siehe Allgemein
......
...@@ -6,6 +6,7 @@ import { delay, of, Subscription } from 'rxjs'; ...@@ -6,6 +6,7 @@ import { delay, of, Subscription } from 'rxjs';
}) })
export class AnchorService { export class AnchorService {
private activeAnchors: { [id: string]: Subscription } = {}; private activeAnchors: { [id: string]: Subscription } = {};
private duration = 60000;
toggleAnchor(anchorId: string): void { toggleAnchor(anchorId: string): void {
if (this.activeAnchors[anchorId]) { if (this.activeAnchors[anchorId]) {
...@@ -22,7 +23,7 @@ export class AnchorService { ...@@ -22,7 +23,7 @@ export class AnchorService {
private addAnchor(anchorId: string): void { private addAnchor(anchorId: string): void {
this.activeAnchors[anchorId] = of(true) this.activeAnchors[anchorId] = of(true)
.pipe( .pipe(
delay(15000)) delay(this.duration))
.subscribe(() => { .subscribe(() => {
this.removeAnchor(anchorId); this.removeAnchor(anchorId);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment