Skip to content

Commit befd18d

Browse files
authored
Update index.html
1 parent c35abc0 commit befd18d

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

index.html

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -720,23 +720,10 @@ <h3>Sovereign Trace Protocol</h3>
720720
const del=document.getElementById('tt-dreamspell');
721721
if(del){del.classList.remove('loading');if(!ds)del.textContent='—';else if(ds.moonNum===0)del.textContent='Day Out of Time';else del.textContent='Day '+ds.dayOfMoon+', '+ds.moonName+' Moon '+ds.moonNum+'/13';}
722722

723-
// Hebrew — JS immediate, hebcal updates display
723+
// Hebrew — JS D&R algorithm (FROZEN-2.0 port) · English output · no network dependency
724+
// Verified: jsHebrew(2026,3,3) = "14 Adar 5786" ✓
724725
const hel=document.getElementById('tt-hebrew');
725-
if(hel){
726-
hel.classList.remove('loading');
727-
hel.textContent=jsHebrew(yr,mo,dy); // immediate, no loading state
728-
// Primary: hebcal live fetch
729-
fetch('https://www.hebcal.com/converter?gd='+dy+'&gm='+mo+'&gy='+yr+'&g2h=1')
730-
.then(r=>r.json())
731-
.then(data=>{if(data&&data.hebrew)hel.textContent=data.hebrew;})
732-
.catch(()=>{
733-
// Secondary: hebcal alternate endpoint
734-
fetch('https://www.hebcal.com/converter?gd='+dy+'&gm='+mo+'&gy='+yr+'&g2h=1&cfg=json')
735-
.then(r=>r.json())
736-
.then(data=>{if(data&&data.hebrew)hel.textContent=data.hebrew;})
737-
.catch(()=>{}); // JS algorithm already displayed — no action needed
738-
});
739-
}
726+
if(hel){hel.classList.remove('loading');hel.textContent=jsHebrew(yr,mo,dy);}
740727

741728
})();
742729
</script>

0 commit comments

Comments
 (0)