From e08f9362c9742d1a619a0c0a6cf7a040e3473057 Mon Sep 17 00:00:00 2001 From: Jim Washbrook Date: Tue, 27 Aug 2024 16:38:56 +0100 Subject: [PATCH 1/5] fix(print): Move Javascript to + } +} \ No newline at end of file diff --git a/src/Dfe.ContentSupport.Web/Views/Shared/_Print.cshtml b/src/Dfe.ContentSupport.Web/Views/Shared/_Print.cshtml index 402ac26..70c2e12 100644 --- a/src/Dfe.ContentSupport.Web/Views/Shared/_Print.cshtml +++ b/src/Dfe.ContentSupport.Web/Views/Shared/_Print.cshtml @@ -1,3 +1,3 @@  \ No newline at end of file From 839d46e01a1d06faab6a10a7f084c27ebee2dc91 Mon Sep 17 00:00:00 2001 From: Jim Washbrook Date: Tue, 27 Aug 2024 17:30:07 +0100 Subject: [PATCH 2/5] feat: Hide JS dependant elements unless JS enabled --- .../Views/Content/CsIndex.cshtml | 24 +++++++++++++++++++ .../Views/Shared/_Feedback.cshtml | 2 +- .../Views/Shared/_Footer.cshtml | 4 ++-- .../Views/Shared/_Print.cshtml | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/Dfe.ContentSupport.Web/Views/Content/CsIndex.cshtml b/src/Dfe.ContentSupport.Web/Views/Content/CsIndex.cshtml index 7876f90..3087d3a 100644 --- a/src/Dfe.ContentSupport.Web/Views/Content/CsIndex.cshtml +++ b/src/Dfe.ContentSupport.Web/Views/Content/CsIndex.cshtml @@ -76,4 +76,28 @@ addPrintButtonEventListener(); } + + } \ No newline at end of file diff --git a/src/Dfe.ContentSupport.Web/Views/Shared/_Feedback.cshtml b/src/Dfe.ContentSupport.Web/Views/Shared/_Feedback.cshtml index 6564b7c..13ed0e9 100644 --- a/src/Dfe.ContentSupport.Web/Views/Shared/_Feedback.cshtml +++ b/src/Dfe.ContentSupport.Web/Views/Shared/_Feedback.cshtml @@ -17,7 +17,7 @@ @if (track) { -
+