Upload index.html
Browse files- index.html +129 -1
index.html
CHANGED
|
@@ -1252,6 +1252,40 @@ g.o3d-hl .o3d-q{filter:brightness(1.6)}
|
|
| 1252 |
/* uitlegtags ook tijdens de analyse volledig zichtbaar */
|
| 1253 |
.next-orchestra.running .o3d-explain{opacity:1!important}
|
| 1254 |
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1255 |
</head>
|
| 1256 |
<body>
|
| 1257 |
<div class="app">
|
|
@@ -3374,7 +3408,7 @@ requestAnimationFrame(nextBuildGraph);
|
|
| 3374 |
/* ---------- 7. Wachtrij rond de conductor ---------- */
|
| 3375 |
const queue=[]; // {id,g,layer,leaving,from,to,t0}
|
| 3376 |
let railBack=null,railFront=null,queueLabel=null,qAngle=0,qLast=0;
|
| 3377 |
-
function orbit(){return {cx:conductorC.x,cy:conductorC.y+conductorC.h*.04,rx:conductorC.w*.66,ry:conductorC.w*.17};}
|
| 3378 |
function buildRail(){
|
| 3379 |
railBack&&railBack.remove();railFront&&railFront.remove();queueLabel&&queueLabel.remove();
|
| 3380 |
const o=orbit();
|
|
@@ -3861,4 +3895,98 @@ requestAnimationFrame(nextBuildGraph);
|
|
| 3861 |
setTimeout(schedule,60);sync();
|
| 3862 |
})();
|
| 3863 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3864 |
</body></html>
|
|
|
|
| 1252 |
/* uitlegtags ook tijdens de analyse volledig zichtbaar */
|
| 1253 |
.next-orchestra.running .o3d-explain{opacity:1!important}
|
| 1254 |
</style>
|
| 1255 |
+
<style id="orchestra-dial-style">
|
| 1256 |
+
/* ---------- Conductor als draaiknop ---------- */
|
| 1257 |
+
.o3d-dial-host{--dial-c:#c9b6ff}
|
| 1258 |
+
.o3d-dial-host .o3d-gyro{display:none!important}
|
| 1259 |
+
.o3d-dial{position:absolute;inset:-4%;width:108%;height:108%;overflow:visible;z-index:1}
|
| 1260 |
+
.o3d-dial-ticks line{stroke:#3b4658;stroke-width:1.1}
|
| 1261 |
+
.o3d-dial-beam{fill:none;stroke:var(--dial-c);stroke-width:5;stroke-dasharray:36 324;stroke-linecap:round;opacity:.85;
|
| 1262 |
+
transform-origin:0 0;transition:transform .75s cubic-bezier(.3,1.35,.45,1),stroke .4s ease}
|
| 1263 |
+
.o3d-dial-face{fill:url(#dialFace);stroke:#2e3949;stroke-width:1.5}
|
| 1264 |
+
.o3d-dial-rot{transform-origin:0 0;transition:transform .75s cubic-bezier(.3,1.35,.45,1)}
|
| 1265 |
+
.o3d-seg .seg{fill:url(#dialSeg);stroke:#0f141c;stroke-width:1.4;transition:fill .35s ease}
|
| 1266 |
+
.o3d-seg .ico{fill:#7d8ba0;font:600 15px Inter,'Segoe UI',Arial,sans-serif;transform-box:fill-box;transform-origin:center;
|
| 1267 |
+
transition:transform .75s cubic-bezier(.3,1.35,.45,1),fill .35s ease}
|
| 1268 |
+
.o3d-seg .done-dot{opacity:0;transition:opacity .3s ease}
|
| 1269 |
+
.o3d-seg.done .done-dot{opacity:1}
|
| 1270 |
+
.o3d-seg.done .ico{fill:#b9c6d8}
|
| 1271 |
+
.o3d-seg.on .seg{fill:url(#dialActive);stroke:color-mix(in srgb,var(--dial-c) 60%,#fff)}
|
| 1272 |
+
.o3d-seg.on .ico{fill:#fff}
|
| 1273 |
+
.o3d-dial-inner{fill:#141a24;stroke:#2a3443;stroke-width:1.2}
|
| 1274 |
+
.o3d-dial-track{fill:none;stroke:#222b38;stroke-width:4}
|
| 1275 |
+
.o3d-dial-prog{fill:none;stroke:var(--dial-c);stroke-width:4;stroke-linecap:round;stroke-dasharray:0 100;transform:rotate(-90deg);transition:stroke-dasharray .25s linear,stroke .4s ease}
|
| 1276 |
+
.o3d-dial-btn{fill:#212a37;stroke:#3a4558;stroke-width:1.2}
|
| 1277 |
+
.o3d-dial-star{fill:#ff7a52;font:700 30px Inter,'Segoe UI',Arial,sans-serif;transition:fill .4s ease}
|
| 1278 |
+
.o3d-dial-click .o3d-dial-btn{animation:o3dDialPress .35s ease}
|
| 1279 |
+
@keyframes o3dDialPress{40%{transform:scale(.9)}100%{transform:scale(1)}}
|
| 1280 |
+
.o3d-dial-btn{transform-box:fill-box;transform-origin:center}
|
| 1281 |
+
.o3d-dial-pill{position:absolute;left:50%;top:-34px;transform:translate(-50%,6px);white-space:nowrap;z-index:3;
|
| 1282 |
+
font:700 10.5px Inter,'Segoe UI',Arial,sans-serif;color:#eef5ff;padding:5px 12px;border-radius:20px;background:#121823;
|
| 1283 |
+
border:1px solid var(--dial-c);opacity:0;transition:opacity .3s ease,transform .3s ease,border-color .4s ease;pointer-events:none}
|
| 1284 |
+
.o3d-dial-pill.show{opacity:1;transform:translate(-50%,0)}
|
| 1285 |
+
@media (prefers-reduced-motion:reduce){.o3d-dial-rot,.o3d-seg .ico,.o3d-dial-beam{transition:none}}
|
| 1286 |
+
.o3d-dial-host~*{}
|
| 1287 |
+
body:has(.o3d-dial-host) .o3d-qlabel{display:none}
|
| 1288 |
+
</style>
|
| 1289 |
</head>
|
| 1290 |
<body>
|
| 1291 |
<div class="app">
|
|
|
|
| 3408 |
/* ---------- 7. Wachtrij rond de conductor ---------- */
|
| 3409 |
const queue=[]; // {id,g,layer,leaving,from,to,t0}
|
| 3410 |
let railBack=null,railFront=null,queueLabel=null,qAngle=0,qLast=0;
|
| 3411 |
+
function orbit(){if(art&&art.classList.contains('o3d-dial-host'))return {cx:conductorC.x,cy:conductorC.y,rx:conductorC.w*.63,ry:conductorC.w*.63};return {cx:conductorC.x,cy:conductorC.y+conductorC.h*.04,rx:conductorC.w*.66,ry:conductorC.w*.17};}
|
| 3412 |
function buildRail(){
|
| 3413 |
railBack&&railBack.remove();railFront&&railFront.remove();queueLabel&&queueLabel.remove();
|
| 3414 |
const o=orbit();
|
|
|
|
| 3895 |
setTimeout(schedule,60);sync();
|
| 3896 |
})();
|
| 3897 |
</script>
|
| 3898 |
+
<script id="orchestra-dial-script">
|
| 3899 |
+
/* Conductor als draaiknop: per stap draait de knop zodat het segment van de actieve
|
| 3900 |
+
agent naar die agent wijst; kleur en voortgangsring volgen de agent. Alleen weergave. */
|
| 3901 |
+
(function(){
|
| 3902 |
+
'use strict';
|
| 3903 |
+
const NS='http://www.w3.org/2000/svg';
|
| 3904 |
+
const mk=(t,a={},c)=>{const n=document.createElementNS(NS,t);for(const k in a)n.setAttribute(k,a[k]);if(c)n.setAttribute('class',c);return n;};
|
| 3905 |
+
const next=!!document.querySelector('.next-agent-card');
|
| 3906 |
+
const art=next?document.querySelector('.next-conductor-art'):document.querySelector('#conductorNode .conductor-art');
|
| 3907 |
+
if(!art)return;
|
| 3908 |
+
const cards=next?['data','identity','history','analysis','insight','verify','privacy','report','quality'].map(id=>document.getElementById('agent-'+id)).filter(Boolean)
|
| 3909 |
+
:[...document.querySelectorAll('#orchestraNetwork .agent[data-agent]')];
|
| 3910 |
+
const N=cards.length;if(!N)return;
|
| 3911 |
+
const accent=c=>getComputedStyle(c).getPropertyValue(next?'--accent':'--a').trim()||'#8ef0ff';
|
| 3912 |
+
const icon=c=>(c.querySelector(next?'.agent-symbol':'.agent-icon')?.textContent||'•').trim();
|
| 3913 |
+
const bar=c=>c.querySelector(next?'.agent-bottom .track i':'.bar i');
|
| 3914 |
+
const paused=()=>{const s=next?document.getElementById('nextOrchestraStage'):document.getElementById('network');return s&&(s.classList.contains(next?'next-motion-paused':'motion-paused'));};
|
| 3915 |
+
|
| 3916 |
+
art.classList.add('o3d-dial-host');
|
| 3917 |
+
const svg=mk('svg',{viewBox:'-112 -112 224 224','aria-hidden':'true'},'o3d-dial');
|
| 3918 |
+
const defs=mk('defs');svg.appendChild(defs);
|
| 3919 |
+
const rg=mk('radialGradient',{id:'dialFace',cx:'50%',cy:'38%',r:'70%'});[['0%','#2b3444'],['70%','#171d28'],['100%','#10141c']].forEach(([o,c])=>rg.appendChild(mk('stop',{offset:o,'stop-color':c})));defs.appendChild(rg);
|
| 3920 |
+
const sg=mk('linearGradient',{id:'dialSeg',x1:'0',y1:'0',x2:'1',y2:'1'});[['0%','#283140'],['100%','#1a212c']].forEach(([o,c])=>sg.appendChild(mk('stop',{offset:o,'stop-color':c})));defs.appendChild(sg);
|
| 3921 |
+
const ag=mk('linearGradient',{id:'dialActive',x1:'0',y1:'0',x2:'1',y2:'1'});
|
| 3922 |
+
const s1=mk('stop',{offset:'0%'}),s2=mk('stop',{offset:'100%'});ag.append(s1,s2);defs.appendChild(ag);
|
| 3923 |
+
|
| 3924 |
+
// buitenste tikring met oplichtende boog richting de actieve agent
|
| 3925 |
+
const ticks=mk('g',{},'o3d-dial-ticks');
|
| 3926 |
+
for(let i=0;i<96;i++){const a=i*Math.PI*2/96,r1=i%4?101:99,r2=105;ticks.appendChild(mk('line',{x1:(Math.cos(a)*r1).toFixed(2),y1:(Math.sin(a)*r1).toFixed(2),x2:(Math.cos(a)*r2).toFixed(2),y2:(Math.sin(a)*r2).toFixed(2)}));}
|
| 3927 |
+
svg.appendChild(ticks);
|
| 3928 |
+
const beam=mk('circle',{r:103,pathLength:360},'o3d-dial-beam');svg.appendChild(beam);
|
| 3929 |
+
svg.appendChild(mk('circle',{r:94},'o3d-dial-face'));
|
| 3930 |
+
// draaiend deel
|
| 3931 |
+
const rot=mk('g',{},'o3d-dial-rot');svg.appendChild(rot);
|
| 3932 |
+
const ri=46,ro=90,gap=1.6;
|
| 3933 |
+
const arcPath=(a0,a1)=>{const r=d=>d*Math.PI/180,p=(rad,a)=>`${(Math.cos(r(a))*rad).toFixed(2)} ${(Math.sin(r(a))*rad).toFixed(2)}`;const large=a1-a0>180?1:0;
|
| 3934 |
+
return `M ${p(ro,a0)} A ${ro} ${ro} 0 ${large} 1 ${p(ro,a1)} L ${p(ri,a1)} A ${ri} ${ri} 0 ${large} 0 ${p(ri,a0)} Z`;};
|
| 3935 |
+
const segs=cards.map((c,i)=>{
|
| 3936 |
+
const mid=i*360/N-90,a0=mid-180/N+gap,a1=mid+180/N-gap,g=mk('g',{},'o3d-seg');
|
| 3937 |
+
g.appendChild(mk('path',{d:arcPath(a0,a1)},'seg'));
|
| 3938 |
+
const ic=(ri+ro)/2,x=Math.cos(mid*Math.PI/180)*ic,y=Math.sin(mid*Math.PI/180)*ic;
|
| 3939 |
+
const t=mk('text',{x:x.toFixed(2),y:(y+.5).toFixed(2),'text-anchor':'middle','dominant-baseline':'central'},'ico');t.textContent=icon(c);
|
| 3940 |
+
const dx=Math.cos(mid*Math.PI/180)*(ro-9),dy=Math.sin(mid*Math.PI/180)*(ro-9);
|
| 3941 |
+
const dot=mk('circle',{cx:dx.toFixed(2),cy:dy.toFixed(2),r:2.6},'done-dot');dot.style.fill=accent(c);
|
| 3942 |
+
g.append(t,dot);rot.appendChild(g);return {c,g,t,mid};
|
| 3943 |
+
});
|
| 3944 |
+
rot.appendChild(mk('circle',{r:ri-1},'o3d-dial-inner'));
|
| 3945 |
+
// voortgangsring en middenknop (draaien niet mee)
|
| 3946 |
+
svg.appendChild(mk('circle',{r:38},'o3d-dial-track'));
|
| 3947 |
+
const prog=mk('circle',{r:38,pathLength:100},'o3d-dial-prog');svg.appendChild(prog);
|
| 3948 |
+
svg.appendChild(mk('rect',{x:-24,y:-24,width:48,height:48,rx:13},'o3d-dial-btn'));
|
| 3949 |
+
const star=mk('text',{x:0,y:1,'text-anchor':'middle','dominant-baseline':'central'},'o3d-dial-star');star.textContent='✺';svg.appendChild(star);
|
| 3950 |
+
const pill=document.createElement('div');pill.className='o3d-dial-pill';pill.setAttribute('aria-live','polite');
|
| 3951 |
+
art.appendChild(svg);art.appendChild(pill);
|
| 3952 |
+
|
| 3953 |
+
let cur=0,beamAngle=-90,activeIdx=-1,raf=0;
|
| 3954 |
+
const norm=d=>((d+540)%360)-180;
|
| 3955 |
+
function targetAngle(c){const a=art.getBoundingClientRect(),r=c.getBoundingClientRect();const cx=a.left+a.width/2,cy=a.top+a.height/2;
|
| 3956 |
+
const tx=(r.left+r.right)/2<cx?r.right:r.left,ty=r.top+r.height/2;return Math.atan2(ty-cy,tx-cx)*180/Math.PI;}
|
| 3957 |
+
function setColor(col){art.style.setProperty('--dial-c',col);s1.setAttribute('stop-color',col);s2.setAttribute('stop-color',col);}
|
| 3958 |
+
function turnTo(i){
|
| 3959 |
+
const s=segs[i],want=targetAngle(s.c);
|
| 3960 |
+
cur+=norm((want-s.mid)-cur); // kortste draairichting
|
| 3961 |
+
rot.style.transform=`rotate(${cur.toFixed(2)}deg)`;
|
| 3962 |
+
segs.forEach(x=>x.t.style.transform=`rotate(${(-cur).toFixed(2)}deg)`);
|
| 3963 |
+
beamAngle+=norm(want-beamAngle);beam.style.transform=`rotate(${(beamAngle-18).toFixed(2)}deg)`;
|
| 3964 |
+
}
|
| 3965 |
+
function update(){
|
| 3966 |
+
raf=0;
|
| 3967 |
+
const idx=cards.findIndex(c=>c.classList.contains('active'));
|
| 3968 |
+
cards.forEach((c,i)=>{segs[i].g.classList.toggle('done',c.classList.contains('done')&&!c.classList.contains('active'));segs[i].g.classList.toggle('on',i===idx);});
|
| 3969 |
+
if(idx>=0&&idx!==activeIdx){activeIdx=idx;setColor(accent(cards[idx]));turnTo(idx);
|
| 3970 |
+
art.classList.remove('o3d-dial-click');void art.offsetWidth;art.classList.add('o3d-dial-click');
|
| 3971 |
+
const prev=cards.slice(0,idx).reverse().find(c=>c.classList.contains('done'));
|
| 3972 |
+
const nm=c=>(c.querySelector('h3,h4')?.textContent||'').replace(/ Agent$/,'').trim();
|
| 3973 |
+
const waiting=cards.filter((c,i)=>i>idx&&!c.classList.contains('done')).length;
|
| 3974 |
+
pill.textContent=(prev?nm(prev)+' › ':'')+nm(cards[idx])+(waiting?' · nog '+waiting+' in de wachtrij':'');pill.classList.add('show');}
|
| 3975 |
+
if(idx<0&&activeIdx!==-1){activeIdx=-1;
|
| 3976 |
+
const allDone=cards.filter(c=>c.classList.contains('done')).length;
|
| 3977 |
+
pill.textContent=allDone?allDone+' van '+N+' klaar':'';pill.classList.toggle('show',!!allDone);
|
| 3978 |
+
if(!allDone){setColor('#c9b6ff');}}
|
| 3979 |
+
const b=idx>=0?bar(cards[idx]):null,w=b?parseFloat(b.style.width)||0:(activeIdx<0&&cards.some(c=>c.classList.contains('done'))?100:0);
|
| 3980 |
+
prog.style.strokeDasharray=`${Math.max(0,Math.min(100,w)).toFixed(1)} 100`;
|
| 3981 |
+
}
|
| 3982 |
+
const sched=()=>{if(!raf)raf=requestAnimationFrame(update);};
|
| 3983 |
+
const mo=new MutationObserver(sched);
|
| 3984 |
+
cards.forEach(c=>{mo.observe(c,{attributes:true,attributeFilter:['class']});const b=bar(c);if(b)mo.observe(b,{attributes:true,attributeFilter:['style']});});
|
| 3985 |
+
window.addEventListener('resize',()=>{if(activeIdx>=0)turnTo(activeIdx);});
|
| 3986 |
+
setColor('#c9b6ff');
|
| 3987 |
+
// beginstand: eerste segment naar de eerste agent
|
| 3988 |
+
requestAnimationFrame(()=>{rot.style.transition='none';segs.forEach(x=>x.t.style.transition='none');beam.style.transition='none';turnTo(0);
|
| 3989 |
+
requestAnimationFrame(()=>{rot.style.transition='';segs.forEach(x=>x.t.style.transition='');beam.style.transition='';update();});});
|
| 3990 |
+
})();
|
| 3991 |
+
</script>
|
| 3992 |
</body></html>
|