|
|
|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<link rel="stylesheet" href="style/tabs/style.css"> |
|
<link type="image/x-icon" href="assets/favicon/favicon.png" rel="shortcut icon"> |
|
<link type="Image/x-icon" href="assets/favicon/favicon.png" rel="icon"> |
|
<title>ReLP - Diffusers</title> |
|
</head> |
|
<body class="dark-theme"> |
|
<header> |
|
<a href="index.html"><img src="assets/icons/diffusers.png" alt="AI Icon" class="icon"></a> |
|
<h1>ReLP - Diffusers</h1> |
|
</header> |
|
<nav> |
|
<ul class="tabs"> |
|
<li><a href="#" onclick="showTab('Diffusers-WebUI', 'https://nyanko7-sd-diffusers-webui.hf.space', this)">Diffusers WebUI</a></li> |
|
<li><a href="#" onclick="showTab('Google-SDXL', 'https://google-sdxl.hf.space', this)">Google SDXL</a></li> |
|
<li><a href="#" onclick="showTab('LCM', 'https://latent-consistency-real-time-lcm-text-to-image-l-3137446.hf.space', this)">LCM</a></li> |
|
<li><a href="#" onclick="showTab('PixArt', '', this)">PixArt (Coming soon)</a></li> |
|
</ul> |
|
</nav> |
|
<main> |
|
<iframe id="iframeDiffusers-WebUI" src="https://nyanko7-sd-diffusers-webui.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe> |
|
<iframe id="iframeGoogle-SDXL" src="https://google-sdxl.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe> |
|
<iframe id="iframeLCM" src="https://latent-consistency-real-time-lcm-text-to-image-l-3137446.hf.space" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe> |
|
<iframe id="iframePixArt" src="" frameborder="1" width="100%" height="calc(100vh - 150px)" style="display: none;"></iframe> |
|
</main> |
|
<script> |
|
function showTab(tabName, url, tab) { |
|
const iframes = document.querySelectorAll('iframe'); |
|
iframes.forEach(iframe => iframe.style.display = 'none'); |
|
|
|
const currentIframe = document.getElementById(`iframe${tabName}`); |
|
currentIframe.style.display = 'block'; |
|
|
|
setActiveTab(tab); |
|
} |
|
|
|
function setActiveTab(activeTab) { |
|
const tabs = document.querySelectorAll('.tabs a'); |
|
tabs.forEach(tab => tab.classList.remove('active')); |
|
activeTab.classList.add('active'); |
|
} |
|
</script> |
|
</body> |
|
</html> |
|
|