mirror of
https://github.com/seigler/awesome-dash-platform
synced 2025-07-27 06:36:08 +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
|
return 0
|
||||||
})
|
})
|
||||||
|
|
||||||
function randomizr () {
|
// function randomizr () {
|
||||||
const cards = document.querySelector('.CardContainer')
|
// const cards = document.querySelector('.CardContainer')
|
||||||
for (var i = cards.children.length; i >= 0; i--) {
|
// for (var i = cards.children.length; i >= 0; i--) {
|
||||||
cards.appendChild(cards.children[Math.random() * i | 0])
|
// cards.appendChild(cards.children[Math.random() * i | 0])
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
function update (display) {
|
function update (display) {
|
||||||
cards.forEach((c) => {
|
cards.forEach((c) => {
|
||||||
|
@ -36,7 +36,7 @@ function update (display) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
randomizr()
|
// randomizr()
|
||||||
|
|
||||||
if (search) {
|
if (search) {
|
||||||
search.classList.remove('dn')
|
search.classList.remove('dn')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue