Skip to content

Commit

Permalink
winners-page
Browse files Browse the repository at this point in the history
  • Loading branch information
Atul-k-m committed Jan 1, 2025
1 parent 2d6b8f2 commit 2bd10df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hackers.html
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ <h3 class="section-header">Waiting List</h3>
id: 19,
problemStatementId: "CR-04",
teamName: "DNYX",
institute: "MSRIT , Chennai",
institute: "MSRIT , Bangalore",
teamLeader: "Rudhresh S",
isWaitingList: false
},
Expand Down Expand Up @@ -325,7 +325,7 @@ <h3 class="section-header">Waiting List</h3>
id: 23,
problemStatementId: "CR-04",
teamName: "CELESTIUS",
institute: "MSRIT , Chennai",
institute: "MSRIT , Bangalore",
teamLeader: "E K S Eswar",
isWaitingList: false
},
Expand Down Expand Up @@ -749,7 +749,7 @@ <h2>${team.teamName}</h2>
});
}

// Event Listeners

document.getElementById('searchInput').addEventListener('input', filterTeams);

document.querySelectorAll('.filter-btn').forEach(btn => {
Expand All @@ -762,7 +762,7 @@ <h2>${team.teamName}</h2>

document.getElementById('filterSelect').addEventListener('change', filterTeams);

// Initial display

const mainTeams = teams.filter(team => !team.isWaitingList);
const waitingTeams = teams.filter(team => team.isWaitingList);
displayTeams(mainTeams, waitingTeams);
Expand Down

0 comments on commit 2bd10df

Please sign in to comment.