Files
vibemake/examples/screw-assembly.html
T
Jerry 1c837766cd feat: integrate robot assembly and simulation with resilient loading
Add backend-driven assembly and simulation experiences, MAKE branding, mobile rendering budgets and desktop-only CAD/PCB routes. Improve logo loading progress, document image recovery and URDF request handling; include dev packaging and regression coverage.
2026-10-30 18:38:39 +08:00

33 lines
2.0 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
<title>小鸭子 · 扳手装配预览</title>
<link rel="stylesheet" href="/css/fonts.css"><link rel="stylesheet" href="/css/style.css"><link rel="stylesheet" href="/css/assembly.css">
<script type="importmap">{"imports":{"three":"/vendor/three/build/three.module.min.js","three/addons/":"/vendor/three/examples/jsm/"}}</script>
<style>
main{max-width:820px;margin:10vh auto;padding:24px}h1{font-size:clamp(26px,5vw,40px);margin:18px 0}
p{color:var(--muted);line-height:1.8;max-width:640px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0}
.btn{min-height:44px}.tag{color:var(--accent);font-size:13px}.note{font-size:13px;margin-top:32px}
</style>
</head>
<body><main>
<a href="/project/?id=gcw47xwyyhr8">← 小鸭子项目</a>
<p class="tag">装配效果预览</p>
<h1>一颗一颗,拧紧到位。</h1>
<p>内六角扳手插入螺丝孔,沿安装轴顺时针旋转,拧紧后退出。使用你提供的模型与原始材质。</p>
<div class="actions">
<button class="btn btn-primary" id="detail">看螺丝特写</button>
<button class="btn" id="whole">看完整装配</button>
</div>
<p>点击「重播本步」可再次查看。拖拽调整视角,滚轮或双指缩放。</p>
<p class="note">这里预览新的本地 JSON;后台已上传的旧步骤不会被替换。完整上传文件已整理到下载目录「小鸭子-扳手装配」。</p>
</main>
<script type="module">
import { openAssemblyPreview } from '/js/assembly.js';
const project = { name: 'Microduck', assemblyManifestUrl: '/deliverables/experience-packages/microduck-screw-assembly/manifest.json' };
document.getElementById('detail').onclick = () => openAssemblyPreview(project, { initialStep: 33, focusPartId: 'duck-part-084' });
document.getElementById('whole').onclick = () => openAssemblyPreview(project);
</script></body>
</html>