by adom
0402 SMD Red LED · 2.1 V drop · 25 mA max
← Commit history
Fix: the Ground button rebuilt the ground opaque, so the grey rectangle returned when toggling it off and on. Re-apply Colby's radial-fade circle (matchColby) right after setGroundVisible so the ground stays his soft circle. Updates the characterization-page hero viewer and the README embed.
2 files changed
+2−2
IN-S42ATR-viewer.html+1−1@@ -399,7 +399,7 @@ // 7) Buttons — Ground / Bottom light call HIS API; Layers is our menu. document.getElementById('mode-static').onclick = () => setMode('static'); document.getElementById('mode-pnp').onclick = () => setMode('pnp');- document.getElementById('btn-ground').onclick = function(){ this.classList.toggle('on'); viewer.setGroundVisible(this.classList.contains('on')); };+ document.getElementById('btn-ground').onclick = function(){ this.classList.toggle('on'); viewer.setGroundVisible(this.classList.contains('on')); matchColby(); }; // setGroundVisible rebuilds the ground opaque — re-apply his fade circle document.getElementById('btn-bottom').onclick = function(){ this.classList.toggle('on'); if (bottomFill) bottomFill.intensity = this.classList.contains('on') ? 0.6 : 0; }; document.getElementById('btn-layers').onclick = function(){ document.getElementById('layer-menu').classList.toggle('open'); this.classList.toggle('on'); };
README.html+1−1@@ -433,7 +433,7 @@ // 7) Buttons — Ground / Bottom light call HIS API; Layers is our menu. document.getElementById('mode-static').onclick = () => setMode('static'); document.getElementById('mode-pnp').onclick = () => setMode('pnp');- document.getElementById('btn-ground').onclick = function(){ this.classList.toggle('on'); viewer.setGroundVisible(this.classList.contains('on')); };+ document.getElementById('btn-ground').onclick = function(){ this.classList.toggle('on'); viewer.setGroundVisible(this.classList.contains('on')); matchColby(); }; // setGroundVisible rebuilds the ground opaque — re-apply his fade circle document.getElementById('btn-bottom').onclick = function(){ this.classList.toggle('on'); if (bottomFill) bottomFill.intensity = this.classList.contains('on') ? 0.6 : 0; }; document.getElementById('btn-layers').onclick = function(){ document.getElementById('layer-menu').classList.toggle('open'); this.classList.toggle('on'); };