feat(event-binder.js): Es wurde der Effekt hinzugefügt, dass die Breite des Fortschrittsbalkens nach dem Signaturprozess um einen bestimmten Anteil erhöht wird.
This commit is contained in:
@@ -66,6 +66,12 @@ class Comp {
|
||||
}
|
||||
|
||||
static SignatureProgress = class {
|
||||
static __SignatureCount;
|
||||
static get SignatureCount() {
|
||||
this.__SignatureCount = parseInt(document.getElementById("signature-count").innerText);
|
||||
return this.__SignatureCount;
|
||||
}
|
||||
|
||||
static __SignedCountSpan;
|
||||
static get SignedCountSpan() {
|
||||
this.__SignedCountSpan ??= document.getElementById("signed-count");
|
||||
@@ -79,7 +85,15 @@ class Comp {
|
||||
|
||||
static set SignedCount(value) {
|
||||
this.__signedCount = value;
|
||||
const width = (value / this.SignatureCount) * 100;
|
||||
this.SignedCountBar.style.setProperty('--progress-width', width + '%');
|
||||
this.SignedCountSpan.innerText = value.toString();
|
||||
}
|
||||
|
||||
static __SignedCountBar;
|
||||
static get SignedCountBar() {
|
||||
this.__SignedCountBar ??= document.getElementById("signed-count-bar");
|
||||
return this.__SignedCountBar;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user