Notes and guide to Accessibility techniques.
- Roles MUST NOT change in the DOM. If needed, you'll need to remove the entire element and it's children and all a new element with the desired role.
Notes and guide to Accessibility techniques.
/******************************************* | |
* These items are in progress... | |
* | |
* Leave feedback in the comments section. | |
*******************************************/ |
function restroomEtiquette(you, restroom) { | |
while (true) { | |
if (you.needToGo === 1) { | |
if (you.okayWithUrinals && restroom.urinalAvailable()) { | |
var urinal = restroom.occupyAvailableUrinal(you); | |
you.evacuate(urinal); | |
urinal.flush(); |
#Mac OS X
function Vb(d) { | |
d = d | 0; | |
var e = 0, f = 0, h = 0, j = 0, k = 0, l = 0, m = 0, n = 0, | |
o = 0, p = 0, q = 0, r = 0, s = 0; | |
e = i; | |
i = i + 12 | 0; | |
f = e | 0; | |
h = d + 12 | 0; | |
j = c[h >> 2] | 0; | |
if ((j | 0) > 0) { |
This requires `brew install jq` which is a command json query. | |
I got this from @krisselden |
'use strict'; | |
var React = require('react/addons'); | |
var AnimateMixin = require('react-animate'); | |
/** | |
* Accordion object that maintains a list of content containers and their collapsed or expanded state | |
* @type {*|Function} | |
*/ | |
var Accordion = React.createClass({ | |
/** |
// Example | |
// app.js | |
document.addEventListener("DOMContentLoaded", function (e) { | |
m.route.mode = "hash"; | |
m.route(document.getElementById("application"), "/", { | |
"/": m.resolve("pages.home"), | |
"/findus": m.resolve("pages.findus") | |
}); | |
}); |
var animating = false; | |
// Define an animator consisting of optional incoming and outgoing animations. | |
// alwaysAnimate is false unless specified as true: false means an incoming animation will only trigger if an outgoing animation is also in progress. | |
// forcing dontClone to true means the outward animation will use the original element rather than a clone. This could improve performance by recycling elements, but can lead to trouble: clones have the advantage of being stripped of all event listeners. | |
function animator( incoming, outgoing, alwaysAnimate, dontClone ){ | |
// The resulting animator can be applied to any number of components | |
return function animate( x, y, z ){ | |
var config; | |
var parent; |