-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcommunity_view.html
More file actions
297 lines (266 loc) · 12.5 KB
/
community_view.html
File metadata and controls
297 lines (266 loc) · 12.5 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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<!DOCTYPE html>
<html lang="ko">
<head>
<!-- Basic -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Mobile Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Site Metas -->
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="" />
<link rel="shortcut icon" href="https://cdn.jsdelivr.net/gh/4RG0S/2024-Spring-Homeless@main/images/logo_circle.png" type="">
<title> ARGOS </title>
<!-- bootstrap core css -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
<!-- fonts style -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap" rel="stylesheet">
<!--owl slider stylesheet -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css" />
<!-- font awesome style -->
<link href="css/font-awesome.min.css" rel="stylesheet" />
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet" />
<!-- responsive style -->
<link href="css/responsive.css" rel="stylesheet" />
</head>
<body class="sub_page">
<div class="hero_area">
<div class="hero_bg_box">
<div class="bg_img_box">
<img src="images/hero-bg.png" alt=""></div>
</div>
<!-- header section starts -->
<header class="header_section">
<div class="container-fluid">
<nav class="navbar navbar-expand-lg custom_nav-container ">
<a class="navbar-brand" href="index.html">
<span>
ARGOS
</span>
</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation">
<span class=""></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ">
<li class="nav-item ">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="education.html">교육 활동</a>
<ul>
<li>
<a href="seminar.html" class="nav-link">정기 세미나</a>
</li>
<li>
<a href="hack.html" class="nav-link">해킹 시연회</a>
</li>
<li>
<a href="hackathon.html" class="nav-link">SOGRA Hackathon</a>
</li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="history.html">활동 기록</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="community.html">게시판
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://open.kakao.com/o/sIllhT5f">가입 문의</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<i class="fa fa-user" aria-hidden="true"></i>
Login</a>
</li>
<form class="form-inline">
<button class="btn my-2 my-sm-0 nav_search-btn" type="submit">
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</form>
</ul>
</div>
</nav>
</div>
</header>
<!-- end header section -->
</div>
<div class="board_wrap">
<div class="board_title">
<strong>ARGOS COMMUNITY</strong>
<p>Hack the world for everyone</p>
</div>
<div class="board_view_wrap">
<div class="board_view">
<div class="title">
글 제목이 들어갑니다.
</div>
<div class="info">
<dl>
<dt>번호</dt>
<dd>1</dd>
</dl>
<dl>
<dt>글쓴이</dt>
<dd>ARGOS</dd>
</dl>
<dl>
<dt>작성일</dt>
<dd>2003.06.25</dd>
</dl>
<dl>
<dt>조회</dt>
<dd>100</dd>
</dl>
</div>
<div class="cont">
글 내용이 들어갑니다.<br>
글 내용이 들어갑니다.<br>
글 내용이 들어갑니다.<br>
글 내용이 들어갑니다.<br>
글 내용이 들어갑니다.<br>
글 내용이 들어갑니다.<br>
글 내용이 들어갑니다.<br>
글 내용이 들어갑니다.
</div>
</div>
<div class="bt_wrap">
<a href="community.html" class="on">목록</a>
<a href="community_edit.html">수정</a>
<a href="#">삭제</a>
</div>
<!-- 댓글 작성 부분 -->
<div class="comment_wrap">
<h3>댓글</h3>
<textarea id="commentContent" placeholder="댓글을 입력해주세요."></textarea>
<button onclick="addComment()">댓글 등록</button>
</div>
<!-- 댓글 리스트 부분 -->
<ul id="commentList">
</ul>
</div>
</div>
<!-- info section -->
<section class="info_section layout_padding2">
<div class="container">
<div class="row">
<div class="col-md-6 col-lg-3 info_col">
<div class="info_contact">
<h4>
Address
</h4>
<div class="contact_link_box">
<a href="https://map.naver.com/p/entry/place/21033930?c=15.00,0,0,0,dh" target="_blank">
<i class="fa fa-map-marker" aria-hidden="true"></i>
<span>
대전광역시 유성구 대학로 99 (충남대학교) 공과대학 5호관
</span>
</a>
</a>
<a href="">
<i class="fa fa-envelope" aria-hidden="true"></i>
<span>
we.represent.argos@gmail.com
</span>
</a>
</div>
</div>
<div class="info_social">
<a href="">
<i class="fa fa-facebook" aria-hidden="true"></i>
</a>
<a href="https://www.instagram.com/cnu_argos/" target="_blank">
<i class="fa fa-instagram" aria-hidden="true"></i>
</a>
</div>
</div>
<div class="col-md-6 col-lg-2 mx-auto info_col">
<div class="info_link_box">
<h4>
Links
</h4>
<div class="info_links">
<a class="active" href="index.html">
Home
</a>
<a class="" href="education.html">
교육 활동
</a>
<a class="" href="history.html">
활동 기록
</a>
<a class="" href="https://open.kakao.com/o/sIllhT5f">
가입 문의
</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- end info section -->
<!-- jQery -->
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<!-- popper js -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
</script>
<!-- bootstrap js -->
<script type="text/javascript" src="js/bootstrap.js"></script>
<!-- owl slider -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js">
</script>
<!-- custom js -->
<script type="text/javascript" src="js/custom.js"></script>
<!-- Google Map -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCh39n5U-4IoWpsVGUHWdqB6puEkhRLdmI&callback=myMap">
</script>
<!-- End Google Map -->
<script>
// 댓글을 추가하는 함수
function addComment() {
var commentContent = document.getElementById('commentContent').value;
if (!commentContent) {
alert('댓글 내용을 입력해주세요.');
return;
}
var commentList = document.getElementById('commentList');
var newComment = document.createElement('li');
// 날짜와 시간을 추가
var now = new Date();
var dateTime = now.getFullYear() + '.' + (now.getMonth()+1) + '.' + now.getDate() + ' ' + now.getHours() + ':' + now.getMinutes();
// 댓글 작성자 이름을 표시할 공간을 추가
newComment.innerHTML = '<span class="commentAuthor">ARGOS </span>' +
commentContent +
'<span>' + dateTime + '</span>' +
'<button onclick="alert(\'수정 기능이 호출되었습니다.\')">수정</button>' +
'<button onclick="alert(\'삭제 기능이 호출되었습니다.\')">삭제</button>';
commentList.appendChild(newComment);
document.getElementById('commentContent').value = '';
}
// 페이지 로드 시 조회수를 증가시킵니다.
window.onload = function() {
var postId = getPostIdFromURL(); // URL에서 게시글 ID를 가져오는 함수. 실제 구현 필요.
increaseViewCount(postId);
};
function increaseViewCount(id) {
// 여기서 실제로는 서버에 조회수 증가를 요청해야 합니다.
// 아래는 가상의 코드이며, 실제 구현에는 서버와의 통신이 필요합니다.
var post = posts.find(function(post) { return post.id === id; });
post.viewCount++;
// 서버에 조회수 증가를 요청하는 코드...
}
</script>
</body>
</html>