Skip to content

Commit 483ec76

Browse files
committed
Update README_react.html to use algorithmic condition for fading and re-generate index
- Fixed hardcoded array condition ![-1, 0, 2, 1, 2].includes(v) to use !isTruthy in JavaScript/2634. Filter Elements from Array/Claude Code Sonnet 4.6 extended/README_react.html - Re-generated public/index.html and updated public content using python generate_index.py command on local dev to ensure public directory reflects changes. Changed lines in public/index.html (419, 434, 439, 581, 763, 806) are auto-generated.
1 parent fe995f5 commit 483ec76

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • JavaScript/2634. Filter Elements from Array/Claude Code Sonnet 4.6 extended
  • public/JavaScript/2634. Filter Elements from Array/Claude Code Sonnet 4.6 extended

JavaScript/2634. Filter Elements from Array/Claude Code Sonnet 4.6 extended/README_react.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ <h4 class="outfit font-bold text-amber-800 mb-3 text-base">
12821282
if (isCurrent && data.highlight === 'falsy')
12831283
bg =
12841284
'bg-red-200 border-red-500 text-red-900 scale-110 shadow-lg';
1285-
if (data.highlight === 'done' && ![-1, 0, 2, 1, 2].includes(v))
1285+
if (data.highlight === 'done' && !isTruthy)
12861286
bg =
12871287
'bg-slate-100 border-slate-300 text-slate-400 opacity-50';
12881288

public/JavaScript/2634. Filter Elements from Array/Claude Code Sonnet 4.6 extended/README_react.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ <h4 class="outfit font-bold text-amber-800 mb-3 text-base">
12821282
if (isCurrent && data.highlight === 'falsy')
12831283
bg =
12841284
'bg-red-200 border-red-500 text-red-900 scale-110 shadow-lg';
1285-
if (data.highlight === 'done' && ![-1, 0, 2, 1, 2].includes(v))
1285+
if (data.highlight === 'done' && !isTruthy)
12861286
bg =
12871287
'bg-slate-100 border-slate-300 text-slate-400 opacity-50';
12881288

0 commit comments

Comments
 (0)