npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@financial-times/o-crossword

v1.10.6

Published

An experimental Origami component to implement a responsive crossword.

Downloads

13

Readme

o-crossword

An experimental Origami component to implement a responsive crossword.

To build this locally

  • 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"
		]
	}
}

main code

  • src/js/oCrossword.js

Print view

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.

Old notes

Features it could do with:

  • Toggle for changing side of preview bar
  • Note pad for
  • Touch/scroll functionality did not work on iPhone

Testing Script

NB: The preview bar refers to the green and blue clues thumbnail on small screen.

  1. Ensure the element responds correctly to available space, never overflowing the container/viewport

  2. Ensure data-o-crossword-force-compact still works.

  3. When on small screen ensure the preview bar is visible

  4. When the preview bar is pressed a magnifying window is shown

  5. When the preview bar is dragged vertically a magnifying window is shown

  6. Ensure that the position in the preview bar matches what is shpwn in the window, check the beginning end and middle.

  7. Ensure a clue is highlighted in green and is fully legible

  8. Check that the Clue highlighted in green has the corresponding row highlighted.

  9. The clue should also be written again in the clue display box below the table

  10. swiping right on the preview box brings on the large window which can be scrolled

  11. This box should be under the finger/cursor for the majority of the swipe

  12. It should disappear if clicked on and the clicked on clue should be highlighted on the grid

  13. tapping on the preview bar should also reveal this box to the tapped postion

  14. tapping again again on the preview bar whilst the box is visible should scroll the box to that position

  15. The grid should allow you to tap on a grid cell

  16. This highlights it across (if available)

  17. tapping on the same character again should highlight the other direction

  18. tapping on another character in the highlighted word should select that character and keep the highlight the same

  19. the grid you tapped on you can enter characters into

  20. entering a character will replace the contents of the cell

  21. the next cell will then be selected and ready for entering a character

  22. clicking on the now selected cell should switch between across/row on that cell if available.

  23. highlighted words can be navigated by pressing the arrow keys

  24. pressing return exits the character entry

  25. building from JSON

  26. building from json with answers


Licence

This software is published by the Financial Times under the MIT licence.