From e6a04ac665b383886b849a6774c2f35a6a09d1f0 Mon Sep 17 00:00:00 2001 From: hermes-agent Date: Fri, 14 Aug 2026 14:02:33 +0200 Subject: [PATCH] Fix: arbre n'ouvrait que la branche active au lieu de toutes --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 9c398f5..604e2bd 100644 --- a/index.html +++ b/index.html @@ -241,7 +241,8 @@ function RT(){ }; dv.appendChild(rw) } - if(br){var kd=document.createElement('div');kd.className='chd o'; + function onPath(t) { if(!t||t===n)return true; var p=t._p; while(p){if(p===n)return true;p=p._p}return false; } + if(br){var kd=document.createElement('div');kd.className='chd'+(onPath(N)?' o':''); for(var i=0;i