marubinotto / Piggydb

Piggydb is a Web notebook application that provides you with a platform to build your knowledge personally or collaboratively.
http://piggydb.net/
Apache License 2.0
149 stars 35 forks source link

Fake links to enable toggle with mouseless browsers #14

Open JustAnotherGuy opened 9 years ago

JustAnotherGuy commented 9 years ago
  1. The toggle button (up/down arrow) in view-header can now be accessed as a (JS) link.
  2. The fragment-tools can be toggled by an (empty) link at the right end of fragment-header Note: It is floated right to make it not collide with fragment id link. This will need to be fixed for RTL languages.

A bit hacky (I'm not fluent in JavaScript) but it works. Feel free to clean up/improve...

Tested with dwb.

User HowTo:

How to use it with dwb browser:

User loads piggydb and scrolls to the view-header: pdb_b1_1 User presses 'f' for 'follow hints', i.e. show labels on links that can be activated: pdb_b1_2 User types BD (code where the down-arrow is). The fragments-criteria is made visible: pdb_b1_3

User has a fragment header visible that they want to invoke the tools on: pdb_b2_1 User presses 'f' for 'follow hints', i.e. show labels on links that can be activated: pdb_b2_2 User chooses DR and the tools appear. pdb_b2_3 User can similarly again hide the tools.

PS: To improve our common knowledge network: see also note on interfaces and API for future version 7 in http://piggydb.lighthouseapp.com/projects/61149/tickets/68-accessibility-issues#ticket-68-2