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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="ko">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>LLM Creativity Battle Arena</title>
|
| 7 |
+
<style>
|
| 8 |
+
* {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
box-sizing: border-box;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
body {
|
| 15 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 16 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 17 |
+
min-height: 100vh;
|
| 18 |
+
padding: 20px;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.container {
|
| 22 |
+
max-width: 1400px;
|
| 23 |
+
margin: 0 auto;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.header {
|
| 27 |
+
background: white;
|
| 28 |
+
border-radius: 20px;
|
| 29 |
+
padding: 30px;
|
| 30 |
+
margin-bottom: 30px;
|
| 31 |
+
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
| 32 |
+
text-align: center;
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.header h1 {
|
| 36 |
+
color: #333;
|
| 37 |
+
font-size: 2.5em;
|
| 38 |
+
margin-bottom: 10px;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
.header p {
|
| 42 |
+
color: #666;
|
| 43 |
+
font-size: 1.1em;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.main-content {
|
| 47 |
+
display: grid;
|
| 48 |
+
grid-template-columns: 1fr 1fr;
|
| 49 |
+
gap: 30px;
|
| 50 |
+
margin-bottom: 30px;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.battle-arena {
|
| 54 |
+
grid-column: 1 / -1;
|
| 55 |
+
background: white;
|
| 56 |
+
border-radius: 20px;
|
| 57 |
+
padding: 30px;
|
| 58 |
+
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.prompt-section {
|
| 62 |
+
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
| 63 |
+
border-radius: 15px;
|
| 64 |
+
padding: 25px;
|
| 65 |
+
margin-bottom: 30px;
|
| 66 |
+
color: white;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.prompt-category {
|
| 70 |
+
display: inline-block;
|
| 71 |
+
background: rgba(255,255,255,0.3);
|
| 72 |
+
padding: 5px 15px;
|
| 73 |
+
border-radius: 20px;
|
| 74 |
+
margin-bottom: 15px;
|
| 75 |
+
font-size: 0.9em;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.prompt-text {
|
| 79 |
+
font-size: 1.3em;
|
| 80 |
+
font-weight: bold;
|
| 81 |
+
line-height: 1.5;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
.responses-container {
|
| 85 |
+
display: grid;
|
| 86 |
+
grid-template-columns: 1fr 1fr;
|
| 87 |
+
gap: 30px;
|
| 88 |
+
margin-bottom: 30px;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.response-box {
|
| 92 |
+
background: #f8f9fa;
|
| 93 |
+
border-radius: 15px;
|
| 94 |
+
padding: 25px;
|
| 95 |
+
position: relative;
|
| 96 |
+
min-height: 300px;
|
| 97 |
+
transition: all 0.3s ease;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.response-box:hover {
|
| 101 |
+
transform: translateY(-5px);
|
| 102 |
+
box-shadow: 0 15px 40px rgba(0,0,0,0.1);
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
.response-label {
|
| 106 |
+
position: absolute;
|
| 107 |
+
top: -15px;
|
| 108 |
+
left: 20px;
|
| 109 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 110 |
+
color: white;
|
| 111 |
+
padding: 8px 20px;
|
| 112 |
+
border-radius: 20px;
|
| 113 |
+
font-weight: bold;
|
| 114 |
+
font-size: 1.2em;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.response-content {
|
| 118 |
+
margin-top: 20px;
|
| 119 |
+
line-height: 1.6;
|
| 120 |
+
color: #333;
|
| 121 |
+
max-height: 400px;
|
| 122 |
+
overflow-y: auto;
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
.model-reveal {
|
| 126 |
+
display: none;
|
| 127 |
+
margin-top: 20px;
|
| 128 |
+
padding: 15px;
|
| 129 |
+
background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
|
| 130 |
+
border-radius: 10px;
|
| 131 |
+
text-align: center;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
.model-reveal.show {
|
| 135 |
+
display: block;
|
| 136 |
+
animation: fadeIn 0.5s ease;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.model-name {
|
| 140 |
+
font-size: 1.3em;
|
| 141 |
+
font-weight: bold;
|
| 142 |
+
color: #00796b;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
.vote-section {
|
| 146 |
+
text-align: center;
|
| 147 |
+
margin: 30px 0;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
.vote-buttons {
|
| 151 |
+
display: flex;
|
| 152 |
+
justify-content: center;
|
| 153 |
+
gap: 30px;
|
| 154 |
+
margin-bottom: 20px;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
.vote-btn {
|
| 158 |
+
padding: 15px 50px;
|
| 159 |
+
font-size: 1.2em;
|
| 160 |
+
font-weight: bold;
|
| 161 |
+
border: none;
|
| 162 |
+
border-radius: 30px;
|
| 163 |
+
cursor: pointer;
|
| 164 |
+
transition: all 0.3s ease;
|
| 165 |
+
color: white;
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
.vote-btn-a {
|
| 169 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
.vote-btn-b {
|
| 173 |
+
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
.vote-btn:hover {
|
| 177 |
+
transform: scale(1.05);
|
| 178 |
+
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
.vote-btn:disabled {
|
| 182 |
+
opacity: 0.5;
|
| 183 |
+
cursor: not-allowed;
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
.leaderboard {
|
| 187 |
+
background: white;
|
| 188 |
+
border-radius: 20px;
|
| 189 |
+
padding: 30px;
|
| 190 |
+
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
.leaderboard h2 {
|
| 194 |
+
color: #333;
|
| 195 |
+
margin-bottom: 25px;
|
| 196 |
+
font-size: 2em;
|
| 197 |
+
text-align: center;
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
.leaderboard-table {
|
| 201 |
+
width: 100%;
|
| 202 |
+
border-collapse: collapse;
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
.leaderboard-table th {
|
| 206 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 207 |
+
color: white;
|
| 208 |
+
padding: 15px 10px;
|
| 209 |
+
text-align: left;
|
| 210 |
+
font-size: 0.9em;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
.leaderboard-table td {
|
| 214 |
+
padding: 12px 10px;
|
| 215 |
+
border-bottom: 1px solid #e0e0e0;
|
| 216 |
+
font-size: 0.95em;
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
.leaderboard-table tr:hover {
|
| 220 |
+
background: #f5f5f5;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
.rank-medal {
|
| 224 |
+
display: inline-block;
|
| 225 |
+
width: 30px;
|
| 226 |
+
text-align: center;
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
.rank-1 { color: #ffd700; font-size: 1.5em; }
|
| 230 |
+
.rank-2 { color: #c0c0c0; font-size: 1.4em; }
|
| 231 |
+
.rank-3 { color: #cd7f32; font-size: 1.3em; }
|
| 232 |
+
|
| 233 |
+
.score-cell {
|
| 234 |
+
font-weight: bold;
|
| 235 |
+
text-align: center;
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
.score-high { color: #4caf50; }
|
| 239 |
+
.score-medium { color: #ff9800; }
|
| 240 |
+
.score-low { color: #f44336; }
|
| 241 |
+
|
| 242 |
+
.category-tabs {
|
| 243 |
+
display: flex;
|
| 244 |
+
gap: 10px;
|
| 245 |
+
margin-bottom: 25px;
|
| 246 |
+
flex-wrap: wrap;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
.category-tab {
|
| 250 |
+
padding: 10px 20px;
|
| 251 |
+
background: #f0f0f0;
|
| 252 |
+
border: none;
|
| 253 |
+
border-radius: 20px;
|
| 254 |
+
cursor: pointer;
|
| 255 |
+
transition: all 0.3s ease;
|
| 256 |
+
font-weight: 500;
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
.category-tab.active {
|
| 260 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 261 |
+
color: white;
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
.new-battle-btn {
|
| 265 |
+
display: block;
|
| 266 |
+
margin: 30px auto;
|
| 267 |
+
padding: 15px 40px;
|
| 268 |
+
font-size: 1.1em;
|
| 269 |
+
font-weight: bold;
|
| 270 |
+
background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
|
| 271 |
+
color: white;
|
| 272 |
+
border: none;
|
| 273 |
+
border-radius: 30px;
|
| 274 |
+
cursor: pointer;
|
| 275 |
+
transition: all 0.3s ease;
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
.new-battle-btn:hover {
|
| 279 |
+
transform: scale(1.05);
|
| 280 |
+
box-shadow: 0 10px 25px rgba(76,175,80,0.3);
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
.stats-grid {
|
| 284 |
+
display: grid;
|
| 285 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 286 |
+
gap: 20px;
|
| 287 |
+
margin-top: 30px;
|
| 288 |
+
}
|
| 289 |
+
|
| 290 |
+
.stat-card {
|
| 291 |
+
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
| 292 |
+
border-radius: 15px;
|
| 293 |
+
padding: 20px;
|
| 294 |
+
text-align: center;
|
| 295 |
+
}
|
| 296 |
+
|
| 297 |
+
.stat-value {
|
| 298 |
+
font-size: 2em;
|
| 299 |
+
font-weight: bold;
|
| 300 |
+
color: #667eea;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
.stat-label {
|
| 304 |
+
color: #666;
|
| 305 |
+
margin-top: 5px;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
@keyframes fadeIn {
|
| 309 |
+
from { opacity: 0; transform: translateY(10px); }
|
| 310 |
+
to { opacity: 1; transform: translateY(0); }
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
.loading {
|
| 314 |
+
display: inline-block;
|
| 315 |
+
width: 20px;
|
| 316 |
+
height: 20px;
|
| 317 |
+
border: 3px solid rgba(0,0,0,.1);
|
| 318 |
+
border-radius: 50%;
|
| 319 |
+
border-top-color: #667eea;
|
| 320 |
+
animation: spin 1s ease-in-out infinite;
|
| 321 |
+
}
|
| 322 |
+
|
| 323 |
+
@keyframes spin {
|
| 324 |
+
to { transform: rotate(360deg); }
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
.elo-badge {
|
| 328 |
+
display: inline-block;
|
| 329 |
+
background: #ff6b6b;
|
| 330 |
+
color: white;
|
| 331 |
+
padding: 3px 8px;
|
| 332 |
+
border-radius: 10px;
|
| 333 |
+
font-size: 0.85em;
|
| 334 |
+
margin-left: 5px;
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
.win-rate {
|
| 338 |
+
display: inline-block;
|
| 339 |
+
padding: 3px 8px;
|
| 340 |
+
border-radius: 10px;
|
| 341 |
+
font-size: 0.85em;
|
| 342 |
+
}
|
| 343 |
+
|
| 344 |
+
.win-rate-high { background: #c8e6c9; color: #2e7d32; }
|
| 345 |
+
.win-rate-medium { background: #fff3e0; color: #e65100; }
|
| 346 |
+
.win-rate-low { background: #ffebee; color: #c62828; }
|
| 347 |
+
</style>
|
| 348 |
+
</head>
|
| 349 |
+
<body>
|
| 350 |
+
<div class="container">
|
| 351 |
+
<div class="header">
|
| 352 |
+
<h1>๐จ LLM ์ฐฝ์์ฑ ๋ฐฐํ ์๋ ๋</h1>
|
| 353 |
+
<p>AI๋ค์ ์ฐฝ์์ ๋ฅ๋ ฅ์ ๊ฒจ๋ฃจ๋ ์ค์๊ฐ ๋๊ฒฐ ์์คํ
</p>
|
| 354 |
+
</div>
|
| 355 |
+
|
| 356 |
+
<div class="battle-arena">
|
| 357 |
+
<div class="prompt-section">
|
| 358 |
+
<div class="prompt-category" id="promptCategory">๐ก ํ์ /๋ฐ๋ช
</div>
|
| 359 |
+
<div class="prompt-text" id="promptText">
|
| 360 |
+
2050๋
์ธ๋ฅ๊ฐ ํ์ฑ์ ์ ์ฐฉํ์ต๋๋ค. ํ์ฑ์์ ๊ฐ์ฅ ๋จผ์ ํ์ํ ๋น์ฆ๋์ค 3๊ฐ์ง๋ฅผ ์ ์ํ๊ณ , ๊ฐ๊ฐ์ ์์ต ๋ชจ๋ธ์ ์ค๋ช
ํด์ฃผ์ธ์.
|
| 361 |
+
</div>
|
| 362 |
+
</div>
|
| 363 |
+
|
| 364 |
+
<div class="responses-container">
|
| 365 |
+
<div class="response-box">
|
| 366 |
+
<div class="response-label">๋ชจ๋ธ A</div>
|
| 367 |
+
<div class="response-content" id="responseA">
|
| 368 |
+
<div class="loading"></div> ์๋ต ์์ฑ ์ค...
|
| 369 |
+
</div>
|
| 370 |
+
<div class="model-reveal" id="modelA">
|
| 371 |
+
<div class="model-name">GPT-4</div>
|
| 372 |
+
</div>
|
| 373 |
+
</div>
|
| 374 |
+
|
| 375 |
+
<div class="response-box">
|
| 376 |
+
<div class="response-label">๋ชจ๋ธ B</div>
|
| 377 |
+
<div class="response-content" id="responseB">
|
| 378 |
+
<div class="loading"></div> ์๋ต ์์ฑ ์ค...
|
| 379 |
+
</div>
|
| 380 |
+
<div class="model-reveal" id="modelB">
|
| 381 |
+
<div class="model-name">Claude 3</div>
|
| 382 |
+
</div>
|
| 383 |
+
</div>
|
| 384 |
+
</div>
|
| 385 |
+
|
| 386 |
+
<div class="vote-section">
|
| 387 |
+
<div class="vote-buttons">
|
| 388 |
+
<button class="vote-btn vote-btn-a" onclick="vote('A')">๐
ฐ๏ธ ๋ชจ๋ธ A ์ ํ</button>
|
| 389 |
+
<button class="vote-btn vote-btn-b" onclick="vote('B')">๐
ฑ๏ธ ๋ชจ๋ธ B ์ ํ</button>
|
| 390 |
+
</div>
|
| 391 |
+
<button class="new-battle-btn" onclick="newBattle()">๐ ์๋ก์ด ๋๊ฒฐ ์์</button>
|
| 392 |
+
</div>
|
| 393 |
+
</div>
|
| 394 |
+
|
| 395 |
+
<div class="leaderboard">
|
| 396 |
+
<h2>๐ ์ฐฝ์์ฑ ๋ฆฌ๋๋ณด๋</h2>
|
| 397 |
+
|
| 398 |
+
<div class="category-tabs">
|
| 399 |
+
<button class="category-tab active" onclick="filterLeaderboard('overall')">์ข
ํฉ</button>
|
| 400 |
+
<button class="category-tab" onclick="filterLeaderboard('storytelling')">์คํ ๋ฆฌํ
๋ง</button>
|
| 401 |
+
<button class="category-tab" onclick="filterLeaderboard('innovation')">๋ฐ๋ช
/ํ์ </button>
|
| 402 |
+
<button class="category-tab" onclick="filterLeaderboard('business')">๋น์ฆ๋์ค</button>
|
| 403 |
+
<button class="category-tab" onclick="filterLeaderboard('artistic')">์์ ์ฑ</button>
|
| 404 |
+
<button class="category-tab" onclick="filterLeaderboard('problem')">๋ฌธ์ ํด๊ฒฐ</button>
|
| 405 |
+
</div>
|
| 406 |
+
|
| 407 |
+
<table class="leaderboard-table">
|
| 408 |
+
<thead>
|
| 409 |
+
<tr>
|
| 410 |
+
<th>์์</th>
|
| 411 |
+
<th>LLM ๋ชจ๋ธ</th>
|
| 412 |
+
<th>์ข
ํฉ์ ์</th>
|
| 413 |
+
<th>์คํ ๋ฆฌ</th>
|
| 414 |
+
<th>ํ์ </th>
|
| 415 |
+
<th>๋น์ฆ๋์ค</th>
|
| 416 |
+
<th>์์ </th>
|
| 417 |
+
<th>๋ฌธ์ ํด๊ฒฐ</th>
|
| 418 |
+
<th>๋๊ฒฐ์</th>
|
| 419 |
+
<th>์น๋ฅ </th>
|
| 420 |
+
<th>ELO</th>
|
| 421 |
+
</tr>
|
| 422 |
+
</thead>
|
| 423 |
+
<tbody id="leaderboardBody">
|
| 424 |
+
<!-- ๋์ ์ผ๋ก ์์ฑ๋จ -->
|
| 425 |
+
</tbody>
|
| 426 |
+
</table>
|
| 427 |
+
|
| 428 |
+
<div class="stats-grid">
|
| 429 |
+
<div class="stat-card">
|
| 430 |
+
<div class="stat-value">1,234</div>
|
| 431 |
+
<div class="stat-label">์ด ๋๊ฒฐ ์</div>
|
| 432 |
+
</div>
|
| 433 |
+
<div class="stat-card">
|
| 434 |
+
<div class="stat-value">56</div>
|
| 435 |
+
<div class="stat-label">์ฐธ์ฌ ๋ชจ๋ธ ์</div>
|
| 436 |
+
</div>
|
| 437 |
+
<div class="stat-card">
|
| 438 |
+
<div class="stat-value">8.7</div>
|
| 439 |
+
<div class="stat-label">ํ๊ท ์ฐฝ์์ฑ ์ ์</div>
|
| 440 |
+
</div>
|
| 441 |
+
<div class="stat-card">
|
| 442 |
+
<div class="stat-value">92%</div>
|
| 443 |
+
<div class="stat-label">์ฌ์ฉ์ ๋ง์กฑ๋</div>
|
| 444 |
+
</div>
|
| 445 |
+
</div>
|
| 446 |
+
</div>
|
| 447 |
+
</div>
|
| 448 |
+
|
| 449 |
+
<script>
|
| 450 |
+
// ํ๋กฌํํธ ์นดํ
๊ณ ๋ฆฌ ๋ฐ ์์
|
| 451 |
+
const PROMPT_CATEGORIES = {
|
| 452 |
+
storytelling: {
|
| 453 |
+
name: "๐ ์คํ ๋ฆฌํ
๋ง",
|
| 454 |
+
prompts: [
|
| 455 |
+
"2050๋
์์ธ์ ํ๋ฃจ๋ฅผ ๋ฌ์ฌํด์ฃผ์ธ์",
|
| 456 |
+
"๊ฐ๋ฏธ๊ฐ ์ฃผ์ธ๊ณต์ธ SF ์์ค์ ์ฒซ ์ฅ์ ์จ์ฃผ์ธ์",
|
| 457 |
+
"๋ฐฑ์ค๊ณต์ฃผ๋ฅผ ์ฌ์ด๋ฒํํฌ ๋ฒ์ ์ผ๋ก ์ฌํด์ํด์ฃผ์ธ์"
|
| 458 |
+
]
|
| 459 |
+
},
|
| 460 |
+
innovation: {
|
| 461 |
+
name: "๐ก ๋ฐ๋ช
/ํ์ ",
|
| 462 |
+
prompts: [
|
| 463 |
+
"ํ๋ผ์คํฑ ์ฐ๋ ๊ธฐ๋ฅผ ํด๊ฒฐํ ํ์ ์ ์ธ ๋ฐฉ๋ฒ์ ์ ์ํ์ธ์",
|
| 464 |
+
"๋ฏธ๋์ ๊ตํต์๋จ์ ๋์์ธํด์ฃผ์ธ์",
|
| 465 |
+
"๋
ธ์ธ๋ค์ ์ํ ์๋ก์ด SNS ์๋น์ค๋ฅผ ๊ธฐํํ์ธ์"
|
| 466 |
+
]
|
| 467 |
+
},
|
| 468 |
+
business: {
|
| 469 |
+
name: "๐ผ ๋น์ฆ๋์ค",
|
| 470 |
+
prompts: [
|
| 471 |
+
"ํ์ฑ์ ์ฒซ ๋ฒ์งธ๋ก ์ธ์ธ ๋น์ฆ๋์ค๋ ๋ฌด์์ผ๊น์?",
|
| 472 |
+
"Z์ธ๋๋ฅผ ์ํ ์๋ก์ด ๊ธ์ต ์๋น์ค๋ฅผ ์ ์ํ์ธ์",
|
| 473 |
+
"์ ํต ์์ฅ์ ํ์ฑํํ ๋์งํธ ์ ๋ต์ ์๋ฆฝํ์ธ์"
|
| 474 |
+
]
|
| 475 |
+
},
|
| 476 |
+
artistic: {
|
| 477 |
+
name: "๐ญ ์์ ์ ์ฐฝ์์ฑ",
|
| 478 |
+
prompts: [
|
| 479 |
+
"AI์ ์ธ๊ฐ์ ์ฌ๋์ ์ฃผ์ ๋ก ํ ์๋ฅผ ์จ์ฃผ์ธ์",
|
| 480 |
+
"์ฐ์ฃผ๋ฅผ ๋ฐฐ๊ฒฝ์ผ๋ก ํ ๋ฎค์ง์ปฌ์ ์ค๊ฑฐ๋ฆฌ๋ฅผ ๋ง๋ค์ด์ฃผ์ธ์",
|
| 481 |
+
"์๊ฐ ์ฌํ ๊ฒ์์ ์คํ ๋ฆฌ๋ผ์ธ์ ์์ฑํ์ธ์"
|
| 482 |
+
]
|
| 483 |
+
},
|
| 484 |
+
problem: {
|
| 485 |
+
name: "๐งฉ ๋ฌธ์ ํด๊ฒฐ",
|
| 486 |
+
prompts: [
|
| 487 |
+
"๋ฌด์ธ๋์์ ์ค๋งํธํฐ ํ๋๋ก ์์กดํ๋ ๋ฐฉ๋ฒ",
|
| 488 |
+
"์ธ๊ณ์ธ๊ณผ์ ์ฒซ ๋ง๋จ์ ์ค๋นํ๋ ํ๋กํ ์ฝ",
|
| 489 |
+
"100๋
ํ ์ธ๋ฅ์๊ฒ ๋ฉ์์ง๋ฅผ ์ ๋ฌํ๋ ๋ฐฉ๋ฒ"
|
| 490 |
+
]
|
| 491 |
+
}
|
| 492 |
+
};
|
| 493 |
+
|
| 494 |
+
// ์ํ LLM ๋ชจ๋ธ ๋ชฉ๋ก
|
| 495 |
+
const LLM_MODELS = [
|
| 496 |
+
"GPT-4", "Claude 3", "Gemini Pro", "LLaMA 3", "Mistral Large",
|
| 497 |
+
"PaLM 2", "Qwen 2", "Yi-34B", "Falcon 180B", "MPT-30B"
|
| 498 |
+
];
|
| 499 |
+
|
| 500 |
+
// ์ํ ๋ฆฌ๋๋ณด๋ ๋ฐ์ดํฐ
|
| 501 |
+
const leaderboardData = [
|
| 502 |
+
{
|
| 503 |
+
model: "GPT-4",
|
| 504 |
+
overall: 9.2,
|
| 505 |
+
storytelling: 9.5,
|
| 506 |
+
innovation: 9.0,
|
| 507 |
+
business: 9.3,
|
| 508 |
+
artistic: 9.1,
|
| 509 |
+
problem: 9.0,
|
| 510 |
+
battles: 523,
|
| 511 |
+
winRate: 78.5,
|
| 512 |
+
elo: 2150
|
| 513 |
+
},
|
| 514 |
+
{
|
| 515 |
+
model: "Claude 3",
|
| 516 |
+
overall: 9.0,
|
| 517 |
+
storytelling: 9.2,
|
| 518 |
+
innovation: 8.8,
|
| 519 |
+
business: 9.1,
|
| 520 |
+
artistic: 9.0,
|
| 521 |
+
problem: 8.9,
|
| 522 |
+
battles: 487,
|
| 523 |
+
winRate: 75.2,
|
| 524 |
+
elo: 2120
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
model: "Gemini Pro",
|
| 528 |
+
overall: 8.8,
|
| 529 |
+
storytelling: 8.7,
|
| 530 |
+
innovation: 8.9,
|
| 531 |
+
business: 8.8,
|
| 532 |
+
artistic: 8.6,
|
| 533 |
+
problem: 9.0,
|
| 534 |
+
battles: 412,
|
| 535 |
+
winRate: 71.8,
|
| 536 |
+
elo: 2080
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
model: "LLaMA 3",
|
| 540 |
+
overall: 8.5,
|
| 541 |
+
storytelling: 8.4,
|
| 542 |
+
innovation: 8.6,
|
| 543 |
+
business: 8.3,
|
| 544 |
+
artistic: 8.5,
|
| 545 |
+
problem: 8.7,
|
| 546 |
+
battles: 356,
|
| 547 |
+
winRate: 68.4,
|
| 548 |
+
elo: 2040
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
model: "Mistral Large",
|
| 552 |
+
overall: 8.3,
|
| 553 |
+
storytelling: 8.2,
|
| 554 |
+
innovation: 8.4,
|
| 555 |
+
business: 8.1,
|
| 556 |
+
artistic: 8.3,
|
| 557 |
+
problem: 8.5,
|
| 558 |
+
battles: 298,
|
| 559 |
+
winRate: 64.7,
|
| 560 |
+
elo: 2000
|
| 561 |
+
}
|
| 562 |
+
];
|
| 563 |
+
|
| 564 |
+
let currentModels = [];
|
| 565 |
+
let hasVoted = false;
|
| 566 |
+
|
| 567 |
+
// ๋ฆฌ๋๋ณด๋ ๋ ๋๋ง
|
| 568 |
+
function renderLeaderboard(category = 'overall') {
|
| 569 |
+
const tbody = document.getElementById('leaderboardBody');
|
| 570 |
+
tbody.innerHTML = '';
|
| 571 |
+
|
| 572 |
+
// ์นดํ
๊ณ ๋ฆฌ๋ณ ์ ๋ ฌ
|
| 573 |
+
let sortedData = [...leaderboardData];
|
| 574 |
+
if (category !== 'overall') {
|
| 575 |
+
sortedData.sort((a, b) => b[category] - a[category]);
|
| 576 |
+
} else {
|
| 577 |
+
sortedData.sort((a, b) => b.overall - a.overall);
|
| 578 |
+
}
|
| 579 |
+
|
| 580 |
+
sortedData.forEach((item, index) => {
|
| 581 |
+
const row = tbody.insertRow();
|
| 582 |
+
|
| 583 |
+
// ์์
|
| 584 |
+
const rankCell = row.insertCell();
|
| 585 |
+
if (index === 0) rankCell.innerHTML = '<span class="rank-medal rank-1">๐ฅ</span>';
|
| 586 |
+
else if (index === 1) rankCell.innerHTML = '<span class="rank-medal rank-2">๐ฅ</span>';
|
| 587 |
+
else if (index === 2) rankCell.innerHTML = '<span class="rank-medal rank-3">๐ฅ</span>';
|
| 588 |
+
else rankCell.textContent = index + 1;
|
| 589 |
+
|
| 590 |
+
// ๋ชจ๋ธ๋ช
|
| 591 |
+
row.insertCell().textContent = item.model;
|
| 592 |
+
|
| 593 |
+
// ์ ์๋ค
|
| 594 |
+
const scoreClasses = (score) => {
|
| 595 |
+
if (score >= 9) return 'score-high';
|
| 596 |
+
if (score >= 8) return 'score-medium';
|
| 597 |
+
return 'score-low';
|
| 598 |
+
};
|
| 599 |
+
|
| 600 |
+
const overallCell = row.insertCell();
|
| 601 |
+
overallCell.className = 'score-cell ' + scoreClasses(item.overall);
|
| 602 |
+
overallCell.textContent = item.overall.toFixed(1);
|
| 603 |
+
|
| 604 |
+
const storyCell = row.insertCell();
|
| 605 |
+
storyCell.className = 'score-cell ' + scoreClasses(item.storytelling);
|
| 606 |
+
storyCell.textContent = item.storytelling.toFixed(1);
|
| 607 |
+
|
| 608 |
+
const innovationCell = row.insertCell();
|
| 609 |
+
innovationCell.className = 'score-cell ' + scoreClasses(item.innovation);
|
| 610 |
+
innovationCell.textContent = item.innovation.toFixed(1);
|
| 611 |
+
|
| 612 |
+
const businessCell = row.insertCell();
|
| 613 |
+
businessCell.className = 'score-cell ' + scoreClasses(item.business);
|
| 614 |
+
businessCell.textContent = item.business.toFixed(1);
|
| 615 |
+
|
| 616 |
+
const artisticCell = row.insertCell();
|
| 617 |
+
artisticCell.className = 'score-cell ' + scoreClasses(item.artistic);
|
| 618 |
+
artisticCell.textContent = item.artistic.toFixed(1);
|
| 619 |
+
|
| 620 |
+
const problemCell = row.insertCell();
|
| 621 |
+
problemCell.className = 'score-cell ' + scoreClasses(item.problem);
|
| 622 |
+
problemCell.textContent = item.problem.toFixed(1);
|
| 623 |
+
|
| 624 |
+
// ๋๊ฒฐ ์
|
| 625 |
+
row.insertCell().textContent = item.battles;
|
| 626 |
+
|
| 627 |
+
// ์น๋ฅ
|
| 628 |
+
const winRateCell = row.insertCell();
|
| 629 |
+
const winRateClass = item.winRate >= 70 ? 'win-rate-high' :
|
| 630 |
+
item.winRate >= 50 ? 'win-rate-medium' : 'win-rate-low';
|
| 631 |
+
winRateCell.innerHTML = `<span class="win-rate ${winRateClass}">${item.winRate}%</span>`;
|
| 632 |
+
|
| 633 |
+
// ELO
|
| 634 |
+
const eloCell = row.insertCell();
|
| 635 |
+
eloCell.innerHTML = `${item.elo}<span class="elo-badge">ELO</span>`;
|
| 636 |
+
});
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
+
// ์นดํ
๊ณ ๋ฆฌ ํํฐ
|
| 640 |
+
function filterLeaderboard(category) {
|
| 641 |
+
// ํญ ํ์ฑํ ์ํ ๋ณ๊ฒฝ
|
| 642 |
+
document.querySelectorAll('.category-tab').forEach(tab => {
|
| 643 |
+
tab.classList.remove('active');
|
| 644 |
+
});
|
| 645 |
+
event.target.classList.add('active');
|
| 646 |
+
|
| 647 |
+
// ๋ฆฌ๋๋ณด๋ ์ฌ๋ ๋๋ง
|
| 648 |
+
renderLeaderboard(category);
|
| 649 |
+
}
|
| 650 |
+
|
| 651 |
+
// ์๋ก์ด ๋ฐฐํ ์์
|
| 652 |
+
function newBattle() {
|
| 653 |
+
hasVoted = false;
|
| 654 |
+
|
| 655 |
+
// ๋ฒํผ ํ์ฑํ
|
| 656 |
+
document.querySelectorAll('.vote-btn').forEach(btn => {
|
| 657 |
+
btn.disabled = false;
|
| 658 |
+
});
|
| 659 |
+
|
| 660 |
+
// ๋ชจ๋ธ ์ ๋ณด ์จ๊ธฐ๊ธฐ
|
| 661 |
+
document.querySelectorAll('.model-reveal').forEach(el => {
|
| 662 |
+
el.classList.remove('show');
|
| 663 |
+
});
|
| 664 |
+
|
| 665 |
+
// ๋๋ค ์นดํ
๊ณ ๋ฆฌ ์ ํ
|
| 666 |
+
const categories = Object.keys(PROMPT_CATEGORIES);
|
| 667 |
+
const randomCategory = categories[Math.floor(Math.random() * categories.length)];
|
| 668 |
+
const category = PROMPT_CATEGORIES[randomCategory];
|
| 669 |
+
|
| 670 |
+
// ๋๋ค ํ๋กฌํํธ ์ ํ
|
| 671 |
+
const randomPrompt = category.prompts[Math.floor(Math.random() * category.prompts.length)];
|
| 672 |
+
|
| 673 |
+
// ํ๋กฌํํธ ํ์
|
| 674 |
+
document.getElementById('promptCategory').textContent = category.name;
|
| 675 |
+
document.getElementById('promptText').textContent = randomPrompt;
|
| 676 |
+
|
| 677 |
+
// ๋๋ค์ผ๋ก 2๊ฐ ๋ชจ๋ธ ์ ํ
|
| 678 |
+
const shuffled = [...LLM_MODELS].sort(() => 0.5 - Math.random());
|
| 679 |
+
currentModels = shuffled.slice(0, 2);
|
| 680 |
+
|
| 681 |
+
// ์๋ต ๋ก๋ฉ ์๋ฎฌ๋ ์ด์
|
| 682 |
+
document.getElementById('responseA').innerHTML = '<div class="loading"></div> ์๋ต ์์ฑ ์ค...';
|
| 683 |
+
document.getElementById('responseB').innerHTML = '<div class="loading"></div> ์๋ต ์์ฑ ์ค...';
|
| 684 |
+
|
| 685 |
+
// ์ํ ์๋ต ์์ฑ (์ค์ ๋ก๋ API ํธ์ถ)
|
| 686 |
+
setTimeout(() => {
|
| 687 |
+
document.getElementById('responseA').innerHTML = generateSampleResponse(randomCategory, 'A');
|
| 688 |
+
document.getElementById('responseB').innerHTML = generateSampleResponse(randomCategory, 'B');
|
| 689 |
+
}, 2000);
|
| 690 |
+
|
| 691 |
+
// ๋ชจ๋ธ๋ช
์
๋ฐ์ดํธ (์จ๊น ์ํ)
|
| 692 |
+
document.querySelector('#modelA .model-name').textContent = currentModels[0];
|
| 693 |
+
document.querySelector('#modelB .model-name').textContent = currentModels[1];
|
| 694 |
+
}
|
| 695 |
+
|
| 696 |
+
// ์ํ ์๋ต ์์ฑ
|
| 697 |
+
function generateSampleResponse(category, model) {
|
| 698 |
+
const responses = {
|
| 699 |
+
innovation: {
|
| 700 |
+
A: `ํ์ฑ ์ ์ฐฉ ๋น์ฆ๋์ค TOP 3:
|
| 701 |
+
|
| 702 |
+
1. **ํ์ฑ ์ฐ์ ๋ฑ
ํฌ (Mars O2 Bank)**
|
| 703 |
+
- ์๋น์ค: ๊ฐ์ธ/๊ธฐ์
์ฉ ์ฐ์ ์์ฐ, ์ ์ฅ, ๋ฐฐ๊ธ
|
| 704 |
+
- ์์ต๋ชจ๋ธ: ์ ๊ตฌ๋
์ + ํ๋ฆฌ๋ฏธ์ ์๋ ์ต์
|
| 705 |
+
- ์์ ์์ต: ์ฐ 500์ต ํ์ฑ๋ฌ๋ฌ
|
| 706 |
+
|
| 707 |
+
2. **๋ ๊ณจ๋ฆฌ์ค 3D ํ๋ฆฐํ
๊ฑด์ค**
|
| 708 |
+
- ์๋น์ค: ํ์ฑ ํ ์์ผ๋ก ๊ฑด๋ฌผ/์ธํ๋ผ ๊ฑด์ค
|
| 709 |
+
- ์์ต๋ชจ๋ธ: ๊ฑด์ค ํ๋ก์ ํธ ๊ณ์ฝ + ์ฅ๋น ์๋
|
| 710 |
+
- ์์ ์์ต: ์ฐ 300์ต ํ์ฑ๋ฌ๋ฌ
|
| 711 |
+
|
| 712 |
+
3. **์ง๊ตฌ-ํ์ฑ ํฅ์ ๋ฐฐ๋ฌ ์๋น์ค**
|
| 713 |
+
- ์๋น์ค: ์ง๊ตฌ ์์, ๋ฌผํ์ ์ ๊ธฐ ๋ฐฐ์ก
|
| 714 |
+
- ์์ต๋ชจ๋ธ: ๋ฐฐ์ก๋ฃ + ํ๋ฆฌ๋ฏธ์ ํ์์
|
| 715 |
+
- ์์ ์์ต: ์ฐ 200์ต ํ์ฑ๋ฌ๋ฌ`,
|
| 716 |
+
B: `ํ์ฑ ํ์ ๋น์ฆ๋์ค ์ ์:
|
| 717 |
+
|
| 718 |
+
1. **ํ์๊ด ์๋์ง ๊ทธ๋ฆฌ๋**
|
| 719 |
+
- ๊ฑฐ๋ ํ์๊ด ํจ๋ ๋์ฅ ์ด์
|
| 720 |
+
- ์๋์ง ํ ํฐ ๋ธ๋ก์ฒด์ธ ๊ฑฐ๋ ์์คํ
|
| 721 |
+
- B2B/B2C ์ ๋ ฅ ๊ณต๊ธ ๊ณ์ฝ
|
| 722 |
+
|
| 723 |
+
2. **ํ์ฑ ๋์
๋ (AgroDome)**
|
| 724 |
+
- ์์ง๋์ฅ + ์ ์ ์ ํธ์ง ์๋ฌผ
|
| 725 |
+
- ์๋ ์๊ธ์์กฑ ์์คํ
๊ตฌ์ถ
|
| 726 |
+
- ๋์ฐ๋ฌผ ์ง๊ฑฐ๋ + ์ข
์ ํ๋งค
|
| 727 |
+
|
| 728 |
+
3. **์ฌ๋ฆฌ ๊ฑด๊ฐ VR ์ผํฐ**
|
| 729 |
+
- ์ง๊ตฌ ํฅ์๋ณ ์น๋ฃ ํ๋ก๊ทธ๋จ
|
| 730 |
+
- ๊ฐ์ํ์ค ์ง๊ตฌ ์ฒดํ๊ด
|
| 731 |
+
- ๊ตฌ๋
์ + ๋ง์ถคํ ์น๋ฃ ์ธ์
`
|
| 732 |
+
},
|
| 733 |
+
storytelling: {
|
| 734 |
+
A: `2050๋
์์ธ, ์ค์ 7์.
|
| 735 |
+
|
| 736 |
+
ํ๋์ ๊ฐ๋ก์ง๋ฅด๋ ์์ดํ์๋ค์ด ์์นจ ์ถ๊ทผ๊ธธ์ ์๋ฆฐ๋ค. ํ๊ฐ์ ์ด์ ๊ฑฐ๋ํ ์์ ํ์๊ด ํจ๋๋ก ๋ฎ์ฌ์๊ณ , ๊ทธ ์๋ฅผ ๋ฌ๋ฆฌ๋ ํ์ดํผ๋ฃจํ๊ฐ 3๋ถ๋ง๋ค ์ง๋๊ฐ๋ค.
|
| 737 |
+
|
| 738 |
+
๊น๋ฏผ์ค์ ๋-์ปดํจํฐ ์ธํฐํ์ด์ค๋ก ์ค๋์ ์ผ์ ์ ํ์ธํ๋ค. ํ๋ก๊ทธ๋จ ํ์๊ฐ 2๊ฑด, ๋ฉํ๋ฒ์ค ํ๋ ์ ํ
์ด์
์ด 1๊ฑด. ์ฐฝ ๋ฐ์ผ๋ก ๋ณด์ด๋ ๋จ์ฐํ์๋ ์ด์ ๊ฑฐ๋ํ ๊ณต๊ธฐ์ ํ ํ์๋ก ๋ณ๋ชจํ๋ค...`,
|
| 739 |
+
B: `์์ธ, 2050๋
.
|
| 740 |
+
|
| 741 |
+
๋์๋ ์ ๋ค์ง ์๋๋ค. ๊ฑด๋ฌผ๋ค์ ์ค์ค๋ก ํธํกํ๋ฉฐ ๋๊ธฐ๋ฅผ ์ ํํ๋ค. ๊ฑฐ๋ฆฌ์ ๋๋ฌด๋ค์ ์ ์ ์ ์กฐ์์ผ๋ก ๋ฐค์๋ ์ฐ์๋ฅผ ๋ง๋ค์ด๋ธ๋ค.
|
| 742 |
+
|
| 743 |
+
์๋ฒฝ 4์, AI ๊ด์ ์ผํฐ์์ ๋์์ ํ๋ฃจ๊ฐ ์์๋๋ค. 3์ฒ๋ง ์๋ฏผ์ ์์ง์์ ์์ธกํ๊ณ , ๊ตํตํ๋ฆ์ ์ต์ ํํ๋ค. ์งํ 50๋ฏธํฐ ์๋์์ ์์จ์ฃผํ ๋ฌผ๋ฅ ๋ก๋ด๋ค์ด ์กฐ์ฉํ ๋ฌผ์๋ฅผ ์ด๋ฐํ๋ค...`
|
| 744 |
+
}
|
| 745 |
+
};
|
| 746 |
+
|
| 747 |
+
return responses[category]?.[model] || "์ฐฝ์์ ์ธ ์๋ต์ด ์์ฑ๋์์ต๋๋ค...";
|
| 748 |
+
}
|
| 749 |
+
|
| 750 |
+
// ํฌํ ์ฒ๋ฆฌ
|
| 751 |
+
function vote(choice) {
|
| 752 |
+
if (hasVoted) return;
|
| 753 |
+
|
| 754 |
+
hasVoted = true;
|
| 755 |
+
|
| 756 |
+
// ๋ฒํผ ๋นํ์ฑํ
|
| 757 |
+
document.querySelectorAll('.vote-btn').forEach(btn => {
|
| 758 |
+
btn.disabled = true;
|
| 759 |
+
});
|
| 760 |
+
|
| 761 |
+
// ๋ชจ๋ธ ๊ณต๊ฐ
|
| 762 |
+
document.getElementById('modelA').classList.add('show');
|
| 763 |
+
document.getElementById('modelB').classList.add('show');
|
| 764 |
+
|
| 765 |
+
// ํฌํ ๊ฒฐ๊ณผ ์ ์ฅ (์ค์ ๋ก๋ ์๋ฒ๋ก ์ ์ก)
|
| 766 |
+
const winner = choice === 'A' ? currentModels[0] : currentModels[1];
|
| 767 |
+
const loser = choice === 'A' ? currentModels[1] : currentModels[0];
|
| 768 |
+
|
| 769 |
+
console.log(`์น์: ${winner}, ํจ์: ${loser}`);
|
| 770 |
+
|
| 771 |
+
// ์๋ฆผ
|
| 772 |
+
setTimeout(() => {
|
| 773 |
+
alert(`ํฌํ๊ฐ ์๋ฃ๋์์ต๋๋ค!\n์น์: ${winner}\n\nELO ๋ ์ดํ
์ด ์
๋ฐ์ดํธ๋ฉ๋๋ค.`);
|
| 774 |
+
}, 500);
|
| 775 |
+
}
|
| 776 |
+
|
| 777 |
+
// ํ์ด์ง ๋ก๋์ ์ด๊ธฐํ
|
| 778 |
+
window.onload = function() {
|
| 779 |
+
renderLeaderboard();
|
| 780 |
+
newBattle();
|
| 781 |
+
};
|
| 782 |
+
</script>
|
| 783 |
+
</body>
|
| 784 |
+
</html>
|