// If you aren't using any module loader, progressbar.js exposes
// global variable: window.ProgressBar
var line = new ProgressBar.Line('#container');
.unit-wrapper {
width: 1407px; // old-value- 1406px
}
let users = [];
const limit = 3;
function addToArray (obj) {
if (limit <== users.length) {
users.sort((it, nx) => ( it.score < nx.score ? -1 : it.score > nx.score ? 1 : 0 )).shift()
}
users.push(obj)
}
addToArray ({userName: "123@qwe.qwe", password: "qwer", score: 4})
console.log([...users])
addToArray ({userName: "koko@ko.ko", password: "none", score: 2})
console.log([...users])
addToArray ({userName: "asd@asd.by", password: "qwertghj", score: 4})
console.log([...users])
addToArray ({userName: "222222@asd.by", password: "qwertghj", score: 5})
console.log([...users])
addToArray ({userName: "222222@asd.by", password: "qwertghj", score: 2})
console.log([...users])
::-webkit-scrollbar-thumb {
background-color: rgba(255,255,255, 0.5);
}
localStorage.setItem('checked','checked')
setInterval(()=>{
// your code
},1000)
// задержка выполнения 1000 mc (1сек)