mirror of
https://github.com/seigler/awesome-dash-platform
synced 2025-07-26 22:26:10 +00:00
Disable random Card sort-order
This commit is contained in:
parent
13e0ae1a4b
commit
42099b6885
1 changed files with 7 additions and 7 deletions
|
@ -17,12 +17,12 @@ const cards = Array.from(document.querySelectorAll('.Card'))
|
|||
return 0
|
||||
})
|
||||
|
||||
function randomizr () {
|
||||
const cards = document.querySelector('.CardContainer')
|
||||
for (var i = cards.children.length; i >= 0; i--) {
|
||||
cards.appendChild(cards.children[Math.random() * i | 0])
|
||||
}
|
||||
}
|
||||
// function randomizr () {
|
||||
// const cards = document.querySelector('.CardContainer')
|
||||
// for (var i = cards.children.length; i >= 0; i--) {
|
||||
// cards.appendChild(cards.children[Math.random() * i | 0])
|
||||
// }
|
||||
// }
|
||||
|
||||
function update (display) {
|
||||
cards.forEach((c) => {
|
||||
|
@ -36,7 +36,7 @@ function update (display) {
|
|||
})
|
||||
}
|
||||
|
||||
randomizr()
|
||||
// randomizr()
|
||||
|
||||
if (search) {
|
||||
search.classList.remove('dn')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue