en lang edit, new designed

This commit is contained in:
MHSanaei committed 2023-02-12 17:20:09 +03:30
1 parent 920259b6f8
commit 6d28c39ae8
22 files changed
+296 -200

No files matched your search

+13 -1
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)
}
}