(done)
| 983 | } |
| 984 | |
| 985 | function animateZonesCollapseAndThen(done) { |
| 986 | const sb = getSidebar(); |
| 987 | const top = getTopZone(); |
| 988 | const cards = []; |
| 989 | |
| 990 | if (sb) cards.push(...sb.querySelectorAll('#uploadCard, #folderManagementCard')); |
| 991 | if (top) cards.push(...top.querySelectorAll('#uploadCard, #folderManagementCard')); |
| 992 | |
| 993 | if (!cards.length) { |
| 994 | done(); |
| 995 | return; |
| 996 | } |
| 997 | |
| 998 | // quick "rise away" animation |
| 999 | cards.forEach(card => { |
| 1000 | card.style.transition = 'transform 0.18s ease-out, opacity 0.18s ease-out'; |
| 1001 | card.style.transform = 'translateY(-10px)'; |
| 1002 | card.style.opacity = '0'; |
| 1003 | }); |
| 1004 | |
| 1005 | setTimeout(() => { |
| 1006 | cards.forEach(card => { |
| 1007 | card.style.transition = ''; |
| 1008 | card.style.transform = ''; |
| 1009 | card.style.opacity = ''; |
| 1010 | }); |
| 1011 | done(); |
| 1012 | }, 190); |
| 1013 | } |
| 1014 | |
| 1015 | function ensureZonesToggle() { |
| 1016 | const host = getHeaderHost(); |
nothing calls this directly
no test coverage detected