chao faf16d266e update | 3 maanden geleden | |
---|---|---|
.. | ||
libs | 3 maanden geleden | |
media | 3 maanden geleden | |
README.md | 3 maanden geleden | |
app.component.js | 3 maanden geleden | |
audio.service.js | 3 maanden geleden | |
clipboard.service.js | 3 maanden geleden | |
field-segment.component.js | 3 maanden geleden | |
messages.js | 3 maanden geleden | |
notifications.service.js | 3 maanden geleden | |
toolbox-tree.component.js | 3 maanden geleden | |
toolbox.component.js | 3 maanden geleden | |
translate.pipe.js | 3 maanden geleden | |
tree.service.js | 3 maanden geleden | |
utils.service.js | 3 maanden geleden | |
workspace-tree.component.js | 3 maanden geleden | |
workspace.component.js | 3 maanden geleden |
Google's Blockly is a web-based, visual programming editor that is accessible to blind users.
The code in this directory renders a version of the Blockly toolbox and workspace that is fully keyboard-navigable, and compatible with most screen readers.
In the future, Accessible Blockly may be modified to suit accessibility needs other than visual impairments. Note that deaf users are expected to continue using Blockly over Accessible Blockly.
The demo at blockly/demos/accessible covers the absolute minimum required to import Accessible Blockly into your web app. You will need to import the files in the same order as in the demo: utils.service.js will need to be the first Angular file imported.
When the DOMContentLoaded event fires, call ng.platform.browser.bootstrap() on the main component to be loaded. This will usually be blocklyApp.AppView, but if you have another component that wraps it, use that one instead.
The Accessible Blockly workspace comes with a customizable toolbar.
To customize the toolbar, you will need to declare an ACCESSIBLE_GLOBALS object in the global scope that looks like this:
var ACCESSIBLE_GLOBALS = {
mediaPathPrefix: null,
toolbarButtonConfig: []
};
The value of mediaPathPrefix should be the location of the accessible/media folder.
The value of 'toolbarButtonConfig' should be a list of objects, each representing buttons on the toolbar. Each of these objects should have four keys: