Skip to content

Commit

Permalink
Update Terms of Service
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork authored Sep 23, 2024
2 parents 4ac4fe5 + 7d00c86 commit 91471d2
Show file tree
Hide file tree
Showing 6 changed files with 178 additions and 211 deletions.
24 changes: 12 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
bigdecimal (3.1.8)
colorator (1.1.0)
concurrent-ruby (1.2.3)
concurrent-ruby (1.3.4)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.16.3)
ffi (1.17.0)
forwardable-extended (2.6.0)
google-protobuf (4.27.0)
google-protobuf (4.27.4)
bigdecimal
rake (>= 13)
http_parser.rb (0.8.0)
Expand Down Expand Up @@ -49,18 +49,18 @@ GEM
mercenary (0.4.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.5)
public_suffix (6.0.1)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.2.8)
strscan (>= 3.0.9)
rouge (4.2.1)
rexml (3.3.6)
strscan
rouge (4.3.0)
safe_yaml (1.0.5)
sass-embedded (1.77.2)
google-protobuf (>= 3.25, < 5.0)
rake (>= 13.0.0)
sass-embedded (1.77.8)
google-protobuf (~> 4.26)
rake (>= 13)
strscan (3.1.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
Expand Down
60 changes: 59 additions & 1 deletion _includes/component-footer.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,63 @@
<footer id="component-footer" class="usa-footer usa-footer--big" role="contentinfo">
<footer
id="component-footer"
class="usa-footer usa-footer--big"
role="contentinfo">
<div class="grid-container">
<div id="touchpoints-yes-no-form"></div>
</div>
<div class="grid-container usa-footer__return-to-top">
<a href="#">Return to top</a>
</div>
</footer>
<script src="https://touchpoints.app.cloud.gov/touchpoints/0efb2db6.js" async></script>

<script>
function setTouchpointsListeners() {
document.addEventListener('onTouchpointsModalClose', function() {
console.log("fired onTouchpointsModalClose")
});

document.addEventListener('onTouchpointsModalOpen', function() {
console.log("fired onTouchpointsModalOpen")
});

document.addEventListener('onTouchpointsFormSubmission', function() {
console.log("fired onTouchpointsFormSubmission")
});

document.addEventListener('onTouchpointsFormPreviousPage', function(e) {
console.log("fired onTouchpointsFormPreviousPage", e.page)
});

document.addEventListener('onTouchpointsFormNextPage', function(e) {
console.log("fired onTouchpointsFormNextPage", e.page)
});
}

document.addEventListener('onTouchpointsFormLoaded', (e) => {
// load for a specific form
if (e.detail && e.detail.formComponent.formComponent().getAttribute("data-touchpoints-form-id") === '0efb2db6' ) {
console.log("onTouchpointsFormLoaded")
const yesButton = e.detail.formComponent.formComponent().querySelector('input.usa-button[value="yes"]');
const noButton = e.detail.formComponent.formComponent().querySelector('input.usa-button[value="no"]');

yesButton.addEventListener('click', (event) => {
event.preventDefault();
gas4('was_this_helpful_submit', {
'event_category': 'cx_feedback',
'event_action': 'was_this_page_helpful2',
'event_label': "yes",
})
});

noButton.addEventListener('click', (event) => {
event.preventDefault();
gas4('was_this_helpful_submit', {
'event_category': 'cx_feedback',
'event_action': 'was_this_page_helpful2',
'event_label': "no",
})
});
}
});
</script>
8 changes: 8 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TSRQBRG');</script>
<!-- End Google Tag Manager -->

<style>
#touchpoints-yes-no-form form {
margin-left: auto;
margin-right: auto;
text-align: center;
}
</style>
</head>
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
"uswds-copy-js": "gulp copyJS",
"uswds-copy-theme": "gulp copyTheme",
"uswds-update": "npm update uswds",
"watch": "gulp watch",
"snyk-protect": "snyk protect",
"prepare": "npm run snyk-protect"
"watch": "gulp watch"
},
"dependencies": {
"snyk": "^1.1291.0",
"snyk": "^1.1292.1",
"uswds": "^2.14.0"
},
"snyk": true,
Expand Down
Loading

0 comments on commit 91471d2

Please sign in to comment.