Deprecated: There is no direct Origami replacement. Formally: An experimental Origami component to implement a responsive crossword.
- set up the Origami Manual build process
- checkout clone of o-crossword repo
- cd to repo code
- check node and ruby are installed
- $
npm install -g gulp
- $
npm install -g origami-build-tools
- $
npm install -g bower
- As described in https://origami.ft.com/docs/tutorials/manual-build/#bower--the-origami-registry
- ensure you have ~/.bowerrc configured with
{
"registry": {
"search": [
"https://origami-bower-registry.ft.com",
"https://registry.bower.io"
]
}
}
- $
obt install
- $
obt build
- deploy locally as described in the Origami build tools doc
- $
obt demo --runServer --watch
- see a demo of it running at http://localhost:8999/demos/local/basic.html
- $
- Bower linking a component
- general Origami Developer Guide
- src/js/oCrossword.js
Portrait mode has been favoured, and made to work across Chrome, Safari, and Firefox (Internet Explorer still needs to be tested), which means landscape mode doesn't fit the page as nicely as it could. Note: control over page margins isn't possible in Safari.
- Toggle for changing side of preview bar
- Note pad for
- Touch/scroll functionality did not work on iPhone
NB: The preview bar refers to the green and blue clues thumbnail on small screen.
-
Ensure the element responds correctly to available space, never overflowing the container/viewport
-
Ensure
data-o-crossword-force-compact
still works. -
When on small screen ensure the preview bar is visible
-
When the preview bar is pressed a magnifying window is shown
-
When the preview bar is dragged vertically a magnifying window is shown
-
Ensure that the position in the preview bar matches what is shpwn in the window, check the beginning end and middle.
-
Ensure a clue is highlighted in green and is fully legible
-
Check that the Clue highlighted in green has the corresponding row highlighted.
-
The clue should also be written again in the clue display box below the table
-
swiping right on the preview box brings on the large window which can be scrolled
-
This box should be under the finger/cursor for the majority of the swipe
-
It should disappear if clicked on and the clicked on clue should be highlighted on the grid
-
tapping on the preview bar should also reveal this box to the tapped postion
-
tapping again again on the preview bar whilst the box is visible should scroll the box to that position
-
The grid should allow you to tap on a grid cell
-
This highlights it across (if available)
-
tapping on the same character again should highlight the other direction
-
tapping on another character in the highlighted word should select that character and keep the highlight the same
-
the grid you tapped on you can enter characters into
-
entering a character will replace the contents of the cell
-
the next cell will then be selected and ready for entering a character
-
clicking on the now selected cell should switch between across/row on that cell if available.
-
highlighted words can be navigated by pressing the arrow keys
-
pressing return exits the character entry
-
building from JSON
-
building from json with answers
This software is published by the Financial Times under the MIT licence.