Update index.html
Browse files- index.html +55 -27
index.html
CHANGED
@@ -68,10 +68,22 @@
|
|
68 |
border: 1px solid #ddd;
|
69 |
border-radius: 4px;
|
70 |
cursor: pointer;
|
|
|
|
|
|
|
71 |
}
|
72 |
#sidebar li:hover {
|
73 |
background-color: #f0f0f0;
|
74 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
#embed-container {
|
76 |
flex: 1;
|
77 |
padding: 0;
|
@@ -342,32 +354,32 @@
|
|
342 |
"aiqtech/imaginpaint": "Image Edit",
|
343 |
};
|
344 |
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
const bestProjects = [
|
359 |
-
"ginigen/canvas-studio",
|
360 |
-
"ginipick/Time-Stream",
|
361 |
-
"ginipick/AccuVision-Diffusion",
|
362 |
-
"fantos/Magic-Drawings",
|
363 |
-
"ginigen/Lumina-Image-PLUS",
|
364 |
-
"fantaxy/fantasy-novel",
|
365 |
-
"VIDraft/mouse-webgen",
|
366 |
-
"immunobiotech/MUSIC-Jukebox",
|
367 |
-
"seawolf2357/Flowise-AI",
|
368 |
-
"ginigen/Flux-LayerDiffuse"
|
369 |
-
];
|
370 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
|
372 |
// 4. URL 변환 함수
|
373 |
function transformUrl(url) {
|
@@ -433,10 +445,26 @@ const bestProjects = [
|
|
433 |
const ul = document.createElement("ul");
|
434 |
items.forEach(item => {
|
435 |
const li = document.createElement("li");
|
436 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
437 |
li.addEventListener("click", () => {
|
438 |
document.getElementById("embed-frame").src = item.url;
|
439 |
});
|
|
|
440 |
ul.appendChild(li);
|
441 |
});
|
442 |
sidebar.appendChild(ul);
|
@@ -461,4 +489,4 @@ const bestProjects = [
|
|
461 |
updateSidebar("all");
|
462 |
</script>
|
463 |
</body>
|
464 |
-
</html>
|
|
|
68 |
border: 1px solid #ddd;
|
69 |
border-radius: 4px;
|
70 |
cursor: pointer;
|
71 |
+
display: flex;
|
72 |
+
align-items: center;
|
73 |
+
justify-content: space-between;
|
74 |
}
|
75 |
#sidebar li:hover {
|
76 |
background-color: #f0f0f0;
|
77 |
}
|
78 |
+
#sidebar li button {
|
79 |
+
margin-left: 8px;
|
80 |
+
padding: 4px 8px;
|
81 |
+
cursor: pointer;
|
82 |
+
font-size: 12px;
|
83 |
+
border-radius: 4px;
|
84 |
+
border: 1px solid #ccc;
|
85 |
+
background-color: #fafafa;
|
86 |
+
}
|
87 |
#embed-container {
|
88 |
flex: 1;
|
89 |
padding: 0;
|
|
|
354 |
"aiqtech/imaginpaint": "Image Edit",
|
355 |
};
|
356 |
|
357 |
+
// 3. NEW, BEST 지정
|
358 |
+
const newProjects = [
|
359 |
+
"fantos/Panorama",
|
360 |
+
"ginigen/Multi-LoRAgen",
|
361 |
+
"ginipick/Fashion-Stylegen",
|
362 |
+
"ginipick/Time-Stream",
|
363 |
+
"ginipick/AccuVision-Diffusion",
|
364 |
+
"fantos/Magic-Drawings",
|
365 |
+
"ginigen/Lumina-Image-PLUS",
|
366 |
+
"fantaxy/fantasy-novel",
|
367 |
+
"VIDraft/mouse-webgen",
|
368 |
+
"immunobiotech/MUSIC-Jukebox"
|
369 |
+
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
|
371 |
+
const bestProjects = [
|
372 |
+
"ginigen/canvas-studio",
|
373 |
+
"ginipick/Time-Stream",
|
374 |
+
"ginipick/AccuVision-Diffusion",
|
375 |
+
"fantos/Magic-Drawings",
|
376 |
+
"ginigen/Lumina-Image-PLUS",
|
377 |
+
"fantaxy/fantasy-novel",
|
378 |
+
"VIDraft/mouse-webgen",
|
379 |
+
"immunobiotech/MUSIC-Jukebox",
|
380 |
+
"seawolf2357/Flowise-AI",
|
381 |
+
"ginigen/Flux-LayerDiffuse"
|
382 |
+
];
|
383 |
|
384 |
// 4. URL 변환 함수
|
385 |
function transformUrl(url) {
|
|
|
445 |
const ul = document.createElement("ul");
|
446 |
items.forEach(item => {
|
447 |
const li = document.createElement("li");
|
448 |
+
|
449 |
+
// 이름 표시
|
450 |
+
const nameSpan = document.createElement("span");
|
451 |
+
nameSpan.textContent = item.name;
|
452 |
+
li.appendChild(nameSpan);
|
453 |
+
|
454 |
+
// "링크 클릭" 버튼
|
455 |
+
const linkButton = document.createElement("button");
|
456 |
+
linkButton.textContent = "링크 클릭";
|
457 |
+
linkButton.addEventListener("click", (event) => {
|
458 |
+
event.stopPropagation(); // li 클릭 이벤트와 구분
|
459 |
+
window.open(item.url, "_blank"); // 새 탭(창) 열기
|
460 |
+
});
|
461 |
+
li.appendChild(linkButton);
|
462 |
+
|
463 |
+
// li 자체 클릭하면 iframe 변경
|
464 |
li.addEventListener("click", () => {
|
465 |
document.getElementById("embed-frame").src = item.url;
|
466 |
});
|
467 |
+
|
468 |
ul.appendChild(li);
|
469 |
});
|
470 |
sidebar.appendChild(ul);
|
|
|
489 |
updateSidebar("all");
|
490 |
</script>
|
491 |
</body>
|
492 |
+
</html>
|