-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
241 lines (228 loc) · 14 KB
/
index.html
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
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Noto+Serif+KR&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles/main.css">
<title>우리느낌 - 한국어 </title>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="/">우리느낌</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#main-nav" aria-controls="main-nav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="main-nav">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="#start">시작</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#view">결과</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#rank">기여 순위</a>
</li>
</ul>
<a class="btn btn-outline-success my-2 my-sm-0" href="https://uri-feeling.bab2min.pe.kr:8193/login" id='btn-login'>로그인</a>
<div class="dropdown" id='btn-logout' style='display:none'>
<a class="btn btn-outline-success my-2 my-sm-0 dropdown-toggle" href="#" id="user-menu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></a>
<div class="dropdown-menu" aria-labelledby="user-menu">
<a class="dropdown-item" href="#view/bab2min" id='user-menu-my-view'>내 라벨링</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="https://uri-feeling.bab2min.pe.kr:8193/logout">로그아웃</a>
</div>
</div>
</div>
</nav>
<main role="main" class="container main-cont" style='display:none' id="main-cont-home">
<div class="">
<h1>우리느낌</h1>
<p class="lead"></p>
</div>
<div class="d-flex align-items-center p-3 my-3 text-white-50 bg-purple rounded shadow-sm">
<img class="mr-3" src="/docs/4.4/assets/brand/bootstrap-outline.svg" alt="" width="48" height="48">
<div class="lh-100">
<h6 class="mb-0 text-white lh-100">Bootstrap</h6>
<small>Since 2011</small>
</div>
</div>
<div class="my-3 p-3 bg-white rounded shadow-sm">
<h6 class="border-bottom border-gray pb-2 mb-0">Recent updates</h6>
<div class="media text-muted pt-3">
<svg class="bd-placeholder-img mr-2 rounded" width="32" height="32" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: 32x32"><title>Placeholder</title><rect width="100%" height="100%" fill="#007bff"/><text x="50%" y="50%" fill="#007bff" dy=".3em">32x32</text></svg>
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
<strong class="d-block text-gray-dark">@username</strong>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
</div>
<div class="media text-muted pt-3">
<svg class="bd-placeholder-img mr-2 rounded" width="32" height="32" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: 32x32"><title>Placeholder</title><rect width="100%" height="100%" fill="#e83e8c"/><text x="50%" y="50%" fill="#e83e8c" dy=".3em">32x32</text></svg>
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
<strong class="d-block text-gray-dark">@username</strong>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
</div>
<div class="media text-muted pt-3">
<svg class="bd-placeholder-img mr-2 rounded" width="32" height="32" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: 32x32"><title>Placeholder</title><rect width="100%" height="100%" fill="#6f42c1"/><text x="50%" y="50%" fill="#6f42c1" dy=".3em">32x32</text></svg>
<p class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
<strong class="d-block text-gray-dark">@username</strong>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
</div>
<small class="d-block text-right mt-3">
<a href="#">All updates</a>
</small>
</div>
<div class="my-3 p-3 bg-white rounded shadow-sm">
<h6 class="border-bottom border-gray pb-2 mb-0">Suggestions</h6>
<div class="media text-muted pt-3">
<svg class="bd-placeholder-img mr-2 rounded" width="32" height="32" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: 32x32"><title>Placeholder</title><rect width="100%" height="100%" fill="#007bff"/><text x="50%" y="50%" fill="#007bff" dy=".3em">32x32</text></svg>
<div class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
<div class="d-flex justify-content-between align-items-center w-100">
<strong class="text-gray-dark">Full Name</strong>
<a href="#">Follow</a>
</div>
<span class="d-block">@username</span>
</div>
</div>
<div class="media text-muted pt-3">
<svg class="bd-placeholder-img mr-2 rounded" width="32" height="32" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: 32x32"><title>Placeholder</title><rect width="100%" height="100%" fill="#007bff"/><text x="50%" y="50%" fill="#007bff" dy=".3em">32x32</text></svg>
<div class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
<div class="d-flex justify-content-between align-items-center w-100">
<strong class="text-gray-dark">Full Name</strong>
<a href="#">Follow</a>
</div>
<span class="d-block">@username</span>
</div>
</div>
<div class="media text-muted pt-3">
<svg class="bd-placeholder-img mr-2 rounded" width="32" height="32" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid slice" focusable="false" role="img" aria-label="Placeholder: 32x32"><title>Placeholder</title><rect width="100%" height="100%" fill="#007bff"/><text x="50%" y="50%" fill="#007bff" dy=".3em">32x32</text></svg>
<div class="media-body pb-3 mb-0 small lh-125 border-bottom border-gray">
<div class="d-flex justify-content-between align-items-center w-100">
<strong class="text-gray-dark">Full Name</strong>
<a href="#">Follow</a>
</div>
<span class="d-block">@username</span>
</div>
</div>
<small class="d-block text-right mt-3">
<a href="#">All suggestions</a>
</small>
</div>
</main>
<main role="main" class="container main-cont" style='display:none' id="main-cont-start">
<div class="">
<h1>라벨링 시작하기</h1>
<p class="lead">
<a class="btn btn-outline-success my-2 my-sm-0" href="#tutorial">연습해보기</a>
<a class="btn btn-outline-success my-2 my-sm-0" href="#next_label">시작하기</a>
</p>
</div>
</main>
<main role="main" class="container main-cont" style='display:none' id="main-cont-next_label">
<div class="d-flex align-items-center">
<strong>로딩 중...</strong>
<div class="spinner-border ml-auto" role="status" aria-hidden="true"></div>
</div>
</main>
<main role="main" class="container main-cont" style='display:none' id="main-cont-label">
<div class="">
<p class="lead polarity">다음 문장에서 드러나는 극성으로 적절한 것을 선택해주세요.</p>
<p class="lead emotion">다음 문장에서 드러나는 감정으로 적절한 것을 선택해주세요.</p>
<div class="card doc-cont-view">
<div class="card-body" id="label-doc">
</div>
</div>
<div class="row polarity" id="polarity-list">
</div>
<div class="row emotion" id="emotion-list">
</div>
</div>
</main>
<main role="main" class="container main-cont" style='display:none' id="main-cont-view">
<div class="">
<h1>라벨링 결과 보기</h1>
<h2 id="view-user-name">
<a href='#' class='avatar-link' target='_blank'><img class='avatar' src='./styles/default_avatar.png'></a>
<a href='#' class='avatar-link' target='_blank'><span class='user-id'></span></a>
님의 라벨링 결과
</h2>
<table class='table' id="view-list">
<thead>
<tr>
<th class='cont'>본문</th>
<th class='polarity'>극성</th>
<th class='emotion'>감정</th>
<th class='time'>일시</th>
<th class='del'></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</main>
<main role="main" class="container main-cont" style='display:none' id="main-cont-rank">
<div class="">
<h1>기여 순위 보기</h1>
<ul class="list-group" id="rank-list">
</ul>
</div>
</main>
<!-- Modal -->
<div class="modal fade" id="delete-dlg" tabindex="-1" role="dialog" aria-labelledby="delete-dlg-label" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="delete-dlg-label">철회</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
라벨링을 철회하시겠습니까? 되돌릴 수 없습니다.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">취소</button>
<button type="button" class="btn btn-danger delete-btn-ok">철회</button>
</div>
</div>
</div>
</div>
<script type="text/html" id="tmp-view-item">
<tr data-value="{{doc_id}}">
<td class='cont'>{{content}}</td>
<td class='polarity'><p class='badge badge-{{polarity_class}}'>{{polarity_name}}</p></td>
<td class='emotion'><p class='badge badge-{{emotion_class}}'>{{emotion_name}}</p></td>
<td class='time'>{{time}}</td>
<td class='del'>
<button type="button" class="btn btn-danger btn-sm delete" data-toggle="modal" data-target="#delete-dlg">
<svg class="bi bi-trash-fill" width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M4.5 3a1 1 0 00-1 1v1a1 1 0 001 1H5v9a2 2 0 002 2h6a2 2 0 002-2V6h.5a1 1 0 001-1V4a1 1 0 00-1-1H12a1 1 0 00-1-1H9a1 1 0 00-1 1H4.5zm3 4a.5.5 0 01.5.5v7a.5.5 0 01-1 0v-7a.5.5 0 01.5-.5zM10 7a.5.5 0 01.5.5v7a.5.5 0 01-1 0v-7A.5.5 0 0110 7zm3 .5a.5.5 0 00-1 0v7a.5.5 0 001 0v-7z" clip-rule="evenodd"></path>
</svg>
</button>
</td>
</tr>
</script>
<script type="text/html" id="tmp-emotion-btn">
<div class="col-12 col-sm-6 col-md-6 col-lg-4 emotion-btn-wrap">
<button type="button" class="emotion-btn btn btn-{{css}} btn-lg btn-block" data-value="{{id}}">{{name}}</button>
</div>
</script>
<script type="text/html" id="tmp-rank-item">
<li class="list-group-item d-flex align-items-center" id='rank-item-{{rank}}'>
<span class="rank badge badge-light">{{rank}}</span>
<a href='#' class='avatar-link' target='_blank'><img class='avatar' src='./styles/default_avatar.png'></a>
<a href='#' class='avatar-link' target='_blank'><span class='user-id'>{{gh_id}}</span></a>
<a href='#view/{{user_id}}' class='ml-auto'><span class='contrib-cnt badge badge-primary badge-pill'>{{contrib_cnt}}</span></a>
</li>
</script>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src='scripts/main.js'></script>
</body>
</html>