Skip to content

fix: add missing scroll-indicator element and null guard#10

Open
jaredgoldman wants to merge 1 commit intomainfrom
worktree-agent-ae08904927be005df
Open

fix: add missing scroll-indicator element and null guard#10
jaredgoldman wants to merge 1 commit intomainfrom
worktree-agent-ae08904927be005df

Conversation

@jaredgoldman
Copy link
Copy Markdown
Owner

Summary

  • Add <div id="scroll-indicator" class="scroll-indicator"></div> inside #container in index.html so the element exists in the DOM (it was missing, causing a null reference crash)
  • Add a null guard (if (!scrollIndicator) return;) at the top of loadScrollIndicator() as a defensive fallback
  • Remove a redundant window.addEventListener('load', ...) call that would re-trigger showAndFadeIndicator 1.5s after page load, interrupting the first animation cycle
  • Remove narrating comments that only restated what the code obviously does

Test plan

  • pnpm run css compiles with no errors
  • node --check scripts/scrollIndicator.js passes with no syntax errors
  • Browser verification: scroll indicator should pulse at bottom-center of container on desktop viewport widths

🤖 Generated with Claude Code

Add <div id="scroll-indicator"> to index.html so the element exists in
the DOM, and add a null guard in loadScrollIndicator() to prevent a
silent crash when the element is absent. Also remove redundant load
event listener and unnecessary narrating comments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for jared-goldman-portfolio ready!

Name Link
🔨 Latest commit 3602916
🔍 Latest deploy log https://app.netlify.com/projects/jared-goldman-portfolio/deploys/69f97d505ace7b0008f8f8c7
😎 Deploy Preview https://deploy-preview-10--jared-goldman-portfolio.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant