feat: bsNotify-Methode und Benachrichtigung für Clipboard-Kopie hinzufügen

- Implementierung der bsNotify-Methode für benutzerdefinierte Benachrichtigungen mit alertify.
- Hinzufügen von benutzerdefinierten Styles für den benutzerdefinierten Benachrichtigungstyp von alertify.
- Hinzufügen der Clipboard-Kopie-Funktionalität mit Erfolgs- und Fehlerbenachrichtigungen.
This commit is contained in:
Developer 02
2024-10-11 14:15:06 +02:00
parent dc83486032
commit c4f0ce7d4b
6 changed files with 32 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ $('.btn_reject').click(_ =>
}));
document.querySelectorAll('.email-input').forEach(input => {
input.addEventListener('input', function() {
input.addEventListener('input', function () {
if (/^\S+@\S+\.\S+$/.test(this.value)) {
this.classList.remove('is-invalid');
} else {
@@ -45,6 +45,11 @@ document.querySelectorAll('.email-input').forEach(input => {
});
});
const bsNotify = (message, options) => alertify.notify(
`<div class="alert ${options.alert_type ? 'alert-' + options.alert_type : ''}" role="alert"><span class="material-symbols-outlined">${options?.icon_name ?? ''}</span><p>${message}</p></div>`,
'custom',
options?.delay ?? 5);
class Comp {
static ActPanel = class {
static __Root;
@@ -77,7 +82,7 @@ class Comp {
static SignatureProgress = class {
static __SignatureCount;
static get SignatureCount() {
this.__SignatureCount = parseInt(document.getElementById("signature-count").innerText);
this.__SignatureCount = parseInt(document.getElementById("signature-count").innerText);
return this.__SignatureCount;
}