en lang edit, new designed

This commit is contained in:
MHSanaei
2023-02-12 17:20:09 +03:30
parent 920259b6f8
commit 6d28c39ae8
22 changed files with 296 additions and 200 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)
}
}