Skip to content

Commit

Permalink
Replace jQuery in Retirement app
Browse files Browse the repository at this point in the history
- Add dollar-sign.js
- Change some event handlers in retirement code
  • Loading branch information
mistergone committed Apr 15, 2024
1 parent 3091333 commit 69e3a9a
Show file tree
Hide file tree
Showing 7 changed files with 691 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,14 @@ import { analyticsSendEvent, analyticsLog } from '@cfpb/cfpb-analytics';
.querySelector('#retirement-age-selector')
.addEventListener('change', function (event) {
const target = event.currentTarget;
const val = target[target.selectedIndex].value;
analyticsSendEvent({
event: 'Before You Claim Interaction',
action: 'Planned Retirement Age selected',
label: val,
});
if ( target.selectedIndex > -1 ) {
const val = target[target.selectedIndex].value;
analyticsSendEvent({
event: 'Before You Claim Interaction',
action: 'Planned Retirement Age selected',
label: val,
});
}
});

document
Expand Down
Loading

0 comments on commit 69e3a9a

Please sign in to comment.