From a666199017b76137ad2e1dc0e2ea77c3f78b121b Mon Sep 17 00:00:00 2001 From: Pete F Date: Fri, 13 Sep 2024 16:34:43 +0100 Subject: [PATCH 1/6] Add solutions and instructions to accessible crossword page --- .../accessibleCrosswordContent.scala.html | 55 ++++++++++++++++++- .../crosswords/crosswordMetaHeader.scala.html | 8 --- .../bootstraps/enhanced/crosswords.js | 2 + .../accessible-crossword-solutions.js | 14 +++++ .../module/crosswords/_accessible.scss | 12 ++++ 5 files changed, 82 insertions(+), 9 deletions(-) create mode 100644 static/src/javascripts/projects/common/modules/crosswords/accessible-crossword-solutions.js diff --git a/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html b/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html index 5e14e02d630..a29accfbf93 100644 --- a/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html +++ b/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html @@ -8,7 +8,12 @@
-
+
+
+

Puzzle description

+

Note: We've recently added solutions to this page below.

+

This page provides a text-only description of the puzzle, via three lists. 'Blanks' specifies the location of cells which aren't in any clue. 'Across' and 'Down' list the clues in the format: "(starting square) clue text (answer length).

+

Cells are specified via row number (top to bottom) and column letter (left to right)

@@ -28,6 +33,54 @@

Down

+
+
+

Solutions

+
+ + +
+
diff --git a/applications/app/views/fragments/crosswords/crosswordMetaHeader.scala.html b/applications/app/views/fragments/crosswords/crosswordMetaHeader.scala.html index a86f7701c4b..fe3beb5db2d 100644 --- a/applications/app/views/fragments/crosswords/crosswordMetaHeader.scala.html +++ b/applications/app/views/fragments/crosswords/crosswordMetaHeader.scala.html @@ -35,14 +35,6 @@

@Html(crosswordPage.i

} -
- Download the Guardian app for a better puzzles experience -
- -
- Download the Guardian app for a better puzzles experience -
-
From 87bcae72b7268493604abdb3d2cf9539187959a4 Mon Sep 17 00:00:00 2001 From: Pete F <37048459+bryophyta@users.noreply.github.com> Date: Fri, 11 Oct 2024 12:56:09 +0100 Subject: [PATCH 4/6] Update applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html Co-authored-by: Simon Adcock --- .../fragments/crosswords/accessibleCrosswordContent.scala.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html b/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html index 5ff29298511..98658792c55 100644 --- a/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html +++ b/applications/app/views/fragments/crosswords/accessibleCrosswordContent.scala.html @@ -48,7 +48,7 @@

Solutions

Reveal solutions -