replace alert bodals with toasts

This commit is contained in:
2022-12-09 00:51:26 +02:00
parent c403c45d72
commit 0f8596db1e
13 changed files with 89 additions and 101 deletions

View File

@ -30,4 +30,12 @@
button.html("<i class=\"bi bi-clipboard\"></i> copy");
}, 2000);
}
function safe(string) {
return String(string)
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;");
}
</script>