diff --git a/design/uiux/prototype/14-참여자목록.html b/design/uiux/prototype/14-참여자목록.html index 1996f5a..a2fc5f4 100644 --- a/design/uiux/prototype/14-참여자목록.html +++ b/design/uiux/prototype/14-참여자목록.html @@ -43,9 +43,15 @@ - +
-

128명 참여

+
+

128명 참여

+ +
@@ -343,6 +349,50 @@ // 실제로는 엑셀 다운로드 로직 구현 }); + // 당첨자 추첨 버튼 + document.getElementById('drawingBtn').addEventListener('click', function() { + // 이벤트가 종료되었는지 확인 (실제로는 이벤트 상태 체크) + const eventEnded = true; // Mock data + + if (!eventEnded) { + KTEventApp.Feedback.showModal({ + title: '추첨 불가', + content: '

이벤트가 종료된 후 추첨이 가능합니다.

', + buttons: [ + { + text: '확인', + variant: 'primary', + onClick: function() { + this.closest('.modal-backdrop').remove(); + } + } + ] + }); + return; + } + + // 참여자가 있는지 확인 + if (filteredParticipants.length === 0) { + KTEventApp.Feedback.showModal({ + title: '추첨 불가', + content: '

참여자가 없어 추첨할 수 없습니다.

', + buttons: [ + { + text: '확인', + variant: 'primary', + onClick: function() { + this.closest('.modal-backdrop').remove(); + } + } + ] + }); + return; + } + + // 당첨자 추첨 화면으로 이동 + window.location.href = '16-당첨자추첨.html'; + }); + // 초기 렌더링 renderParticipantList();