Better inbounds view for multiuser

This commit is contained in:
Alireza Ahmadi
2023-02-11 09:46:45 +01:00
parent fbc8fa7345
commit 9d75925f30
8 changed files with 312 additions and 253 deletions

View File

@@ -54,4 +54,16 @@ function addZero(num) {
function toFixed(num, n) {
n = Math.pow(10, n);
return Math.round(num * n) / n;
}
}
function debounce (fn, delay) {
var timeoutID = null
return function () {
clearTimeout(timeoutID)
var args = arguments
var that = this
timeoutID = setTimeout(function () {
fn.apply(that, args)
}, delay)
}
}