-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcp.html
More file actions
255 lines (227 loc) · 9.29 KB
/
cp.html
File metadata and controls
255 lines (227 loc) · 9.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="tmp2.css">
<link rel="icon" type="파비콘/png" href="image/파비콘.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<title>광운대학교 컴퓨터정보공학부</title>
<script>
function showCategory() {
// 모든 FAQ 섹션을 숨김
let sections = document.querySelectorAll('.faq-section');
sections.forEach(section => section.style.display = 'none');
// 선택된 카테고리의 FAQ 섹션을 표시
let selectedCategory = document.getElementById('category-select').value;
let selectedSection = document.getElementById(selectedCategory);
if (selectedSection) {
selectedSection.style.display = 'block';
}
}
// 페이지 로드 시 기본적으로 '일반' 카테고리 보이기
window.onload = function () {
showCategory();
};
function searchFAQ(category) {
let searchInput = document.getElementById(category + '-search').value.toLowerCase(); // 검색 입력값
let faqList = document.getElementById(category + '-list'); // 해당 분야의 FAQ 리스트
let faqItems = faqList.getElementsByClassName('faq-item'); // FAQ 항목들
// 각 FAQ 항목을 검색어와 비교
for (let i = 0; i < faqItems.length; i++) {
let itemText = faqItems[i].textContent || faqItems[i].innerText; // 질문과 답변 텍스트
if (itemText.toLowerCase().indexOf(searchInput) > -1) {
faqItems[i].style.display = ''; // 검색어가 포함된 항목은 보이게
} else {
faqItems[i].style.display = 'none'; // 검색어가 포함되지 않은 항목은 숨김
}
}
}
// 질문 옆 버튼 클릭 시 답변 토글
document.addEventListener('DOMContentLoaded', () => {
const toggleButtons = document.querySelectorAll('.toggle-btn');
toggleButtons.forEach(button => {
button.addEventListener('click', () => {
const faqItem = button.closest('.faq-item'); // 버튼이 포함된 FAQ 항목
const answer = faqItem.querySelector('.faq-answer'); // 해당 항목의 답변
if (answer.style.display === 'block') {
// 답변 숨기기
answer.style.display = 'none';
button.textContent = '+'; // 버튼 텍스트 변경
} else {
// 답변 보이기
answer.style.display = 'block';
button.textContent = '-'; // 버튼 텍스트 변경
}
});
});
});
const content = [
{ title: "공지사항 ", url: "events.html" },
{ title: "자료집", url: "resources.html" },
{ title: "FAQ 페이지", url: "FAQ_Board.html" },
{ title: "홈페이지", url: "index.html" },
{ title: "소모임 소개", url: "club.html" },
{ title: "운영국", url: "team/team_1.html" },
{ title: "홍보국", url: "team/team_2.html" },
{ title: "기획국", url: "team/team_3.html" },
{ title: "Plan_manager", url: "Plan_manager.html" },
];
function searchContent() {
const query = document.getElementById('search-bar').value.toLowerCase();
const resultsContainer = document.getElementById('search-results');
resultsContainer.innerHTML = '';
if (query.trim() === '') {
resultsContainer.style.display = 'none';
return;
}
const results = content.filter(item => item.title.toLowerCase().includes(query));
if (results.length > 0) {
resultsContainer.style.display = 'block';
resultsContainer.innerHTML = results.map(item =>
`<p><a href="${item.url}" style="text-decoration: none; color: black;">${item.title}</a></p>`
).join('');
} else {
resultsContainer.style.display = 'block';
resultsContainer.innerHTML = '<p>검색 결과가 없습니다.</p>';
}
// 3초 후 검색 결과 숨기기
setTimeout(() => {
resultsContainer.style.display = 'none';
}, 1000);
}
document.addEventListener('DOMContentLoaded', () => {
const searchBar = document.getElementById('search-bar');
searchBar.addEventListener('keydown', (event) => {
if (event.key === 'Enter') {
event.preventDefault(); // 기본 동작 방지
searchContent();
}
});
});
</script>
</head>
<body>
<!-- 헤더 -->
<header>
<div class="logo">
<a href="index.html"> <!-- 이미지를 링크로 감싸기 -->
<img src="image/광운대학교.png" alt="Kwangwoon University Logo">
</a>
<h1>컴퓨터정보공학부 학생회</h1>
</div>
<div class="search-container">
<input type="text" id="search-bar" placeholder="검색...">
<span class="search-icon" onclick="searchContent()">⌕</span>
<nav class="menu-links">
<a href="index.html">홈페이지</a>
<a href="resources.html">자료집</a>
<a href="events.html">공지사항</a>
<a href="FAQ_Board.html">FAQ</a>
</nav>
<div id="search-results"></div>
</div>
</header>
<!-- 사이드바 -->
<div class="side-bar">
<div class="links">
<ul>
<li><a href="login.html" style="color:white; text-decoration:none;">로그아웃</a></li>
<li><a href="index.html" style="color:white; text-decoration:none;">홈페이지</a></li>
<li><a href="resources.html" style="color:white; text-decoration:none;">자료집</a></li>
<li><a href="events.html" style="color:white; text-decoration:none;">공지사항</a></li>
<li><a href="club.html" style="color:white; text-decoration:none;">소모임 소개</a></li>
<li><a href="introduce_2.html" style="color:white; text-decoration:none;">학과 소개</a></li>
<li><a href="FAQ_Board.html" style="color:white; text-decoration:none;">FAQ</a></li>
<li><a href="Plan_manager.html" style="color:white; text-decoration:none;">Plan Manager</a></li>
</ul>
</div>
<div class="footer-links">
<a href="https://www.kw.ac.kr" target="_blank">광운대학교 홈페이지</a>
<a href="https://sw.kw.ac.kr" target="_blank">인융대 홈페이지</a>
</div>
</div>
<!-- 소모임 섹션 -->
<section>
<h1>CP</h1>
<p>축구를 사랑하는 학생들이 함께 모여 즐겁게 축구 활동을 하고, 팀워크와 전략을 배우는 소모임입니다.</p>
<!-- 리더 정보 -->
<div class="leaders">
<h2>리더 소개</h2>
<ul>
<li><strong>패짱:</strong> 김현우 (010-1234-5678)</li>
</ul>
</div>
<!-- 활동 소개 -->
<div class="activities">
<h2>주요 활동</h2>
<ul>
<li>⚽ <strong>연촌체전 참가:</strong> 매년 연촌체전에서 열띤 경기를 펼칩니다.(2024 연촌체전 - 준우승)</li>
<li>🎯 <strong>축구공 대여:</strong> 멤버들에게 축구공을 지원합니다.</li>
<li>📅 <strong>정기 연습 및 회식:</strong> 매주 목요일과 토요일에 활동이 있습니다.</li>
<li>🍻 <strong>친목 도모:</strong> 정기적으로 회식과 이벤트를 통해 멤버 간의 유대감을 키웁니다.</li>
</ul>
</div>
</section>
<!-- 활동 사진 섹션 -->
<section class="gallery">
<h3>활동 사진</h3>
<div class="gallery-grid">
<img src="image/CP대회.jpg" alt="축구 경기">
<img src="image/CP경기.jpg" alt="팀 연습">
<img src="image/CP회식.jpg" alt="팀 회식">
</div>
</section>
<!-- 정기 일정 섹션 -->
<section class="schedule">
<h3>정기 활동 일정</h3>
<table>
<thead>
<tr>
<th>요일</th>
<th>시간</th>
<th>장소</th>
</tr>
</thead>
<tbody>
<tr>
<td>목요일</td>
<td>18:00 - 20:00</td>
<td>체육관 A</td>
</tr>
<tr>
<td>토요일</td>
<td>10:00 - 12:00</td>
<td>운동장 B</td>
</tr>
</tbody>
</table>
</section>
<!-- 푸터 -->
<footer>
<div class="footer-left"></div>
<div class="footer-right">
<!-- 첫 번째 아이콘: 카카오톡 -->
<div class="icon-wrapper">
<a href="https://open.kakao.com/o/gDFOk91g" target="_blank">
<img src="image/메세지.png" alt="카카오톡 아이콘" class="footer-icon"
style="width: 60px; height: 50px; transition: transform 0.2s ease;">
</a>
<div class="tooltip">카카오톡 채팅방으로 이동합니다.</div>
</div>
<div class="icon-wrapper">
<a href="https://www.instagram.com/kw_cie/" target="_blank">
<img src="image/인스타그램.png" alt="인스타그램 아이콘" class="footer-icon"
style="width: 60px; height: 50px; transition: transform 0.2s ease;">
</a>
<div class="tooltip">인스타그램 페이지로 이동합니다.</div>
</div>
<!-- 텍스트 영역 -->
<div class="text">
<p>김재용(회장): 010-5651-4415</p>
<p>최우진(부회장): 010-4907-7802</p>
</div>
</div>
</footer>
</body>
</html>