Info collected about a11y topics.
- The A11Y Project
- WebAIM: Web Accessibility In Mind
- Web Accessibility by Google (Udacity)
- Start Building Accessible Web Applications Today - by Marcy Sutton
| /** | |
| * This marquee stuff is deliberately low-tech. Use at your own risk. Licensed under whatever license you need. | |
| * | |
| * Usage: `marquee();` | |
| */ | |
| function marquee(behavior, direction) { | |
| var behaviors = { | |
| scroll: 'scroll', | |
| slide: 'slide', |
Info collected about a11y topics.
| // UPDATE: In 2023, you should probably stop using this! The narrow version of Safari that | |
| // does not support `nomodule` is probably not being used anywhere. The code below is left | |
| // for posterity. | |
| /** | |
| * Safari 10.1 supports modules, but does not support the `nomodule` attribute - it will | |
| * load <script nomodule> anyway. This snippet solve this problem, but only for script | |
| * tags that load external code, e.g.: <script nomodule src="nomodule.js"></script> | |
| * | |
| * Again: this will **not** prevent inline script, e.g.: |
| Dear soon-to-be-former user, | |
| We've got some fantastic news! Well, it's great news for us anyway. You, on | |
| the other hand, are fucked. | |
| We've just been acquired by: | |
| require "thread" | |
| $mutex = Mutex.new | |
| $total = 0 | |
| def incr | |
| $mutex.synchronize { $total += 1 } | |
| sleep | |
| end |
| /** | |
| * Note that this script is intended to be included at the *end* of the document, before </body> | |
| */ | |
| (function (window, document) { | |
| if ('open' in document.createElement('details')) return; | |
| // made global by myself to be reused elsewhere | |
| var addEvent = (function () { | |
| if (document.addEventListener) { | |
| return function (el, type, fn) { |