Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 961 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 961 Bytes

prototype-a11y

accessibility functions for Prototype Javascript Framework

  • Prototype.a11y.prepareBuffer();
  • Prototype.a11y.updateBuffer(); updates virtual buffer for screenreader JAWS inspired by juicystudio
  • Prototype.a11y.fixFocus(); inspired by Paul Ratcliffe

new Element.Methods

  • Element.setTabIndex(index); crossbrowser implementation
  • Element.removeTabIndex(); crossbrowser implementation
  • Element.setFocus(miliseconds); delayed element.focus();

extended Element.Methods

  • Element.hide(); added aria-hidden attribute and tabindex -1
  • Element.show(); added aria-hidden attribute and tabindex

Credits

Created by Sindre Wimberger.