Spaces:
Running
Running
Update index.html
Browse files- index.html +26 -16
index.html
CHANGED
|
@@ -360,6 +360,10 @@ body::-webkit-scrollbar-thumb{background:linear-gradient(#6b4fd8,#f5c86a);border
|
|
| 360 |
font-size:.74rem;letter-spacing:.06em;padding:8px 15px;cursor:pointer;backdrop-filter:blur(8px)}
|
| 361 |
#sound-toggle:hover{border-color:var(--gold);color:var(--gold)}
|
| 362 |
#sound-toggle[aria-pressed="true"]{border-color:var(--gold);color:var(--gold);box-shadow:0 0 14px rgba(245,200,106,.25)}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 363 |
/* ---------- star-detail focus scene ---------- */
|
| 364 |
.hero-title,.scroll-cue,#hero-legend{transition:opacity .5s ease}
|
| 365 |
.in-detail .hero-title,.in-detail .scroll-cue,.in-detail #hero-legend{opacity:0 !important;pointer-events:none !important}
|
|
@@ -617,6 +621,7 @@ function ciBand(ci){if(typeof ci!=="number"||!isFinite(ci))return "unranked";
|
|
| 617 |
if(ci<60)return "Reliable 1–2 hop reasoning";
|
| 618 |
if(ci<80)return "Strong multi-hop reasoning & inhibition";
|
| 619 |
return "Exceptional for sub-150M";}
|
|
|
|
| 620 |
window.__slmciBuild="v2026.09.04-3d3";
|
| 621 |
var state={results:null,descriptions:{},league:"sub150",benchmark:"SLM-CI v0.1",query:"",org:"all",sort:"ci_desc",cat:"all",showConstels:false};
|
| 622 |
var reduced=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
@@ -737,20 +742,12 @@ function scheduleShoot(){
|
|
| 737 |
}
|
| 738 |
|
| 739 |
/* ---------- galaxy ---------- */
|
| 740 |
-
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
}
|
| 746 |
-
var rows=n<=30?3:(n<=80?5:7);
|
| 747 |
-
var perRow=Math.ceil(n/rows);
|
| 748 |
-
var r=Math.floor(i/perRow),c=i%perRow;
|
| 749 |
-
var lastCount=n-(Math.ceil(n/perRow)-1)*perRow;
|
| 750 |
-
var inRow=(r===rows-1&&n%perRow!==0)?lastCount:perRow;
|
| 751 |
-
var xx=92-84*c/Math.max(inRow-1,1);
|
| 752 |
-
var yy=13+(62-13)*r/Math.max(rows-1,1)+(hash01(i*1.31+0.7)-0.5)*5;
|
| 753 |
-
return {x:xx,y:clamp(yy,10,68)};
|
| 754 |
}
|
| 755 |
function renderGalaxy(models){
|
| 756 |
if (window.__slmci3d && window.__slmci3d.mode === "3d") { els.stars.innerHTML=""; els.constellation.innerHTML=""; hideTooltip(); return; }
|
|
@@ -758,9 +755,14 @@ function renderGalaxy(models){
|
|
| 758 |
els.constellation.innerHTML="";
|
| 759 |
hideTooltip();
|
| 760 |
var n=models.length;
|
|
|
|
|
|
|
|
|
|
| 761 |
var pts=[];
|
| 762 |
models.forEach(function(m,i){
|
| 763 |
-
var
|
|
|
|
|
|
|
| 764 |
var t=ciT(m.ci_index);
|
| 765 |
var core=2+6*t,glow=12+48*t,op=(0.55+0.45*t).toFixed(2);
|
| 766 |
var color=lerpColor(t);
|
|
@@ -1507,6 +1509,14 @@ Promise.all([
|
|
| 1507 |
applyShareParams();
|
| 1508 |
if(state._shareOrg){state.org=allOrgs().indexOf(state._shareOrg)>=0?state._shareOrg:"all";state._shareOrg=null;}
|
| 1509 |
route();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1510 |
}).catch(function(err){
|
| 1511 |
showError("results.json",(err&&err.message)||String(err));
|
| 1512 |
});
|
|
@@ -1991,7 +2001,7 @@ function tick(){
|
|
| 1991 |
window.addEventListener("slmci:models", function(e){ deselect(true); setModels((e && e.detail && e.detail.models) || []); });
|
| 1992 |
sizeToParent();
|
| 1993 |
tick();
|
| 1994 |
-
} catch (err) { try { window.__slmci3dFail = String((err && err.message) || err); if (window.console && console.warn) console.warn("[slmci] 3D galaxy off, 2D fallback active:", (err && err.message) || err); } catch (e) {} }
|
| 1995 |
</script>
|
| 1996 |
</body>
|
| 1997 |
</html>
|
|
|
|
| 360 |
font-size:.74rem;letter-spacing:.06em;padding:8px 15px;cursor:pointer;backdrop-filter:blur(8px)}
|
| 361 |
#sound-toggle:hover{border-color:var(--gold);color:var(--gold)}
|
| 362 |
#sound-toggle[aria-pressed="true"]{border-color:var(--gold);color:var(--gold);box-shadow:0 0 14px rgba(245,200,106,.25)}
|
| 363 |
+
#update-pill{position:fixed;top:12px;left:12px;z-index:80;display:none;max-width:min(78vw,430px);
|
| 364 |
+
background:rgba(11,16,38,.94);border:1px solid rgba(245,200,106,.55);color:var(--star);
|
| 365 |
+
font-family:inherit;font-size:.74rem;letter-spacing:.02em;border-radius:999px;padding:9px 16px;
|
| 366 |
+
cursor:pointer;box-shadow:0 10px 30px rgba(0,0,0,.5);text-align:left}
|
| 367 |
/* ---------- star-detail focus scene ---------- */
|
| 368 |
.hero-title,.scroll-cue,#hero-legend{transition:opacity .5s ease}
|
| 369 |
.in-detail .hero-title,.in-detail .scroll-cue,.in-detail #hero-legend{opacity:0 !important;pointer-events:none !important}
|
|
|
|
| 621 |
if(ci<60)return "Reliable 1–2 hop reasoning";
|
| 622 |
if(ci<80)return "Strong multi-hop reasoning & inhibition";
|
| 623 |
return "Exceptional for sub-150M";}
|
| 624 |
+
window.__slmciNote=function(msg){try{var p=document.getElementById("update-pill");if(!p){p=document.createElement("button");p.type="button";p.id="update-pill";document.body.appendChild(p);p.addEventListener("click",function(){try{window.location.reload();}catch(e){}});}p.textContent=msg+" — tap to reload";p.style.display="block";}catch(e){}};
|
| 625 |
window.__slmciBuild="v2026.09.04-3d3";
|
| 626 |
var state={results:null,descriptions:{},league:"sub150",benchmark:"SLM-CI v0.1",query:"",org:"all",sort:"ci_desc",cat:"all",showConstels:false};
|
| 627 |
var reduced=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
|
|
| 742 |
}
|
| 743 |
|
| 744 |
/* ---------- galaxy ---------- */
|
| 745 |
+
/* cluster layout mirrors the 3D scene: brightest at center, golden-spiral
|
| 746 |
+
arms, no rank order — tn is CI normalized to the current view */
|
| 747 |
+
function starPos(i,tn){
|
| 748 |
+
var r=(1-Math.pow(tn,0.6))*44+(tn>=0.999?0:2+hash01(i*3.3)*4);
|
| 749 |
+
var a=i*2.39996+(hash01(i*1.31+0.7)-0.5)*0.9;
|
| 750 |
+
return {x:clamp(50+Math.cos(a)*r,3,97),y:clamp(46+Math.sin(a)*r*0.72,13,80)};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 751 |
}
|
| 752 |
function renderGalaxy(models){
|
| 753 |
if (window.__slmci3d && window.__slmci3d.mode === "3d") { els.stars.innerHTML=""; els.constellation.innerHTML=""; hideTooltip(); return; }
|
|
|
|
| 755 |
els.constellation.innerHTML="";
|
| 756 |
hideTooltip();
|
| 757 |
var n=models.length;
|
| 758 |
+
var ciMin=Infinity,ciMax=-Infinity,k;
|
| 759 |
+
for(k=0;k<n;k++){var cv=(typeof models[k].ci_index==="number"&&isFinite(models[k].ci_index))?models[k].ci_index:25;if(cv<ciMin)ciMin=cv;if(cv>ciMax)ciMax=cv;}
|
| 760 |
+
var ciSpan=ciMax-ciMin;
|
| 761 |
var pts=[];
|
| 762 |
models.forEach(function(m,i){
|
| 763 |
+
var ci0=(typeof m.ci_index==="number"&&isFinite(m.ci_index))?m.ci_index:25;
|
| 764 |
+
var tn=ciSpan>1e-9?(ci0-ciMin)/ciSpan:(n===1?1:1-i/Math.max(n-1,1));
|
| 765 |
+
var p=starPos(i,tn);pts.push(p);
|
| 766 |
var t=ciT(m.ci_index);
|
| 767 |
var core=2+6*t,glow=12+48*t,op=(0.55+0.45*t).toFixed(2);
|
| 768 |
var color=lerpColor(t);
|
|
|
|
| 1509 |
applyShareParams();
|
| 1510 |
if(state._shareOrg){state.org=allOrgs().indexOf(state._shareOrg)>=0?state._shareOrg:"all";state._shareOrg=null;}
|
| 1511 |
route();
|
| 1512 |
+
try{
|
| 1513 |
+
if(window.fetch&&window.__slmciBuild){
|
| 1514 |
+
fetch("index.html",{cache:"no-store"}).then(function(r){return r.ok?r.text():"";}).then(function(t){
|
| 1515 |
+
if(!t)return;var m=t.match(/__slmciBuild="([^"]+)"/);
|
| 1516 |
+
if(m&&m[1]&&m[1]!==window.__slmciBuild&&window.__slmciNote)window.__slmciNote("New version available ("+m[1]+")");
|
| 1517 |
+
}).catch(function(){});
|
| 1518 |
+
}
|
| 1519 |
+
}catch(e){}
|
| 1520 |
}).catch(function(err){
|
| 1521 |
showError("results.json",(err&&err.message)||String(err));
|
| 1522 |
});
|
|
|
|
| 2001 |
window.addEventListener("slmci:models", function(e){ deselect(true); setModels((e && e.detail && e.detail.models) || []); });
|
| 2002 |
sizeToParent();
|
| 2003 |
tick();
|
| 2004 |
+
} catch (err) { try { window.__slmci3dFail = String((err && err.message) || err); if(window.__slmciNote)window.__slmciNote("3D off ("+String((err&&err.message)||err).slice(0,48)+") — 2D sky"); if (window.console && console.warn) console.warn("[slmci] 3D galaxy off, 2D fallback active:", (err && err.message) || err); } catch (e) {} }
|
| 2005 |
</script>
|
| 2006 |
</body>
|
| 2007 |
</html>
|