replace alert bodals with toasts

This commit is contained in:
2022-12-09 00:51:26 +02:00
parent 2d5b73c6dc
commit 7df4adfc9d
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>

View File

@ -18,7 +18,7 @@
position: relative;
}
pre[class*="language-"] button{
pre[class*="language-"] button {
position: absolute;
top: 0;
right: 5px;