marxjohnson/moodle-block_accessibility — pull request #39 by zherman (2014-02-07 19:30:22+00:00)
Title: bug fixes for issues 36,37,38

The userstyles.php file has been rewritten to output a CVS file with information on the font size and color scheme chosen. The javascript reads this file and uses the values to enable the proper settings. Prior to this change, styles were being written with an echo statement. This approach conflicted with the stylesheets created in module.js. I removed the requires->css call in block_accessibility.php because it is no longer needed (since userstyles.php no longer is a css file).

In module.js I created arrays to hold styles (a string of CSS) and stylesheets (a JavaScript stylesheet). I rewrote the javascript that handles the changing of color schemes to utilize the array structure. I made this change so in the future more color schemes can be added with minimal changes to the code (change the variable numberOfColours and push a style on the styles array is all you need to do). I edited the stylesheets to exclude css styles for TinyMCE editor so the icons appear in the TinyMCE editor. The exclusion will only work in browsers that support the :not() selector in CSS