Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nigelramsay/access_keys
Finds and displays access keys in webpages
https://github.com/nigelramsay/access_keys
Last synced: about 2 months ago
JSON representation
Finds and displays access keys in webpages
- Host: GitHub
- URL: https://github.com/nigelramsay/access_keys
- Owner: nigelramsay
- License: mit
- Created: 2009-04-07T03:12:04.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-04-12T01:46:52.000Z (over 15 years ago)
- Last Synced: 2023-04-11T17:06:08.487Z (over 1 year ago)
- Homepage: http://www.abletech.co.nz/2009/04/display-access-keys-automatically/
- Size: 90.8 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: MIT-LICENSE
Awesome Lists containing this project
README
ACCESS KEYS HELPER
------------------This javascript routine parses the DOM tree looking for buttons and links that have an access key defined. The access keys for these elements are then displayed either:
1. Inside an "access_keys" element (if one exists), or
2. At the bottom of the BODY element, inside a newly created "access_keys" elementREQUIREMENTS
* Prototype
* JQuery (if using jQuery - note this example is to show jQuery idiom - you could also pass in function for the formating of the key list - the default format here is promiscuous and works with the current example but may fall over on other html - final note, this code should be TDD/BDD'd)INSTALLATION
1. copy the access_keys.js file into your javascripts folder
2. include a reference to the file inside your HTMLSee the demo.html file for example usage.
SUPPORTED BROWSERS
Have successfully tested on these platforms:
* Internet Explorer versions 6, 7 and 8
* Firefox on Windows and Mac
* Safari on Windows and Mac
* Google ChromeCOPYRIGHT
Released as free software with the permission of Radio New Zealand.
Copyright (c) 2009 Radio New Zealand Limited
http://www.radionz.co.nz/AUTHOR
Nigel Ramsay of Able Technology Limited
http://www.abletech.co.nz/TODO LIST
1. Detect browser type and platform, and display appropriate modifier keys
2. Write a plain version
3. Write a version that runs from a Bookmarklet
4. Demonstrate code through TDD/BDD