+ Config BTN

This commit is contained in:
2020-10-29 17:11:04 +06:00
parent 5d4c3e6bcd
commit 7e236fa3ad
7 changed files with 292 additions and 67 deletions

View File

@ -1713,4 +1713,13 @@ function number_format( number, decimals, dec_point, thousands_sep )
return km + kw + kd;
}
*/
*/
//Получить случайное RGB в заданном промежутке
function getRandomColor(start,end)
{
let r = Math.floor(Math.random() * (end-start)+start);
let g = Math.floor(Math.random() * (end-start)+start);
let b = Math.floor(Math.random() * (end-start)+start);
return 'rgb('+r+','+g+','+b+')';
}