Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/apps/system/js/accessibility.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/js/accessibility.js')
-rw-r--r--apps/system/js/accessibility.js19
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);
-});