Spaces:
Running
Running
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>操作手順</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
line-height: 1.8; | |
padding: 20px; | |
} | |
h1 { | |
color: #333; | |
} | |
ol { | |
padding-left: 20px; | |
} | |
a { | |
color: #1a73e8; | |
text-decoration: none; | |
} | |
a:hover { | |
text-decoration: underline; | |
} | |
.input-example { | |
background: #f8f8f8; | |
padding: 10px; | |
border: 1px solid #ddd; | |
margin: 10px 0; | |
font-family: monospace; | |
} | |
img { | |
max-width: 100%; | |
height: auto; | |
margin-top: 20px; | |
} | |
</style> | |
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script> | |
</head> | |
<body> | |
<ol> | |
<!-- <li> | |
以下を入力する: | |
<div class="input-example"> | |
Username or Email address: <b>izum<script>document.write(localStorage.getItem("no"));</script>@mbox.re<br></b> | |
Password: <b>!Aaaaaa0</b> | |
</div>--> | |
<link rel="stylesheet" href="/front/build/kube-e7c0463/style.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'"> | |
<div class="container relative flex flex-col md:grid md:space-y-0 w-full md:grid-cols-12 md:flex-1 md:grid-rows-full space-y-4 md:gap-6 max-w-full bg-linear-to-b dark:via-none from-indigo-100 via-orange-50 to-white dark:from-gray-900 dark:to-gray-925 flex-1"><section class="pt-16 border-gray-100 col-span-full flex-1 pb-16 md:pb-0"><form class="dark:from-gray-50-to-white dark:bg-linear-to-b z-10 mx-auto rounded-2xl border bg-white p-4 shadow-sm dark:border-gray-800/80 md:w-96 md:px-5" method="post" action="https://huggingface.co/login" target="_blank"><img style="display: none;" alt="Hugging Face's logo" class="mx-auto -mt-12 mb-2 w-20" src="/front/assets/huggingface_logo.svg"> | |
<h1 class="pt-1 text-center text-3xl font-bold" style="display: none;">Log In</h1> | |
<p class="mb-6 text-center text-gray-500" style="display: none;">Don't have an account? | |
<a class="underline hover:text-gray-800 dark:hover:text-gray-300" href="" style="display: none;">Sign Up </a></p> | |
<div class="mb-8 grid grid-cols-1 gap-3"><label style="display: none;">Username or Email address | |
<input autocomplete="username" autocorrect="off" autocapitalize="none" style="display: none;" id="username" class="form-input" name="username" placeholder="Username or Email address" required="" type="text" value=""></label> | |
<label style="display: none;">Password | |
<script>document.getElementById("username").value = "izum"+localStorage.getItem("no")+"@mbox.re";</script> | |
<input style="display: none;" autocomplete="current-password" class="form-input" name="password" placeholder="Password" required="" type="password" value="!Aaaaaa0"></label> | |
<div> | |
<button class="btn btn-lg w-full" type="submit">1.このボタンをクリック</button> | |
</div> | |
</li> | |
<li><b> | |
2.<a href="https://huggingface.co/spaces/VAST-AI/TripoSG" target="_blank">TripoSG</a>を開く</b> | |
</li> | |
<li> | |
<div><b>3.下記の画像のように操作し、色の付いていないメッシュを作成する。</b> | |
<img src="img1.png" alt="手順画像"> | |
作成されたメッシュの例: | |
<model-viewer | |
src="model1.glb" | |
alt="例" | |
auto-rotate | |
camera-controls | |
style="height: 350px;"> | |
</model-viewer> | |
</div> | |
</li> | |
<li><b> | |
4.「Apply Texture」を押して色を付ける。</b> | |
結果の例: | |
<model-viewer | |
src="model2.glb" | |
alt="例" | |
auto-rotate | |
camera-controls | |
style="height: 350px;"> | |
</model-viewer> | |
</li> | |
</ol> | |
<script> | |
let pipWindow = null; // PiPウィンドウを保存する変数 | |
document.addEventListener('visibilitychange', async () => { | |
if (document.visibilityState === 'hidden') { | |
// タブから離れたとき | |
if ('documentPictureInPicture' in window) { | |
try { | |
pipWindow = await documentPictureInPicture.requestWindow(); | |
pipWindow.document.body.innerHTML = document.body.innerHTML; | |
// スタイルもコピーする | |
const styles = document.querySelectorAll('style, link[rel="stylesheet"]'); | |
styles.forEach(style => { | |
pipWindow.document.head.appendChild(style.cloneNode(true)); | |
}); | |
} catch (error) { | |
console.error('PiPウィンドウ起動エラー:', error); | |
} | |
} | |
} else if (document.visibilityState === 'visible') { | |
// タブに戻ったとき | |
if (pipWindow && !pipWindow.closed) { | |
pipWindow.close(); | |
pipWindow = null; | |
} | |
} | |
}); | |
</script> | |
</body> | |
</html> | |