ybjeong commited on
Commit
7c0b93e
โ€ข
1 Parent(s): 47948ff

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +152 -97
index.html CHANGED
@@ -28,9 +28,11 @@
28
  border-radius: 8px;
29
  /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
30
  }
 
31
  .table-task-list tbody tr.selected {
32
  background-color: #e9ecef !important; /* ์ง„ํ•œ ํšŒ์ƒ‰์กฐ๋กœ ๋ณ€๊ฒฝ */
33
  }
 
34
  .table-task-list, .table-task-detail {
35
  width: 100%;
36
  border-collapse: collapse;
@@ -38,12 +40,14 @@
38
  border: 1px solid #e5e7eb;
39
  margin-top: 20px; /* ๋‘ ํ…Œ์ด๋ธ” ์‚ฌ์ด์— ๊ณต๋ฐฑ ์ถ”๊ฐ€ */
40
  }
 
41
  .table-task-list thead, .table-task-detail thead {
42
  background-color: white;
43
  color: black;
44
  font-weight: bold;
45
  text-align: left;
46
  }
 
47
  .table-task-list td, .table-task-detail td {
48
  border-top: none;
49
  border-bottom: none;
@@ -51,27 +55,34 @@
51
  padding: 8px;
52
  text-align: left;
53
  }
 
54
  .table-task-detail thead tr th{
55
  padding:5px 10px;
56
  }
 
57
  .table-task-list td:last-child, .table-task-detail td:last-child {
58
  border-right: 1px solid #e5e7eb;
59
  }
 
60
  .table-task-list tbody tr:hover, .table-task-detail tbody tr:hover {
61
  background-color: #f1f1f1;
62
  cursor: pointer;
63
  }
 
64
  .table-task-list tbody tr:nth-child(odd), .table-task-detail tbody tr:nth-child(odd) {
65
  background-color: #f9fafb;
66
  }
 
67
  .table-task-list tbody tr:nth-child(even), .table-task-detail tbody tr:nth-child(even) {
68
  background-color: white;
69
  }
 
70
  .tabs {
71
  display: flex;
72
  margin-bottom: 0;
73
  border-bottom: 1px solid #e5e7eb;
74
  }
 
75
  .tab-link {
76
  font-size: 20px;
77
  padding: 10px 20px;
@@ -85,27 +96,33 @@
85
  position: relative;
86
  transition: color 0.3s, background-color 0.3s;
87
  }
 
88
  .tab-link.active {
89
  color: black;
90
  z-index: 1;
91
  margin-bottom: -1px;
92
  }
 
93
  .tab-content {
94
  border: 1px solid #e5e7eb;
95
  border-top: none;
96
  padding: 10px;
97
  position: relative;
98
  }
 
99
  .tab-link:hover {
100
  color: black;
101
  }
 
102
  .notice-task-name{
103
  margin: 0px 0px 15px 0px;
104
  }
 
105
  .notice-task-period{
106
  font-weight: 500;
107
  font-size:20px;
108
  }
 
109
  .custom-hr {
110
  border: none;
111
  height: 1px;
@@ -242,58 +259,91 @@
242
  </div>
243
  </body>
244
  <script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  now_task = "progress"
 
246
  $(document).ready(function() {
247
  getRow(now_task);
 
248
  $('.tab-link').click(function () {
249
  var selectedTab = $(this).attr('id').split('-')[1];
250
  now_task = selectedTab;
251
  console.log(now_task)
252
  $('.tab-link').removeClass('active');
253
  $(this).addClass('active');
 
254
  $('.tab').hide();
255
  getRow(now_task);
256
  });
 
257
  $('.table-task-list tbody').on('click', 'tr', function() {
258
  $('.table-task-list tr').removeClass('selected');
259
  $(this).addClass('selected');
260
  });
261
  });
 
262
  function getRow(checked_task){
263
  postdata = {"checked_progress":checked_task}
 
 
 
 
264
  $.ajax({
265
- type: 'GET',
266
- url: 'https://kli.korean.go.kr/benchmark/taskOrdtm/useTaskOrdtmListData.do?clCd=ING_TASK&siteType=USERLIST&partInYN=N',
267
- data: JSON.stringify(postdata),
268
- dataType: 'JSON',
269
- contentType: "application/json",
270
  success: function(response) {
271
  console.log(response)
272
- // if(response.status === "success") {
273
- // // console.log("in success")
274
- // var tableBody = (checked_task === "progress") ? $('#table-progress tbody') : $('#table-past tbody');
275
- // tableBody.empty(); // ๊ธฐ์กด ๋‚ด์šฉ์„ ๋น„์›๋‹ˆ๋‹ค.
276
- // // console.log(tableBody.parent().attr('id'));
277
- // // console.log(response.data)
278
- // response.data.forEach(function(item) {
279
- // var row = $('<tr>');
280
- // row.append($('<td>').text(item[0])); // No
281
- // row.append($('<td>').text(item[1])); // ๊ณผ์ œ๋ช…
282
- // row.append($('<td>').text(item[2])); // ๊ณผ์ œ state
283
- // row.append($('<td>').text(item[3])); // ๊ณผ์ œ ๊ธฐ๊ฐ„
284
- // row.append($('<td>').text(item[4])); // ๊ณผ์ œ status
285
- // tableBody.append(row);
286
- //
287
- // // ํด๋ฆญ ์ด๋ฒคํŠธ ์ถ”๊ฐ€
288
- // row.on('click', function() {
289
- // $('tr').removeClass('selected');
290
- // $(this).addClass('selected');
291
- // TaskRowClicked(item);
292
- // });
293
- // });
294
- // // console.log("task-"+now_task)
295
- // $('#task-' + now_task).show(); // Show the selected tab
296
- // }
 
297
  },
298
  error: function(request, status, error) {
299
  alert('ajax ํ†ต์‹  ์‹คํŒจ');
@@ -301,77 +351,83 @@
301
  }
302
  })
303
  }
304
- function TaskRowClicked(item) {
305
- var postdata = {
306
- 'checked_progress':now_task,
307
- no: item[0],
308
- taskName: item[1],
309
- taskPeriod: item[2],
310
- status: item[3]
311
- };
312
  // ์ƒˆ AJAX ์š”์ฒญ์„ ๋ณด๋ƒ…๋‹ˆ๋‹ค.
313
  $.ajax({
 
314
  type: 'GET',
315
- url: 'http://112.170.149.129:8090/get_score',
316
- data: JSON.stringify(postdata),
317
- dataType: 'JSON',
318
- contentType: "application/json",
319
  success: function(response) {
320
  console.log("Response received:", response);
321
- if (response.status === "success") {
322
- console.log(response.data)
323
- var hrArea = now_task === "progress" ? $('#hr-area-progress') : $('#hr-area-past');
324
- hrArea.empty();
325
- hrArea.html("<br><br><hr class=\"custom-hr\"><br>");
326
- //์ผ๋‹จ task์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ์ ์–ด์ค˜์•ผ ํ•จ.
327
- var noticeDetail = now_task === "progress" ? $('#task-progress-notice-div') : $('#task-past-notice-div');
328
- var taskNameDiv = noticeDetail.find('.notice-task-name');
329
- var taskPeriodDiv = noticeDetail.find('.notice-task-period');
330
- var taskInfoDiv = noticeDetail.find('.notice-task-info');
331
- taskNameDiv.empty();
332
- taskPeriodDiv.empty();
333
- taskInfoDiv.empty();
334
- var formattedTaskInfo = response.data.task_info.replace(/\n/g, '<br>');
335
- console.log(response.data.task_name)
336
- taskNameDiv.html(response.data.task_name);
337
- taskPeriodDiv.html(response.data.task_period);
338
- taskInfoDiv.html("<p style='font-weight:bold;'>[๊ณผ์ œ ๊ฐœ์š”]</p>"+formattedTaskInfo);
339
- var tableTitle = now_task === "progress" ? $('#table-progress-detail-title') : $('#table-past-detail-title');
340
- tableTitle.empty();
341
- tableTitle.html("<p style='font-weight:bold;'><br>[์ˆœ์œ„ํ‘œ]</p>");
342
- // ํ˜„์žฌ ํƒœ์Šคํฌ์— ๋”ฐ๋ผ ์ ์ ˆํ•œ ํ…Œ์ด๋ธ”๊ณผ ํ—ค๋“œ ์„ ํƒ
343
- var tableDetail = now_task === "progress" ? $('#table-progress-detail') : $('#table-past-detail');
344
- var thead = tableDetail.find('thead');
345
- var tbody = tableDetail.find('tbody');
346
- tableDetail.show(); // ํ…Œ์ด๋ธ”์„ ๋ณด์ด๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.
347
- tableDetail.css("display", "table"); // ํ…Œ์ด๋ธ”์„ ๋ณด์ด๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.
348
- // ํ—ค๋”๋ฅผ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.
349
- thead.empty(); // ๊ธฐ์กด์˜ ํ—ค๋” ๋‚ด์šฉ์„ ๋น„์›๋‹ˆ๋‹ค.
350
- var headerRow = $('<tr>');
351
- // ์ฒซ ๋ฒˆ์งธ ๋ฆฌ๋”๋ณด๋“œ ์•„์ดํ…œ์˜ ์ƒ์„ธ ํ‰๊ฐ€ ๊ฒฐ๊ณผ ํ‚ค ๊ฐ€์ ธ์˜ค๊ธฐ
352
- var detailsKeys = Object.keys(response.data.leaderboard[0].evaluation_result_detail);
353
- // ํ—ค๋” ์ œ๋ชฉ ์„ค์ •
354
- var headers = ["ranking", "team_name", "model_name", "evaluation_result"].concat(detailsKeys, "submit_date");
355
- headers.forEach(function(headerTitle) {
356
- headerRow.append($('<th>').text(headerTitle));
357
- });
358
- thead.append(headerRow);
359
- // ์„ธ๋ถ€ ์ •๋ณด๋ฅผ ํ‘œ์— ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
360
- tbody.empty(); // ๊ธฐ์กด ๋‚ด์šฉ์„ ๋น„์›๋‹ˆ๋‹ค.
361
- response.data.leaderboard.forEach(function(entry) {
362
- var detailRow = $('<tr>');
363
- headers.forEach(function(header) {
364
- if (header in entry.evaluation_result_detail) {
365
- // ํ‰๊ฐ€ ์ƒ์„ธ ๊ฒฐ๊ณผ ์ฒ˜๋ฆฌ
366
- detailRow.append($('<td>').text(entry.evaluation_result_detail[header]));
367
- } else {
368
- // ์ผ๋ฐ˜์ ์ธ ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ
369
- detailRow.append($('<td>').text(entry[header]));
370
- }
371
- });
372
- tbody.append(detailRow);
373
- });
374
- }
 
 
 
 
 
 
 
 
 
 
 
375
  },
376
  error: function(xhr, status, error) {
377
  alert('Error: ' + error.message);
@@ -380,4 +436,3 @@
380
  }
381
  </script>
382
  </html>
383
-
 
28
  border-radius: 8px;
29
  /*box-shadow: 0 2px 4px rgba(0,0,0,0.1);*/
30
  }
31
+
32
  .table-task-list tbody tr.selected {
33
  background-color: #e9ecef !important; /* ์ง„ํ•œ ํšŒ์ƒ‰์กฐ๋กœ ๋ณ€๊ฒฝ */
34
  }
35
+
36
  .table-task-list, .table-task-detail {
37
  width: 100%;
38
  border-collapse: collapse;
 
40
  border: 1px solid #e5e7eb;
41
  margin-top: 20px; /* ๋‘ ํ…Œ์ด๋ธ” ์‚ฌ์ด์— ๊ณต๋ฐฑ ์ถ”๊ฐ€ */
42
  }
43
+
44
  .table-task-list thead, .table-task-detail thead {
45
  background-color: white;
46
  color: black;
47
  font-weight: bold;
48
  text-align: left;
49
  }
50
+
51
  .table-task-list td, .table-task-detail td {
52
  border-top: none;
53
  border-bottom: none;
 
55
  padding: 8px;
56
  text-align: left;
57
  }
58
+
59
  .table-task-detail thead tr th{
60
  padding:5px 10px;
61
  }
62
+
63
  .table-task-list td:last-child, .table-task-detail td:last-child {
64
  border-right: 1px solid #e5e7eb;
65
  }
66
+
67
  .table-task-list tbody tr:hover, .table-task-detail tbody tr:hover {
68
  background-color: #f1f1f1;
69
  cursor: pointer;
70
  }
71
+
72
  .table-task-list tbody tr:nth-child(odd), .table-task-detail tbody tr:nth-child(odd) {
73
  background-color: #f9fafb;
74
  }
75
+
76
  .table-task-list tbody tr:nth-child(even), .table-task-detail tbody tr:nth-child(even) {
77
  background-color: white;
78
  }
79
+
80
  .tabs {
81
  display: flex;
82
  margin-bottom: 0;
83
  border-bottom: 1px solid #e5e7eb;
84
  }
85
+
86
  .tab-link {
87
  font-size: 20px;
88
  padding: 10px 20px;
 
96
  position: relative;
97
  transition: color 0.3s, background-color 0.3s;
98
  }
99
+
100
  .tab-link.active {
101
  color: black;
102
  z-index: 1;
103
  margin-bottom: -1px;
104
  }
105
+
106
  .tab-content {
107
  border: 1px solid #e5e7eb;
108
  border-top: none;
109
  padding: 10px;
110
  position: relative;
111
  }
112
+
113
  .tab-link:hover {
114
  color: black;
115
  }
116
+
117
  .notice-task-name{
118
  margin: 0px 0px 15px 0px;
119
  }
120
+
121
  .notice-task-period{
122
  font-weight: 500;
123
  font-size:20px;
124
  }
125
+
126
  .custom-hr {
127
  border: none;
128
  height: 1px;
 
259
  </div>
260
  </body>
261
  <script>
262
+ var taskOrdtmStatusCdMap = {
263
+ TEMP_STOR: "์ž„์‹œ ์ €์žฅ",
264
+ REG_COMP: "๋“ฑ๋ก ์™„๋ฃŒ",
265
+ PUB_COMP: "๊ณต๊ณ  ์™„๋ฃŒ",
266
+ OPER_ING: "๊ณผ์ œ ์šด์˜ ์ค‘",
267
+ OPER_END: "๊ณผ์ œ ์ข…๋ฃŒ",
268
+ OPER_WAIT: "์šด์˜์ž ํ™•์ธ ๋Œ€๊ธฐ",
269
+ SUB_END: "์ œ์ถœ ๋Œ€๊ธฐ",
270
+ OKAY_ING: "์Šน์ธ ์š”์ฒญ ์ค‘",
271
+ OKAY_END: "์Šน์ธ ์™„๋ฃŒ",
272
+ OKAY_FAIL: "์ œ์ถœ ๋ฐ˜๋ ค",
273
+ RE_OKAY_ING: "์žฌ์Šน์ธ ์š”์ฒญ ์ค‘",
274
+ RE_OKAY_FAIL: "์žฌ์Šน์ธ ๋ฐ˜๋ ค",
275
+ DELETE: "์‚ญ์ œ"
276
+ };
277
+
278
+ var taskOrdtmTyCdMap = {
279
+ PRER: "์‚ฌ์ „ ๊ณต๊ฐœ",
280
+ CPTHB: "๊ฒฝ์ง„ ๋Œ€ํšŒ",
281
+ ORDTM: "์ƒ์‹œ ๊ณผ์ œ",
282
+ ACADEMCON: "ํ•™์ˆ  ๋Œ€ํšŒ",
283
+ TRIRUN: "์‹œ๋ฒ” ์šด์˜"
284
+ };
285
+
286
  now_task = "progress"
287
+
288
  $(document).ready(function() {
289
  getRow(now_task);
290
+
291
  $('.tab-link').click(function () {
292
  var selectedTab = $(this).attr('id').split('-')[1];
293
  now_task = selectedTab;
294
  console.log(now_task)
295
  $('.tab-link').removeClass('active');
296
  $(this).addClass('active');
297
+
298
  $('.tab').hide();
299
  getRow(now_task);
300
  });
301
+
302
  $('.table-task-list tbody').on('click', 'tr', function() {
303
  $('.table-task-list tr').removeClass('selected');
304
  $(this).addClass('selected');
305
  });
306
  });
307
+
308
  function getRow(checked_task){
309
  postdata = {"checked_progress":checked_task}
310
+ var clCd = (now_task === "progress") ? "ING_TASK" : "END_TASK";
311
+
312
+ // var url = "http://signlab.iptime.org:19021/taskOrdtm/useTaskOrdtmListData.do?clCd=" + clCd + "&siteType=USERLIST&partInYN=N"
313
+ var url = "https://kli.korean.go.kr/benchmark/taskOrdtm/useTaskOrdtmListData.do?clCd="+clCd+"&siteType=USERLIST&partInYN=N"
314
  $.ajax({
315
+ type: 'GET',
316
+ url: url,
317
+ // dataType: 'JSON',
318
+ // contentType: "application/json",
 
319
  success: function(response) {
320
  console.log(response)
321
+ var tableBody = (checked_task === "progress") ? $('#table-progress tbody') : $('#table-past tbody');
322
+ tableBody.empty(); // ๊ธฐ์กด ๋‚ด์šฉ์„ ๋น„์›๋‹ˆ๋‹ค.
323
+ var rowNum = 0
324
+ var data = JSON.parse(response);
325
+ data.forEach(function(item) {
326
+ console.log(item['taskOrdtmNm'])
327
+ rowNum = rowNum + 1
328
+ var row = $('<tr>').attr('data-taskid', item['taskOrdtmId']); // ๊ณผ์ œ ์‹๋ณ„ ID๋ฅผ data-taskid ์†์„ฑ์œผ๋กœ ์ถ”๊ฐ€
329
+ // var row = $('<tr>');
330
+ row.append($('<td>').text(rowNum)); // No
331
+ row.append($('<td>').text(item['taskOrdtmNm'])); // ๊ณผ์ œ๋ช…
332
+ row.append($('<td>').text(taskOrdtmTyCdMap[item['taskOrdtmTyCd']])); // ๊ณผ์ œ ๋ถ„๋ฅ˜(์‚ฌ์ „๊ณต๊ฐœ ๋“ฑ)
333
+ row.append($('<td>').text(item['taskOrdtmBgngDt'] + " - " + item['taskOrdtmEndDt'])); // ๊ณผ์ œ ๊ธฐ๊ฐ„
334
+ row.append($('<td>').text(taskOrdtmStatusCdMap[item['taskOrdtmStatusCd']])); // ๊ณผ์ œ ์ƒํƒœ (์‚ฌ์ „๊ณต๊ฐœ์ค‘ ๋“ฑ)
335
+ tableBody.append(row);
336
+
337
+ // ํด๋ฆญ ์ด๋ฒคํŠธ ์ถ”๊ฐ€
338
+ row.on('click', function() {
339
+ $('tr').removeClass('selected');
340
+ $(this).addClass('selected');
341
+ var taskId = $(this).data('taskid'); // data-taskid ์†์„ฑ์—์„œ ๊ณผ์ œ ์‹๋ณ„ ID ๊ฐ€์ ธ์˜ค๊ธฐ
342
+ TaskRowClicked(taskId); // ๊ณผ์ œ ์‹๋ณ„ ID๋ฅผ ์ธ์ž๋กœ ๋„˜๊ฒจ์ฃผ๋ฉด์„œ ํ•จ์ˆ˜ ์‹คํ–‰
343
+ });
344
+ });
345
+ // console.log("task-"+now_task)
346
+ $('#task-' + now_task).show(); // Show the selected tab
347
  },
348
  error: function(request, status, error) {
349
  alert('ajax ํ†ต์‹  ์‹คํŒจ');
 
351
  }
352
  })
353
  }
354
+ function TaskRowClicked(taskId) {
355
+ console.log("Clicked task ID:", taskId);
 
 
 
 
 
 
356
  // ์ƒˆ AJAX ์š”์ฒญ์„ ๋ณด๋ƒ…๋‹ˆ๋‹ค.
357
  $.ajax({
358
+ // type: 'POST',
359
  type: 'GET',
360
+ url: 'https://kli.korean.go.kr/benchmark/taskOrdtm/taskLeaderBoardData.do?taskOrdtmId='+taskId,
361
+ // data: JSON.stringify(postdata),
362
+ // dataType: 'JSON',
363
+ // contentType: "application/json",
364
  success: function(response) {
365
  console.log("Response received:", response);
366
+ // if (response.status === "success") {
367
+ // console.log(response.data)
368
+ // var hrArea = now_task === "progress" ? $('#hr-area-progress') : $('#hr-area-past');
369
+ // hrArea.empty();
370
+ // hrArea.html("<br><br><hr class=\"custom-hr\"><br>");
371
+ //
372
+ //
373
+ // //์ผ๋‹จ task์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ์ ์–ด์ค˜์•ผ ํ•จ.
374
+ // var noticeDetail = now_task === "progress" ? $('#task-progress-notice-div') : $('#task-past-notice-div');
375
+ // var taskNameDiv = noticeDetail.find('.notice-task-name');
376
+ // var taskPeriodDiv = noticeDetail.find('.notice-task-period');
377
+ // var taskInfoDiv = noticeDetail.find('.notice-task-info');
378
+ //
379
+ // taskNameDiv.empty();
380
+ // taskPeriodDiv.empty();
381
+ // taskInfoDiv.empty();
382
+ //
383
+ // var formattedTaskInfo = response.data.task_info.replace(/\n/g, '<br>');
384
+ //
385
+ // console.log(response.data.task_name)
386
+ // taskNameDiv.html(response.data.task_name);
387
+ // taskPeriodDiv.html(response.data.task_period);
388
+ // taskInfoDiv.html("<p style='font-weight:bold;'>[๊ณผ์ œ ๊ฐœ์š”]</p>"+formattedTaskInfo);
389
+ //
390
+ // var tableTitle = now_task === "progress" ? $('#table-progress-detail-title') : $('#table-past-detail-title');
391
+ // tableTitle.empty();
392
+ // tableTitle.html("<p style='font-weight:bold;'><br>[์ˆœ์œ„ํ‘œ]</p>");
393
+ // // ํ˜„์žฌ ํƒœ์Šคํฌ์— ๋”ฐ๋ผ ์ ์ ˆํ•œ ํ…Œ์ด๋ธ”๊ณผ ํ—ค๋“œ ์„ ํƒ
394
+ // var tableDetail = now_task === "progress" ? $('#table-progress-detail') : $('#table-past-detail');
395
+ // var thead = tableDetail.find('thead');
396
+ // var tbody = tableDetail.find('tbody');
397
+ //
398
+ // tableDetail.show(); // ํ…Œ์ด๋ธ”์„ ๋ณด์ด๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.
399
+ // tableDetail.css("display", "table"); // ํ…Œ์ด๋ธ”์„ ๋ณด์ด๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.
400
+ //
401
+ // // ํ—ค๋”๋ฅผ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.
402
+ // thead.empty(); // ๊ธฐ์กด์˜ ํ—ค๋” ๋‚ด์šฉ์„ ๋น„์›๋‹ˆ๋‹ค.
403
+ // var headerRow = $('<tr>');
404
+ // // ์ฒซ ๋ฒˆ์งธ ๋ฆฌ๋”๋ณด๋“œ ์•„์ดํ…œ์˜ ์ƒ์„ธ ํ‰๊ฐ€ ๊ฒฐ๊ณผ ํ‚ค ๊ฐ€์ ธ์˜ค๊ธฐ
405
+ // var detailsKeys = Object.keys(response.data.leaderboard[0].evaluation_result_detail);
406
+ //
407
+ // // ํ—ค๋” ์ œ๋ชฉ ์„ค์ •
408
+ // var headers = ["ranking", "team_name", "model_name", "evaluation_result"].concat(detailsKeys, "submit_date");
409
+ // headers.forEach(function(headerTitle) {
410
+ // headerRow.append($('<th>').text(headerTitle));
411
+ // });
412
+ // thead.append(headerRow);
413
+ //
414
+ //
415
+ // // ์„ธ๋ถ€ ์ •๋ณด๋ฅผ ํ‘œ์— ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
416
+ // tbody.empty(); // ๊ธฐ์กด ๋‚ด์šฉ์„ ๋น„์›๋‹ˆ๋‹ค.
417
+ // response.data.leaderboard.forEach(function(entry) {
418
+ // var detailRow = $('<tr>');
419
+ // headers.forEach(function(header) {
420
+ // if (header in entry.evaluation_result_detail) {
421
+ // // ํ‰๊ฐ€ ์ƒ์„ธ ๊ฒฐ๊ณผ ์ฒ˜๋ฆฌ
422
+ // detailRow.append($('<td>').text(entry.evaluation_result_detail[header]));
423
+ // } else {
424
+ // // ์ผ๋ฐ˜์ ์ธ ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ
425
+ // detailRow.append($('<td>').text(entry[header]));
426
+ // }
427
+ // });
428
+ // tbody.append(detailRow);
429
+ // });
430
+ // }
431
  },
432
  error: function(xhr, status, error) {
433
  alert('Error: ' + error.message);
 
436
  }
437
  </script>
438
  </html>