ybjeong commited on
Commit
73a6066
โ€ข
1 Parent(s): b259ef1

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +140 -3
index.html CHANGED
@@ -3,17 +3,154 @@
3
  <head>
4
  <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
  <link rel="stylesheet" href="style.css" />
 
 
 
 
8
  </head>
9
  <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
  <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
  <p>
14
  Also don't forget to check the
15
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  </div>
18
  </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
3
  <head>
4
  <meta charset="utf-8" />
5
  <meta name="viewport" content="width=device-width" />
6
+ <title>๐Ÿ… Korean AI leaderboard</title>
7
  <link rel="stylesheet" href="style.css" />
8
+ <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
9
+ <style>
10
+
11
+ </style>
12
  </head>
13
  <body>
14
+ <!-- <div class="card">
15
+ <h1>๐Ÿ… Korean AI leaderboard</h1>
16
  <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
17
  <p>
18
  Also don't forget to check the
19
  <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
20
  </p>
21
+ </div> -->
22
+ <div class="header">
23
+ <div id="header_title"><h1>๐Ÿ… Korean AI leaderboard</h1></div>
24
+ <div id="header_content">[2024 ๊ตญ๋ฆฝ๊ตญ์–ด์› ์ธ๊ณต ์ง€๋Šฅ ์–ธ์–ด ๋Šฅ๋ ฅ ํ‰๊ฐ€]<br><br>
25
+
26
+ - ์ธ๊ณต ์ง€๋Šฅ, ์ธ๊ฐ„์˜ ๊ฐ์ •์„ ์ดํ•ดํ•˜๊ณ  ์ด์•ผ๊ธฐ๋ฅผ ์™„์„ฑํ•˜๋‹ค<br>
27
+ - ๊ณผ์ œ ์ƒ์„ธ ๋งํฌ: <a>https://kli.korean.go.kr/benchmark/taskBoardsOrdtm/boardsOrdtm/noticeView.do?page=0&recordId=130&boardOrdtmId=&base.condition=boardOrdtm.title&base.keyword=&size=10</a><br><br>
28
+
29
+ ๐Ÿš€ ๊ฒฝ์ง„ ๋Œ€ํšŒ ๊ณผ์ œ<br>
30
+ - 2024๋…„ 7~8์›” ๊ฐœ์ตœ ์˜ˆ์ •์ธ "2024๋…„ ์ธ๊ณต์ง€๋Šฅ์˜ ํ•œ๊ตญ์–ด ๋Šฅ๋ ฅ ํ‰๊ฐ€" ๊ฒฝ์ง„๋Œ€ํšŒ ๊ณผ์ œ์ž…๋‹ˆ๋‹ค.<br>
31
+ - ์ผ์ƒ ๋Œ€ํ™” ์š”์•ฝ: ๋‹ค์ž๊ฐ„ ๋Œ€ํ™”์—์„œ ์ฃผ์ œ๋ณ„ ์š”์•ฝ๋ฌธ์„ ์ƒ์„ฑ<br>
32
+ - ๋Œ€ํ™” ๋งฅ๋ฝ ์ถ”๋ก : ๋ฐœํ™”์˜ ๋งฅ๋ฝ์„ ์ •ํ™•ํ•˜๊ฒŒ ์ถ”๋ก ํ•œ ๋ฌธ์žฅ์„ ์„ ํƒ<br><br>
33
+
34
+ ๐Ÿš€ ์ƒ์‹œ ํ‰๊ฐ€ ๊ณผ์ œ<br>
35
+ - ์—ฐ๊ตฌยท๊ฐœ๋ฐœ์ž๋“ค์ด ์ธ๊ณต์ง€๋Šฅ์˜ ํ•œ๊ตญ์–ด ์„ฑ๋Šฅ์„ ๊ฒ€์ฆํ•˜๊ณ  ํ‰๊ฐ€ํ•  ์ˆ˜ ์žˆ๋„๋ก ์ƒ์‹œ ๊ณต๊ฐœํ•ฉ๋‹ˆ๋‹ค.<br>
36
+ - ์—ฐ๊ฒฐ ๋ฌธ์žฅ ์ถ”๋ก : ๋‘ ๋ฌธ์žฅ ์‚ฌ์ด์— ๋“ค์–ด๊ฐˆ ๊ฐ€์žฅ ์ ํ•ฉํ•œ ๋ฌธ์žฅ์„ ์„ ํƒ<br>
37
+ - ๋ถ€์ ์ ˆ ๋ฐœ์–ธ ํƒ์ง€: ๋‹ค์–‘ํ•œ ๋ฌธ์„œ์—์„œ ๋ช…์‹œ์ ยท๋น„๋ช…์‹œ์  ๋ถ€์ ์ ˆ ๋ฐœ์–ธ ํƒ์ง€<br>
38
+ - ํ•จ์˜ ๋ถ„์„ ๊ฒฐ๊ณผ ์„ค๋ช…๋ฌธ ์ƒ์„ฑ: ๋‘ ๋ฌธ์žฅ ์‚ฌ์ด์˜ ํ•จ์˜ ๊ด€๊ณ„ ๊ทผ๊ฑฐ๋ฅผ ์ƒ์„ฑ<br>
39
+ - ๊ตญํšŒ ํšŒ์˜๋ก ์š”์•ฝ: ๊ตญํšŒ ํšŒ์˜๋ก ๋‚ด ์ฃผ์š” ์•ˆ๊ฑด๋ณ„ ์š”์•ฝ๋ฌธ์„ ์ž‘์„ฑ<br> </div>
40
+ </div>
41
+ <div class="content">
42
+ <div id="content-title" style="display:flex;"><p id="p-progress">์ง„ํ–‰ ์ค‘ ๊ณผ์ œ</p>&nbsp;&nbsp;&nbsp;&nbsp;<p id="p-past">์ง„ํ–‰ ์ค‘ ๊ณผ์ œ</p></div>
43
+ <div class="tab" id = "task-in-progress">
44
+ <table id = "table-progress">
45
+ <thead>
46
+ <tr>
47
+ <td>No</td>
48
+ <td>๊ณผ์ œ๋ช…</td>
49
+ <td>๊ณผ์ œ ๊ธฐ๊ฐ„</td>
50
+ <td>์ƒํƒœ</td>
51
+ </tr>
52
+ </thead>
53
+ <tbody>
54
+ </tbody>
55
+ </table>
56
+
57
+ <table id = "table-progress-detail" style="display:none;">
58
+ <thead>
59
+ <tr>
60
+ <td>No</td>
61
+ <td>ํŒ€๋ช…</td>
62
+ <td>๋ชจ๋ธ๋ช…</td>
63
+ <td>์ ์ˆ˜A</td>
64
+ <td>์ ์ˆ˜B</td>
65
+ <td>์ ์ˆ˜C</td>
66
+ <td>์ ์ˆ˜D</td>
67
+ <td>์ œ์ถœ ์ผ์‹œ</td>
68
+ </tr>
69
+ </thead>
70
+ <tbody>
71
+ </tbody>
72
+ </table>
73
+ </div>
74
+ <div class="tab" id = "task-past" style="display:none;">
75
+ </div>
76
  </div>
77
  </body>
78
+ <script>
79
+ $(document).ready(function() {
80
+ postdata = {"key":"hello"}
81
+
82
+ $.ajax({
83
+ type: 'POST',
84
+ url: 'http://112.170.149.129:5000/get_row',
85
+ async: false,
86
+ data: JSON.stringify(postdata),
87
+ dataType: 'JSON',
88
+ async : false,
89
+ contentType: "application/json",
90
+ success: function(data) {
91
+ if(response.status === "success") {
92
+ // ํ…Œ์ด๋ธ” ๋‚ด์šฉ์„ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค.
93
+ var tableBody = $('#table-progress tbody');
94
+ tableBody.empty(); // ๊ธฐ์กด ๋‚ด์šฉ์„ ๋น„์›๋‹ˆ๋‹ค.
95
+
96
+ response.data.forEach(function(item) {
97
+ var row = $('<tr>');
98
+ row.append($('<td>').text(item[0])); // No
99
+ row.append($('<td>').text(item[1])); // ๊ณผ์ œ๋ช…
100
+ row.append($('<td>').text(item[2])); // ๊ณผ์ œ ๊ธฐ๊ฐ„
101
+ row.append($('<td>').text(item[3])); // ์ƒํƒœ
102
+ tableBody.append(row);
103
+
104
+ // ํด๋ฆญ ์ด๋ฒคํŠธ ์ถ”๊ฐ€
105
+ row.on('click', function() {
106
+ TaskInProgressRowClicked(item);
107
+ });
108
+ });
109
+ }
110
+ },
111
+ error: function(request, status, error) {
112
+ alert('ajax ํ†ต์‹  ์‹คํŒจ');
113
+ alert(error);
114
+ }
115
+ })
116
+ });
117
+
118
+ function TaskInProgressRowClicked(item) {
119
+ var postdata = {
120
+ no: item[0],
121
+ taskName: item[1],
122
+ taskPeriod: item[2],
123
+ status: item[3]
124
+ };
125
+
126
+ // ์ƒˆ AJAX ์š”์ฒญ์„ ๋ณด๋ƒ…๋‹ˆ๋‹ค.
127
+ $.ajax({
128
+ type: 'POST',
129
+ url: 'http://112.170.149.129:5000/get_score', // ์„œ๋ฒ„ URL์„ ์ง€์ •ํ•˜์„ธ์š”.
130
+ data: JSON.stringify(postdata),
131
+ dataType: 'JSON',
132
+ contentType: "application/json",
133
+ success: function(response) {
134
+ // ์„ฑ๊ณต์ ์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›์•˜์„ ๋•Œ ๋‘ ๋ฒˆ์งธ ํ…Œ์ด๋ธ”์— ๋ฐ์ดํ„ฐ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
135
+ if (response.status === "success") {
136
+ var detailTableBody = $('#table-progress-detail tbody');
137
+ detailTableBody.empty(); // ๊ธฐ์กด ๋‚ด์šฉ์„ ๋น„์›๋‹ˆ๋‹ค.
138
+
139
+ response.rows.forEach(function(rowData) {
140
+ var detailRow = $('<tr>');
141
+ rowData.forEach(function(cellData) {
142
+ detailRow.append($('<td>').text(cellData));
143
+ });
144
+ detailTableBody.append(detailRow);
145
+ });
146
+
147
+ $('#table-progress-detail').show(); // ๋‘ ๋ฒˆ์งธ ํ…Œ์ด๋ธ”์„ ๋ณด์ด๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.
148
+ }
149
+ },
150
+ error: function(xhr, status, error) {
151
+ alert('Error: ' + error);
152
+ }
153
+ });
154
+ }
155
+ </script>
156
  </html>