Spaces:
Running
Running
Update index.html
Browse files- index.html +14 -18
index.html
CHANGED
@@ -217,11 +217,6 @@
|
|
217 |
z-index: 1;
|
218 |
}
|
219 |
|
220 |
-
.option-card * {
|
221 |
-
pointer-events: none;
|
222 |
-
user-select: none;
|
223 |
-
}
|
224 |
-
|
225 |
.option-card.selected {
|
226 |
background: rgba(58, 123, 213, 0.3);
|
227 |
border-color: #3a7bd5;
|
@@ -1223,19 +1218,20 @@
|
|
1223 |
let currentPeriod = 3;
|
1224 |
|
1225 |
// 페이지 로드 시 이벤트 리스너 등록
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
|
|
1239 |
|
1240 |
// 카드 클릭 처리 함수
|
1241 |
function handleCardClick(card) {
|
|
|
217 |
z-index: 1;
|
218 |
}
|
219 |
|
|
|
|
|
|
|
|
|
|
|
220 |
.option-card.selected {
|
221 |
background: rgba(58, 123, 213, 0.3);
|
222 |
border-color: #3a7bd5;
|
|
|
1218 |
let currentPeriod = 3;
|
1219 |
|
1220 |
// 페이지 로드 시 이벤트 리스너 등록
|
1221 |
+
document.addEventListener('DOMContentLoaded', function() {
|
1222 |
+
console.log('DOM loaded, setting up click handlers...'); // 디버깅용
|
1223 |
+
|
1224 |
+
// 이벤트 위임 방식으로 변경
|
1225 |
+
document.addEventListener('click', function(event) {
|
1226 |
+
// option-card를 클릭했는지 확인
|
1227 |
+
const card = event.target.closest('.option-card');
|
1228 |
+
if (card) {
|
1229 |
+
event.preventDefault();
|
1230 |
+
event.stopPropagation();
|
1231 |
+
handleCardClick(card);
|
1232 |
+
}
|
1233 |
+
});
|
1234 |
+
});
|
1235 |
|
1236 |
// 카드 클릭 처리 함수
|
1237 |
function handleCardClick(card) {
|