reimplement eventlineup slots, eventsheet refinements

fixed the loop in eventlineup slots so they will show duplicate eventlineupentries if they exist

refined some styling in eventsheet
This commit is contained in:
2024-05-06 16:45:56 -05:00
parent c4c0d0fb7d
commit e4b981d676
8 changed files with 69 additions and 44 deletions

View File

@@ -635,8 +635,18 @@ function insertLineup(direction, teamId, eventId, element) {
}
function initSlots () {
const slots = Array.from(document.querySelectorAll('.lineup-slot'))
slots.forEach(slot=>{
console.log(slot,`.${slot.dataset.initialSlotset}`)
const parent = document.querySelector(`#${slot.dataset.initialSlotset}`)
parent.appendChild(slot)
slot.removeAttribute('data-initial-slotset')
})
}
function initPage (){
colorPositions();
initSlots();
initFlagsCheckboxes();
refreshLineup();
for (bcLineup of document.querySelectorAll("[id^=event-lineup]")) {