main
John Lauer
Load self-contained viewer bundle with explicit JavaScript MIME
c38be69
<!doctype html><meta charset="utf-8"><title>Electronic load · PCB-mounted bracket</title><link rel="stylesheet" href="../../control-panel/twin/vendor/3d-viewer/style.css"><style>*{box-sizing:border-box}body{margin:0;background:#0d1117;color:#edf4fa;font:14px system-ui;height:100vh;display:flex;flex-direction:column}header{padding:14px 22px;background:#161d27;border-bottom:1px solid #344050}h1{font-size:20px;margin:0 0 8px}p{margin:6px 0;color:#b3c4d4}button{background:#263545;color:#fff;border:1px solid #60758b;border-radius:8px;padding:9px 14px;cursor:pointer;box-shadow:0 3px 8px #0005;margin-right:8px}button:hover{background:#3e566e}button:active{transform:translateY(1px)}button:focus-visible{outline:3px solid #49ded1}button[aria-pressed=true]{background:#14655c}#viewer{flex:1;min-height:0}.layers-panel{max-height:65vh;overflow:auto}small{color:#a2b4c4}</style>
<header><h1>Electronic load · supported fan bracket · V8</h1><p>Two M3 ear bolts plus a third fan-support bolt through FR4 · raised fan / reversed fasteners · short screw-mounted sensor harness</p><p><button id="reveal" aria-pressed="false">Reveal mounting stack</button><button id="underside">Underside</button><button id="reset">Assembly view</button></p><small id="status">Loading…</small></header><div id="viewer"></div><script type="module">
const moduleResponse=await fetch('/api/pages/adom/adom-custom-electronic-load/files/control-panel/twin/vendor/3d-viewer/chunk-BtcNOITX.js');if(!moduleResponse.ok)throw Error('Viewer asset '+moduleResponse.status);const moduleUrl=URL.createObjectURL(new Blob([await moduleResponse.text()],{type:'text/javascript'}));await import(moduleUrl);URL.revokeObjectURL(moduleUrl);const viewer=window.Adom3DViewerBabylon9.init(document.querySelector('#viewer'),{zUp:true,showGround:false,showViewCube:true});await viewer.loadModel('/api/pages/adom/adom-custom-electronic-load/files/revisions/compact-r11/service-access-review/v8-review.glb?v=fan-separated-r5');const s=viewer.getScene(),c=s.activeCamera;Object.assign(c,{alpha:-.8,beta:.85});for(const m of s.meshes){m.receiveShadows=true;if(m.material){m.material.roughness=.75;m.material.unlit=false;}}s.shadowsEnabled=true;viewer.getShadowGenerator()?.getShadowMap()?.resetRefreshCounter();let revealed=false;document.querySelector('#reveal').onclick=()=>{revealed=!revealed;for(const k of ['fins','base','fan'])viewer.setLayerVisible(k,!revealed);document.querySelector('#reveal').setAttribute('aria-pressed',String(revealed));};document.querySelector('#underside').onclick=()=>{c.beta=2.35;c.alpha=-.8;};document.querySelector('#reset').onclick=()=>{for(const l of viewer.getLayers())viewer.setLayerVisible(l.name,true);revealed=false;document.querySelector('#reveal').setAttribute('aria-pressed','false');Object.assign(c,{alpha:-.8,beta:.85});};document.querySelector('#status').textContent='Short fan harness study · static mechanical intersections clear · PCB/service checks pending · not fabrication ready';window.review={viewer,ready:true};document.querySelector('.layers-toggle')?.click();
</script>