javascript:(function(){let l=document.all;for(let t=0,e=l.length;t<e;t++){let e=l[t].getAttribute("aria-label");e&&console.log(e)}})();
- Verify all ID refs for:
aria-labelledby
aria-describedby
export const ariaAnnounce = (message: string, manners = 'assertive'): HTMLElement => { | |
let announceTimeout: ReturnType<typeof setTimeout> | null; | |
announceTimeout = null; | |
let announcer: HTMLElement | null = document.querySelector('#announce-this'); | |
const clearAnnouncer = (): HTMLElement => { | |
if (announcer) { | |
announcer.setAttribute('aria-live', 'off'); |
// Hide and unhide from assistive technology (AT) | |
const hideFromAT = function(el){ | |
const { body } = document; | |
let currentEl = el; | |
// If there are any nodes with oldAriaHiddenVal set, we should | |
// bail, since it has already been done. | |
const hiddenEl = document.querySelector('[data-original-aria-hidden]'); |
<html> | |
<head></head> | |
<body> | |
<section> | |
</section> | |
<div | |
</body> | |
</html> |
tell application "Terminal" | |
activate | |
do script "cd ~/path/to/dir && http-server" | |
end tell | |
tell application "Google Chrome" | |
open location "http://mydomain.com/" | |
delay 1 | |
end tell |
var access = function(el, place_focus_before) { | |
var focus_el, focus_method, ogti, onblur_el, onblur_temp_el, temp_el; | |
onblur_el = function(e) { | |
if (el.getAttribute('data-ogti')) { | |
el.setAttribute('tabindex', ogti); | |
} else { | |
el.removeAttribute('tabindex'); | |
} | |
el.removeAttribute('data-ogti'); | |
el.removeEventListener('focusout', focus_method); |
import Ember from 'ember'; | |
import {announce_view_loaded} from './../helpers/utils'; | |
export default Ember.Route.extend({ | |
renderTemplate(args) { | |
this._super(...args); | |
//this.render('about'); | |
Ember.run.scheduleOnce('afterRender', this, function() { | |
console.log('afterRender'); | |
announce_view_loaded(); |