1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 01:09:54 +00:00

resizable chat box

This commit is contained in:
Laura
2025-08-23 17:15:03 +02:00
parent 77c9e0baa4
commit 31cf76e431
5 changed files with 75 additions and 4 deletions

View File

@@ -84,6 +84,10 @@ function fixed(num, decimals = 0) {
return num.toFixed(decimals).replace(/\.?0+$/m, "");
}
function clamp(num, min, max) {
return Math.min(Math.max(num, min), max);
}
function download(name, type, data) {
let blob;