Files
vibemake/pcb.html
T

32 lines
1.0 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>VibeMake PCB</title>
<style>
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
#pcb-frame { position: fixed; inset: 0; display: block; width: 100vw; height: 100vh; height: 100dvh; border: 0; }
</style>
</head>
<body>
<iframe
id="pcb-frame"
src="https://cadworld-studio.robotquan.com/pcb"
title="VibeMake PCB"
allow="clipboard-read; clipboard-write; fullscreen"
allowfullscreen
referrerpolicy="strict-origin-when-cross-origin"></iframe>
<script>
const pcbFrame = document.getElementById('pcb-frame');
window.addEventListener('message', (event) => {
if (event.source !== pcbFrame.contentWindow
|| event.origin !== new URL(pcbFrame.src).origin
|| event.data?.type !== 'vibemake:navigate-home') return;
window.location.assign('/');
});
</script>
</body>
</html>