From e98326db37e86d499ffd0d7899bc6bce57331f86 Mon Sep 17 00:00:00 2001 From: Luke Fretwell Date: Sun, 7 Jun 2026 07:08:58 -0700 Subject: [PATCH] Standardize footer: canonical structure, analytics.html, move nav scripts to js.html, feedback URL/a11y/hostname fix --- _includes/analytics.html | 11 +++++++ _includes/feedback.html | 28 +++++++++-------- _includes/footer.html | 66 +++++++++++++--------------------------- _includes/js.html | 12 +++++++- 4 files changed, 59 insertions(+), 58 deletions(-) create mode 100644 _includes/analytics.html diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 00000000..72c2fc47 --- /dev/null +++ b/_includes/analytics.html @@ -0,0 +1,11 @@ + + + diff --git a/_includes/feedback.html b/_includes/feedback.html index 821a69b3..35656077 100644 --- a/_includes/feedback.html +++ b/_includes/feedback.html @@ -1,23 +1,27 @@ + class="feedback btn" + aria-hidden="true" + tabindex="-1"> Get ScanGov + \ No newline at end of file + if (window.location.hostname !== 'my.scangov.com') { + window.addEventListener('scroll', updateButton); + updateButton(); + } + diff --git a/_includes/footer.html b/_includes/footer.html index d9db2072..850d8f5a 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,4 +1,21 @@ - - - - +{% include "analytics.html" %} {% include "js.html" %} -{% getBundle "fontawesome" %} {% include "feedback.html" %} - \ No newline at end of file +{% getBundle "fontawesome" %} + + diff --git a/_includes/js.html b/_includes/js.html index 277cee91..2b813fc7 100644 --- a/_includes/js.html +++ b/_includes/js.html @@ -13,4 +13,14 @@ // Update instantly when OS preference changes darkQuery.addEventListener('change', e => setTheme(e.matches)); - \ No newline at end of file + +