diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-02-06 16:36:20 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2013-02-06 16:36:20 (GMT) |
commit | 66dae0ccbc23f4df612711a2e61fadd9b15feb91 (patch) | |
tree | a069ef55f4d97b6419f38d8ce86eb19f5cc1f1e7 /apps/system/js/accessibility.js | |
parent | b5b9e95e2f4c8ab19cef000c82fcfc0625c52666 (diff) |
Diffstat (limited to 'apps/system/js/accessibility.js')
-rw-r--r-- | apps/system/js/accessibility.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/apps/system/js/accessibility.js b/apps/system/js/accessibility.js deleted file mode 100644 index c2fa111..0000000 --- a/apps/system/js/accessibility.js +++ /dev/null @@ -1,19 +0,0 @@ -/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- / -/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ - -'use strict'; - -SettingsListener.observe('accessibility.invert', false, function(value) { - var screen = document.getElementById('screen'); - if (value) - screen.classList.add('accessibility-invert'); - else - screen.classList.remove('accessibility-invert'); -}); - -SettingsListener.observe('accessibility.screenreader', false, function(value) { - var event = document.createEvent('CustomEvent'); - event.initCustomEvent('mozContentEvent', true, true, - {type: 'accessibility-screenreader', enabled: value}); - window.dispatchEvent(event); -}); |