You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by rg...@apache.org on 2011/06/24 15:31:44 UTC

svn commit: r1139303 - in /incubator/wookie/trunk/scratchpad/widgets/accessibility_controls: ./ images/ legal/ lib/ scripts/ style/

Author: rgardler
Date: Fri Jun 24 13:31:43 2011
New Revision: 1139303

URL: http://svn.apache.org/viewvc?rev=1139303&view=rev
Log:
added accessibility controls widget. Contributed by Mark Johnson (WOOKIE-218)

Added:
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/build.xml   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/config.xml   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/atbar.png   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/document-save-grey.png   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon.png   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon_16x16.png   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon_32x32.png   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/index.html   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/legal/
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/legal/LICENSE_YUI.txt   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/lib/
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/controller.js   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/properties.js   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/ui.js   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/yui-min.js   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/controls.css   (with props)
    incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/screen.css   (with props)

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/build.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/build.xml?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/build.xml (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/build.xml Fri Jun 24 13:31:43 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<project default="build-widget" basedir="." name="widget build file">
+	<property name="wookie.widgets.dir" location="../"/>
+	<property name="widget.shortname" value="accessibility_controls"/>
+	
+	<import file="../build.xml"/>
+</project>
\ No newline at end of file

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/config.xml
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/config.xml?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/config.xml (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/config.xml Fri Jun 24 13:31:43 2011
@@ -0,0 +1,46 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<widget xmlns="http://www.w3.org/ns/widgets"
+ 		id="http://wookie.apache.org/widgets/accessibility_controls"
+ 		version="0.1"
+        width="320"
+        height="480"
+        >
+  <name>accessibility_controls</name>
+  <description>A allows browser settings to be manipulated to allow users to set accesibility options for a site.</description>
+  <content src="index.html"/>
+  <icon src="images/icon.png"/>
+  <author>Apache Wookie (Incubating) Team</author>
+  <licence>Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.</licence>
+
+</widget>
+
+
+

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/atbar.png
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/atbar.png?rev=1139303&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/atbar.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/document-save-grey.png
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/document-save-grey.png?rev=1139303&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/document-save-grey.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon.png
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon.png?rev=1139303&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon_16x16.png
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon_16x16.png?rev=1139303&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon_16x16.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon_32x32.png
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon_32x32.png?rev=1139303&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/images/icon_32x32.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/index.html
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/index.html?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/index.html (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/index.html Fri Jun 24 13:31:43 2011
@@ -0,0 +1,100 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+	<head>
+        <meta http-equiv="pragma" content="no-cache"/>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+        <script type="text/javascript" src="scripts/ui.js" charset="utf-8"></script>
+        <script type="text/javascript" src="scripts/accessibility.js" charset="utf-8"></script>
+        <script type="text/javascript" src="scripts/properties.js" charset="utf-8"></script>  
+        <script type="text/javascript" src="scripts/controller.js" charset="utf-8"></script> 
+        <script type="text/javascript" src="scripts/yui-min.js"></script>
+        <link rel="stylesheet" type="text/css" href="style/screen.css" />
+	<link rel="stylesheet" type="text/css" href="style/controls.css" />
+		<title>accessibility_controls</title>
+	</head>
+	<body>
+	  <div id="wookie-widget">
+		<div id="wookie-toolbar"><img id="wookie-widget-icon" src="images/icon_16x16.png" onclick="wookieShowSettings()" alt="accessibility_controls Icon"/>accessibility_controls</div>
+		<div id="wookie-content">
+		  <h2>accessibility_controls</h2>
+		  <div id="requiresjavascript"><h3>Javascript doesn't appear to be enabled on your browser. This widget will not function without Javascript, please enable it.</h3></div>
+		
+		  <div id="accessibility_controls" class="content">
+      <ul id="block_accessibility_textresize" class="button_row">
+        <li class="access-button">
+          <a title="Decrease Text Size" id="block_accessibility_dec">A-</a>
+        </li>
+        <li class="access-button">
+          <a id="block_accessibility_reset" title="Reset Text Size (Clears Saved Setting)">A</a>
+        </li>
+        <li class="access-button">
+          <a title="Increase Text Size" id="block_accessibility_inc">A+</a>
+        </li>
+        <!--li class="access-button">
+          <a title="Save Setting" id="block_accessibility_save" class="disabled">
+	      <img class="inner" src="images/document-save-grey.png">
+          </a>
+        </li-->
+      </ul>
+    
+      <ul id="block_accessibility_changecolour">
+        <li class="access-button">
+          <a id="block_accessibility_colour1"  onclick="change_size('dec')">
+            A
+          </a>
+        </li>
+        <li class="access-button">
+          <a id="block_accessibility_colour2">
+            A
+          </a>
+        </li>
+        <li class="access-button">
+          <a id="block_accessibility_colour3">
+            A
+          </a>
+        </li>
+        <li class="access-button">
+          <a id="block_accessibility_colour4">
+            A
+          </a>
+        </li>
+      </ul>
+  
+    <div id="block_accessibility_message" class="clearfix"></div>
+
+      <input value="Launch ATbar" id="block_accessibility_launchtoolbar" class="atbar_control" type="image" src="images/atbar.png" alt="Launch ATbar">
+      <input value="1" id="atbar_auto" name="atbar_auto" class="atbar_control" type="checkbox">
+      <label for="atbar_auto" class="atbar_control">(always?)</label>
+    </div>
+    
+  </div>
+</div>
+	  <script type="text/javascript">
+	  YUI().use('base', 'node', 'stylesheet', function(Y) {
+		  Accessibility.init(Y);
+		  });
+	  </script>
+	</body>
+<!-- fix forIE cashing - must go here even though its in the wrong place
+<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
+</HEAD>
+-->
+</html>
+
+ 

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/legal/LICENSE_YUI.txt
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/legal/LICENSE_YUI.txt?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/legal/LICENSE_YUI.txt (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/legal/LICENSE_YUI.txt Fri Jun 24 13:31:43 2011
@@ -0,0 +1,23 @@
+Copyright (c) 2011, Yahoo! Inc.
+All rights reserved.
+
+Redistribution and use of this software in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+    Redistributions of source code must retain the above copyright notice, this list of 
+    conditions and the following disclaimer.
+    Redistributions in binary form must reproduce the above copyright notice, this list 
+    of conditions and the following disclaimer in the documentation and/or other materials 
+    provided with the distribution.
+    Neither the name of Yahoo! Inc. nor the names of its contributors may be used to 
+    endorse or promote products derived from this software without specific prior written 
+    permission of Yahoo! Inc.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
+AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 
+IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 
+THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/legal/LICENSE_YUI.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/controller.js
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/controller.js?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/controller.js (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/controller.js Fri Jun 24 13:31:43 2011
@@ -0,0 +1,342 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+Accessibility = {
+
+        stylesheet: '',
+
+        defaultsize: 0,
+
+        colour2: '',
+
+        colour3: '',
+
+        colour4: '',
+        
+        sizes: [77,85,93,77,85,93,100,108,116,123.1,131,138.5,146.5,153.9,161.6,167,174,182,189,197],
+
+        watch: null,
+
+	doc: '',
+
+        init: function(Y, autoload_atbar) {
+            this.Y = Y;
+	    Y.one('#requiresjavascript').hide();
+            //sheetnode = Y.one('link[href='+M.cfg.wwwroot+'/blocks/accessibility/userstyles.php]');
+            //this.stylesheet = Y.StyleSheet(sheetnode);
+	    this.doc = window.parent.document;
+	    
+            this.colour2 = Y.Node.create('<style id="a11ysheet" type="text/css">*{background-color: #ffc !important;background-image:none !important;}</style>');
+            this.colour3 = Y.Node.create('<style id="a11ysheet" type="text/css">*{background-color: #9cf !important;background-image:none !important;}</style>');
+            this.colour4 = Y.Node.create('<style id="a11ysheet" type="text/css">*{background-color: #000 !important;background-image:none !important;color: #ff0 !important;}a{color: #f00 !important;}.block_accessibility .outer{border-color: white;}</style>');
+            this.defaultsize = widget.preferences.getItem('size');
+            if (typeof(currentsize) == "undefined" || currentsize == null) {
+                this.defaultsize = 100;
+            }
+	    console.log(Y.one(this.doc.body).getStyle('fontSize'));
+            Y.one(this.doc.body).setStyle('fontSize', this.defaultsize+'%');
+      
+            // Attach the click handler
+            Y.all('#block_accessibility_textresize a').on('click', function(e) {
+                            Accessibility.changesize(e.target);
+            });
+
+	    
+            Y.all('#block_accessibility_changecolour a').on('click', function(e) {
+                            Accessibility.changecolour(e.target);
+            });
+
+            Y.one('#atbar_auto').on('click', function(e) {
+                if (e.target.get('checked')) {
+                    Accessibility.atbar_autoload('on');
+                } else {
+                    Accessibility.atbar_autoload('off');
+                }
+            });
+
+            // Remove href attributes from anchors
+            Y.all('.block_accessibility .outer').each(function(node){
+                node.removeAttribute('href');
+            });
+
+            // Create Bookmarklet-style link using code from ATbar site
+            // http://access.ecs.soton.ac.uk/StudyBar/versions
+            var launchbutton = Y.one('#block_accessibility_launchtoolbar');
+            launchbutton.on('click', function() {            
+               /* (d = document;
+                lf = d.createElement('script');
+                lf.type = 'text/javascript';
+                lf.id = 'ToolbarStarter';
+                lf.text = 'var StudyBarNoSandbox = true';
+                d.getElementsByTagName('head')[0].appendChild(lf);
+                jf = d.createElement('script');
+                jf.src = M.cfg.wwwroot+'/blocks/accessibility/toolbar/client/JTToolbar.user.js';
+                jf.type = 'text/javascript';
+                jf.id = 'ToolBar';
+                d.getElementsByTagName('head')[0].appendChild(jf);
+                // Hide block buttons until ATbar is closed
+                Y.one('#block_accessibility_textresize').setStyle('display', 'none');
+                Y.one('#block_accessibility_changecolour').setStyle('display', 'none');
+                Accessibility.watch_atbar_for_close();*/
+                alert('Load ATbar');
+            });
+
+            if (autoload_atbar) {            
+                /*d = document;
+                lf = d.createElement('script');
+                lf.type = 'text/javascript';
+                lf.id = 'ToolbarStarter';
+                lf.text = 'var StudyBarNoSandbox = true';
+                d.getElementsByTagName('head')[0].appendChild(lf);
+                jf = d.createElement('script');
+                jf.src = M.cfg.wwwroot+'/blocks/accessibility/toolbar/client/JTToolbar.user.js';
+                jf.type = 'text/javascript';
+                jf.id = 'ToolBar';
+                d.getElementsByTagName('head')[0].appendChild(jf);
+                // Hide block buttons until ATbar is closed
+                Y.one('#block_accessibility_textresize').setStyle('display', 'none');
+                Y.one('#block_accessibility_changecolour').setStyle('display', 'none');
+                setTimeout("Accessibility.watch_atbar_for_close();", 1000); // Wait 1 second to give the bar a chance to load*/
+                alert('Autoload ATBar');
+            }
+            
+        },
+
+
+        /**
+         * Displays the specified message in the block's footer
+         *
+         * @param {String} msg the message to display
+         */
+        show_message: function(msg) {
+            this.Y.one('#block_accessibility_message').setContent(msg);
+        },
+
+        /**
+         * Calls the database script on the server to save the current setting to
+         * the database. Displays a message on success, or an error on failure.
+         *
+         * @requires accessibility_show_message
+         * @requires webroot
+         *
+         */
+        savesize: function() {
+            /*this.Y.io(M.cfg.wwwroot+'/blocks/accessibility/database.php', {
+                data: 'op=save&size=true&scheme=true',
+                method: 'get',
+                on: {
+                    success: function(id, o) {
+                        Accessibility.show_message(M.util.get_string('saved', 'block_accessibility'));
+                        setTimeout("Accessibility.show_message('')", 5000);
+                    },
+                    failure: function(id, o) {
+                        alert(M.util.get_string('jsnosave', 'block_accessibility')+' '+o.status+' '+o.statusText);
+                    }
+                }
+            });*/
+            alert('Save size');
+        },
+
+        /**
+         * Calls the database script on the server to clear the current size setting from
+         * the database. Displays a message on success, or an error on failure. 404 doesn't
+         * count as a failure, as this just means there's no setting to be cleared
+         *
+         * @requires show_message()
+         *
+         */
+        resetsize: function() {
+            /*this.Y.io(M.cfg.wwwroot+'/blocks/accessibility/database.php', {
+                data: 'op=reset&size=true',
+                method: 'get',
+                on: {
+                    success: function(id, o) {
+                        Accessibility.show_message(M.util.get_string('reset', 'block_accessibility'));
+                        setTimeout("Accessibility.show_message('')", 5000);
+                    },
+                    failure: function(id, o) {
+                        if (o.status != '404') {
+                            alert(M.util.get_string('jsnosizereset', 'block_accessibility')+' '+o.status+' '+o.statusText);
+                        }
+                    }
+               }
+            });*/
+            alert('Reset Size');
+        },
+
+        /**
+         * Calls the database script on the server to clear the current colour scheme setting from
+         * the database. Displays a message on success, or an error on failure. 404 doesn't
+         * count as a failure, as this just means there's no setting to be cleared
+         *
+         * @requires show_message()
+         *
+         */
+         resetscheme: function() {
+            /*this.Y.io(M.cfg.wwwroot+'/blocks/accessibility/database.php', {
+                data: 'op=reset&scheme=true',
+                method: 'get',
+                on: {
+                    success: function(id, o) {
+                        Accessibility.show_message(M.util.get_string('reset', 'block_accessibility'));
+                        setTimeout("Accessibility.show_message('')", 5000);
+                    },
+                    failure: function(id, o) {
+                        if (o.status != '404') {
+                            alert(M.util.get_string('jsnocolourreset', 'block_accessibility')+': '+o.status+' '+o.statusText);
+                        }
+                    }
+               }
+            });*/
+        },
+
+        /**
+         * Enables or disables the buttons as specified
+         *
+         * @requires webroot
+         *
+         * @param {String} id the ID of the button to enable/disable
+         * @param {String} op the operation we're doing, either 'on' or 'off'.
+         *
+         */
+        toggle_textsizer: function(id, op) {
+            var button = this.Y.one('#block_accessibility_'+id);
+            if (op == 'on') {
+                if (button.hasClass('disabled')) {
+                    button.removeClass('disabled');
+                }
+                if (button.get('id') == 'block_accessibility_save') {
+                    button.get('firstElementChild').get('firstElementChild').set('src', M.cfg.wwwroot+'/blocks/accessibility/pix/document-save.png');
+                }
+            } else if (op == 'off') {
+                if(!button.hasClass('disabled')) {
+                    button.addClass('disabled');
+                }
+                if (button.get('id') == 'block_accessibility_save') {
+                    button.get('firstElementChild').get('firstElementChild').set('src', M.cfg.wwwroot+'/blocks/accessibility/pix/document-save-grey.png');
+                }
+            }
+        },
+
+        /**
+         * This handles clicks from the buttons. If increasing, decreasing or
+         * resetting size, it calls changesize.php via AJAX and sets the text
+         * size to the number returned from the server. If saving the size, it
+         * calls accessibility_savesize.
+         * Also enables/disables buttons as required when sizes are changed.
+         *
+         * @requires accessibility_toggle_textsizer
+         * @requires accessibility_savesize
+         * @requires accessibility_resetsize
+         * @requires stylesheet
+         * @requires webroot
+         *
+         * @param {Node} button the button that was pushed
+         *
+         */
+        changesize: function(button) {
+            Y = this.Y;
+            var currentsize = widget.preferences.getItem('size');
+            if (typeof(currentsize) == "undefined" || currentsize == null) {
+                currentsize = this.defaultsize;
+            }
+            
+            switch (button.get('id')) {
+                case "block_accessibility_inc":
+		    if (currentsize < 197) {
+			var newsize = this.sizes[this.sizes.indexOf(currentsize)+1];
+			widget.preferences.setItem('size', newsize);
+			Y.one(window.parent.document.body).setStyle('fontSize', newsize+'%')
+		    }
+                    break;
+		    
+                case "block_accessibility_dec":
+		    if (currentsize > 77) {
+			var newsize = this.sizes[this.sizes.indexOf(currentsize)-1];
+			widget.preferences.setItem('size', newsize);
+			Y.one(window.parent.document.body).setStyle('fontSize', newsize+'%');
+		    }
+                    break;
+		    
+                case "block_accessibility_reset":
+                    var newsize = 100;                    
+                    widget.preferences.setItem('size', null);
+                    Y.one(window.parent.document.body).setStyle('fontSize', newsize+'%');
+                    break;
+
+                case "block_accessibility_save":
+                    Accessibility.savesize();
+                    break;
+            
+            }
+        },
+
+        /**
+         * This handles clicks from the colour scheme buttons.
+         * We start by getting the scheme number from the theme button's ID.
+         * We then get the elements that need dynamically re-styling via their
+         * CSS selectors and loop through the arrays to style them appropriately.
+         *
+         * @requires accessibility_toggle_textsizer
+         * @requires accessibility_resetscheme
+         * @requires stylesheet
+         * @requires webroot
+         *
+         * @param {String} button - the button that was clicked.
+         *
+         */
+
+        changecolour: function(button) {
+            Y = this.Y;
+            scheme = button.get('id').substring(26);
+
+	    switch (scheme) {
+		case '1':
+		    var head = Y.one(this.doc.head);
+		    head.removeChild(head.one('#a11ysheet')); 
+		    break;
+		    
+		case '2':
+		    Y.one(this.doc.head).appendChild(this.colour2);
+		    break;
+
+		case '3':
+		    Y.one(this.doc.head).appendChild(this.colour3);
+		    break;
+
+		case '4':
+		    Y.one(this.doc.head).appendChild(this.colour4);
+		break;
+	    }
+        },
+
+        atbar_autoload: function(op) {
+            if (op == 'on') {
+            } else if (op == 'off') {
+            }
+        },
+
+        watch_atbar_for_close: function() {
+            Y = this.Y;
+            this.watch = setInterval(function() {
+                if (!Y.one('#sbar')) {
+                    Y.one('#block_accessibility_textresize').setStyle('display', 'block');
+                    Y.one('#block_accessibility_changecolour').setStyle('display', 'block');
+                    clearInterval(Accessibility.watch);
+                }
+            }, 1000);
+        }
+    }

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/controller.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/properties.js
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/properties.js?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/properties.js (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/properties.js Fri Jun 24 13:31:43 2011
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+//
+// Helper methods for manipulating the widget properties
+//
+
+/**
+ * Save the properties and take any appropriate actions then display the
+ * main page again.
+ */
+function saveProperties() {
+    var text = dwr.util.getValue("wookie-template-property-content");
+    Widget.preferences.setItem("content", text);
+    wookieShowMain();
+}
+

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/properties.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/ui.js
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/ui.js?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/ui.js (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/ui.js Fri Jun 24 13:31:43 2011
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Helper methods for manipulating the widget UI.
+ */
+
+
+function wookieShowSettings(event) {
+	var elemContent = document.getElementById("wookie-content");
+	var elemSettings = document.getElementById("wookie-settings");
+	
+	var elemContentProperty = document.getElementById("wookie-template-property-content");
+	elemContentProperty.value = elemContent.innerHTML;
+	
+	elemContent.style.display="none";
+	elemSettings.style.display="block";
+}
+
+function wookieShowMain(event) {
+	var content = Widget.preferences.getItem("content");
+	var elemContent = document.getElementById("wookie-content");
+	elemContent.innerHTML = content;
+	
+	var elemSettings = document.getElementById("wookie-settings");
+	elemContent.style.display="block";
+	elemSettings.style.display="none";	
+}
+
+function change_size(op) {
+	var doc = window.parent.document;
+	doc.getElementById('pagetitle').innerHTML = 'Hello!';
+}
+

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/ui.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/yui-min.js
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/yui-min.js?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/yui-min.js (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/yui-min.js Fri Jun 24 13:31:43 2011
@@ -0,0 +1,13 @@
+/*
+Copyright (c) 2010, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.com/yui/license.html
+version: 3.3.0
+build: 3167
+*/
+if(typeof YUI!="undefined"){YUI._YUI=YUI;}var YUI=function(){var c=0,f=this,b=arguments,a=b.length,e=function(h,g){return(h&&h.hasOwnProperty&&(h instanceof g));},d=(typeof YUI_config!=="undefined")&&YUI_config;if(!(e(f,YUI))){f=new YUI();}else{f._init();if(YUI.GlobalConfig){f.applyConfig(YUI.GlobalConfig);}if(d){f.applyConfig(d);}if(!a){f._setup();}}if(a){for(;c<a;c++){f.applyConfig(b[c]);}f._setup();}f.instanceOf=e;return f;};(function(){var p,b,q="3.3.0",h=".",n="http://yui.yahooapis.com/",t="yui3-js-enabled",l=function(){},g=Array.prototype.slice,r={"io.xdrReady":1,"io.xdrResponse":1,"SWF.eventHandler":1},f=(typeof window!="undefined"),e=(f)?window:null,v=(f)?e.document:null,d=v&&v.documentElement,a=d&&d.className,c={},i=new Date().getTime(),m=function(z,y,x,w){if(z&&z.addEventListener){z.addEventListener(y,x,w);}else{if(z&&z.attachEvent){z.attachEvent("on"+y,x);}}},u=function(A,z,y,w){if(A&&A.removeEventListener){try{A.removeEventListener(z,y,w);}catch(x){}}else{if(A&&A
 .detachEvent){A.detachEvent("on"+z,y);}}},s=function(){YUI.Env.windowLoaded=true;YUI.Env.DOMReady=true;if(f){u(window,"load",s);}},j=function(y,x){var w=y.Env._loader;if(w){w.ignoreRegistered=false;w.onEnd=null;w.data=null;w.required=[];w.loadType=null;}else{w=new y.Loader(y.config);y.Env._loader=w;}return w;},o=function(y,x){for(var w in x){if(x.hasOwnProperty(w)){y[w]=x[w];}}},k={success:true};if(d&&a.indexOf(t)==-1){if(a){a+=" ";}a+=t;d.className=a;}if(q.indexOf("@")>-1){q="3.2.0";}p={applyConfig:function(D){D=D||l;var y,A,z=this.config,B=z.modules,x=z.groups,C=z.rls,w=this.Env._loader;for(A in D){if(D.hasOwnProperty(A)){y=D[A];if(B&&A=="modules"){o(B,y);}else{if(x&&A=="groups"){o(x,y);}else{if(C&&A=="rls"){o(C,y);}else{if(A=="win"){z[A]=y.contentWindow||y;z.doc=z[A].document;}else{if(A=="_yuid"){}else{z[A]=y;}}}}}}}if(w){w._config(D);}},_config:function(w){this.applyConfig(w);},_init:function(){var y,z=this,w=YUI.Env,x=z.Env,A;z.version=q;if(!x){z.Env={mods:{},versions:{
 },base:n,cdn:n+q+"/build/",_idx:0,_used:{},_attached:{},_yidx:0,_uidx:0,_guidp:"y",_loaded:{},serviced:{},getBase:w&&w.getBase||function(G,F){var B,C,E,H,D;C=(v&&v.getElementsByTagName("script"))||[];for(E=0;E<C.length;E=E+1){H=C[E].src;if(H){D=H.match(G);B=D&&D[1];if(B){y=D[2];if(y){D=y.indexOf("js");if(D>-1){y=y.substr(0,D);}}D=H.match(F);if(D&&D[3]){B=D[1]+D[3];}break;}}}return B||x.cdn;}};x=z.Env;x._loaded[q]={};if(w&&z!==YUI){x._yidx=++w._yidx;x._guidp=("yui_"+q+"_"+x._yidx+"_"+i).replace(/\./g,"_");}else{if(YUI._YUI){w=YUI._YUI.Env;x._yidx+=w._yidx;x._uidx+=w._uidx;for(A in w){if(!(A in x)){x[A]=w[A];}}delete YUI._YUI;}}z.id=z.stamp(z);c[z.id]=z;}z.constructor=YUI;z.config=z.config||{win:e,doc:v,debug:true,useBrowserConsole:true,throwFail:true,bootstrap:true,cacheUse:true,fetchCSS:true};z.config.base=YUI.config.base||z.Env.getBase(/^(.*)yui\/yui([\.\-].*)js(\?.*)?$/,/^(.*\?)(.*\&)(.*)yui\/yui[\.\-].*js(\?.*)?$/);if(!y||(!("-min.-debug.").indexOf(y))){y="-min.";}z.confi
 g.loaderPath=YUI.config.loaderPath||"loader/loader"+(y||"-min.")+"js";},_setup:function(B){var x,A=this,w=[],z=YUI.Env.mods,y=A.config.core||["get","rls","intl-base","loader","yui-log","yui-later","yui-throttle"];for(x=0;x<y.length;x++){if(z[y[x]]){w.push(y[x]);}}A._attach(["yui-base"]);A._attach(w);},applyTo:function(C,B,y){if(!(B in r)){this.log(B+": applyTo not allowed","warn","yui");return null;}var x=c[C],A,w,z;if(x){A=B.split(".");w=x;for(z=0;z<A.length;z=z+1){w=w[A[z]];if(!w){this.log("applyTo not found: "+B,"warn","yui");}}return w.apply(x,y);}return null;},add:function(x,C,B,w){w=w||{};var A=YUI.Env,D={name:x,fn:C,version:B,details:w},E,z,y=A.versions;A.mods[x]=D;y[B]=y[B]||{};y[B][x]=D;for(z in c){if(c.hasOwnProperty(z)){E=c[z].Env._loader;if(E){if(!E.moduleInfo[x]){E.addModule(w,x);}}}}return this;},_attach:function(w,C){var F,A,J,x,I,y,z,L=YUI.Env.mods,B=this,E,D=B.Env._attached,G=w.length,K;for(F=0;F<G;F++){if(!D[w[F]]){A=w[F];J=L[A];if(!J){K=B.Env._loader;if(!K
 ||!K.moduleInfo[A]){B.message("NOT loaded: "+A,"warn","yui");}}else{D[A]=true;x=J.details;I=x.requires;y=x.use;z=x.after;if(I){for(E=0;E<I.length;E++){if(!D[I[E]]){if(!B._attach(I)){return false;}break;}}}if(z){for(E=0;E<z.length;E++){if(!D[z[E]]){if(!B._attach(z)){return false;}break;}}}if(y){for(E=0;E<y.length;E++){if(!D[y[E]]){if(!B._attach(y)){return false;}break;}}}if(J.fn){try{J.fn(B,A);}catch(H){B.error("Attach error: "+A,H,A);return false;}}}}}return true;},use:function(){var w=g.call(arguments,0),z=w[w.length-1],y=this,x;if(y.Lang.isFunction(z)){w.pop();}else{z=null;}if(y._loading){y._useQueue=y._useQueue||new y.Queue();y._useQueue.add([w,z]);}else{x=w.join();if(y.config.cacheUse&&y.Env.serviced[x]){y._notify(z,k,w);}else{y._use(w,function(B,A){if(B.config.cacheUse){B.Env.serviced[x]=true;}B._notify(z,A,w);});}}return y;},_notify:function(z,w,x){if(!w.success&&this.config.loadErrorFn){this.config.loadErrorFn.call(this,this,z,w,x);}else{if(z){try{z(this,w);}catch(y){
 this.error("use callback error",y,x);}}}},_use:function(y,A){if(!this.Array){this._attach(["yui-base"]);}var L,F,M,x=this,N=YUI.Env,z=N.mods,w=x.Env,C=w._used,J=N._loaderQueue,Q=y[0],E=x.Array,O=x.config,D=O.bootstrap,K=[],H=[],P=true,B=O.fetchCSS,I=function(S,R){if(!S.length){return;}E.each(S,function(V){if(!R){H.push(V);}if(C[V]){return;}var T=z[V],W,U;if(T){C[V]=true;W=T.details.requires;U=T.details.use;}else{if(!N._loaded[q][V]){K.push(V);}else{C[V]=true;}}if(W&&W.length){I(W);}if(U&&U.length){I(U,1);}});},G=function(V){var T=V||{success:true,msg:"not dynamic"},S,R,U=true,W=T.data;x._loading=false;if(W){R=K;K=[];H=[];I(W);S=K.length;if(S){if(K.sort().join()==R.sort().join()){S=false;}}}if(S&&W){x._loading=false;x._use(y,function(){if(x._attach(W)){x._notify(A,T,W);}});}else{if(W){U=x._attach(W);}if(U){x._notify(A,T,y);}}if(x._useQueue&&x._useQueue.size()&&!x._loading){x._use.apply(x,x._useQueue.next());}};if(Q==="*"){P=x._attach(x.Object.keys(z));if(P){G();}return x;}if(
 D&&x.Loader&&y.length){F=j(x);F.require(y);F.ignoreRegistered=true;
+F.calculate(null,(B)?null:"js");y=F.sorted;}I(y);L=K.length;if(L){K=x.Object.keys(E.hash(K));L=K.length;}if(D&&L&&x.Loader){x._loading=true;F=j(x);F.onEnd=G;F.context=x;F.data=y;F.ignoreRegistered=false;F.require(y);F.insert(null,(B)?null:"js");}else{if(L&&x.config.use_rls){x.Get.script(x._rls(y),{onEnd:function(R){G(R);},data:y});}else{if(D&&L&&x.Get&&!w.bootstrapped){x._loading=true;M=function(){x._loading=false;J.running=false;w.bootstrapped=true;if(x._attach(["loader"])){x._use(y,A);}};if(N._bootstrapping){J.add(M);}else{N._bootstrapping=true;x.Get.script(O.base+O.loaderPath,{onEnd:M});}}else{P=x._attach(y);if(P){G();}}}}return x;},namespace:function(){var x=arguments,B=this,z=0,y,A,w;for(;z<x.length;z++){w=x[z];if(w.indexOf(h)){A=w.split(h);for(y=(A[0]=="YAHOO")?1:0;y<A.length;y++){B[A[y]]=B[A[y]]||{};B=B[A[y]];}}else{B[w]=B[w]||{};}}return B;},log:l,message:l,error:function(A,y,x){var z=this,w;if(z.config.errorFn){w=z.config.errorFn.apply(z,arguments);}if(z.config.thro
 wFail&&!w){throw (y||new Error(A));}else{z.message(A,"error");}return z;},guid:function(w){var x=this.Env._guidp+(++this.Env._uidx);return(w)?(w+x):x;},stamp:function(y,z){var w;if(!y){return y;}if(y.uniqueID&&y.nodeType&&y.nodeType!==9){w=y.uniqueID;}else{w=(typeof y==="string")?y:y._yuid;}if(!w){w=this.guid();if(!z){try{y._yuid=w;}catch(x){w=null;}}}return w;},destroy:function(){var w=this;if(w.Event){w.Event._unload();}delete c[w.id];delete w.Env;delete w.config;}};YUI.prototype=p;for(b in p){if(p.hasOwnProperty(b)){YUI[b]=p[b];}}YUI._init();if(f){m(window,"load",s);}else{s();}YUI.Env.add=m;YUI.Env.remove=u;if(typeof exports=="object"){exports.YUI=YUI;}}());YUI.add("yui-base",function(c){c.Lang=c.Lang||{};var k=c.Lang,B="array",p="boolean",f="date",g="error",i="function",t="number",A="null",n="object",y="regexp",r="string",s=String.prototype,m=Object.prototype.toString,D="undefined",b={"undefined":D,"number":t,"boolean":p,"string":r,"[object Function]":i,"[object RegExp]"
 :y,"[object Array]":B,"[object Date]":f,"[object Error]":g},x=/^\s+|\s+$/g,z="",e=/\{\s*([^\|\}]+?)\s*(?:\|([^\}]*))?\s*\}/g;k.isArray=function(E){return k.type(E)===B;};k.isBoolean=function(E){return typeof E===p;};k.isFunction=function(E){return k.type(E)===i;};k.isDate=function(E){return k.type(E)===f&&E.toString()!=="Invalid Date"&&!isNaN(E);};k.isNull=function(E){return E===null;};k.isNumber=function(E){return typeof E===t&&isFinite(E);};k.isObject=function(G,F){var E=typeof G;return(G&&(E===n||(!F&&(E===i||k.isFunction(G)))))||false;};k.isString=function(E){return typeof E===r;};k.isUndefined=function(E){return typeof E===D;};k.trim=s.trim?function(E){return(E&&E.trim)?E.trim():E;}:function(E){try{return E.replace(x,z);}catch(F){return E;}};k.trimLeft=s.trimLeft?function(E){return E.trimLeft();}:function(E){return E.replace(/^\s+/,"");};k.trimRight=s.trimRight?function(E){return E.trimRight();}:function(E){return E.replace(/\s+$/,"");};k.isValue=function(F){var E=k.typ
 e(F);switch(E){case t:return isFinite(F);case A:case D:return false;default:return !!(E);}};k.type=function(E){return b[typeof E]||b[m.call(E)]||(E?n:A);};k.sub=function(E,F){return((E.replace)?E.replace(e,function(G,H){return(!k.isUndefined(F[H]))?F[H]:G;}):E);};k.now=Date.now||function(){return new Date().getTime();};var u=Array.prototype,w="length",l=function(K,I,G){var H=(G)?2:l.test(K),F,E,L=I||0;if(H){try{return u.slice.call(K,L);}catch(J){E=[];F=K.length;for(;L<F;L++){E.push(K[L]);}return E;}}else{return[K];}};c.Array=l;l.test=function(G){var E=0;if(c.Lang.isObject(G)){if(c.Lang.isArray(G)){E=1;}else{try{if((w in G)&&!G.tagName&&!G.alert&&!G.apply){E=2;}}catch(F){}}}return E;};l.each=(u.forEach)?function(E,F,G){u.forEach.call(E||[],F,G||c);return c;}:function(F,H,I){var E=(F&&F.length)||0,G;for(G=0;G<E;G=G+1){H.call(I||c,F[G],G,F);}return c;};l.hash=function(G,F){var J={},E=G.length,I=F&&F.length,H;for(H=0;H<E;H=H+1){J[G[H]]=(I&&I>H)?F[H]:true;}return J;};l.indexOf=(u
 .indexOf)?function(E,F){return u.indexOf.call(E,F);}:function(E,G){for(var F=0;F<E.length;F=F+1){if(E[F]===G){return F;}}return -1;};l.numericSort=function(F,E){return(F-E);};l.some=(u.some)?function(E,F,G){return u.some.call(E,F,G);}:function(F,H,I){var E=F.length,G;for(G=0;G<E;G=G+1){if(H.call(I,F[G],G,F)){return true;}}return false;};function C(){this._init();this.add.apply(this,arguments);}C.prototype={_init:function(){this._q=[];},next:function(){return this._q.shift();},last:function(){return this._q.pop();},add:function(){this._q.push.apply(this._q,arguments);return this;},size:function(){return this._q.length;}};c.Queue=C;YUI.Env._loaderQueue=YUI.Env._loaderQueue||new C();var o="__",a=function(G,F){var E=F.toString;if(c.Lang.isFunction(E)&&E!=Object.prototype.toString){G.toString=E;}};c.merge=function(){var F=arguments,H={},G,E=F.length;for(G=0;G<E;G=G+1){c.mix(H,F[G],true);}return H;};c.mix=function(E,N,G,M,J,L){if(!N||!E){return E||c;}if(J){switch(J){case 1:return 
 c.mix(E.prototype,N.prototype,G,M,0,L);case 2:c.mix(E.prototype,N.prototype,G,M,0,L);break;case 3:return c.mix(E,N.prototype,G,M,0,L);case 4:return c.mix(E.prototype,N,G,M,0,L);default:}}var I,H,F,K;if(M&&M.length){for(I=0,H=M.length;I<H;++I){F=M[I];K=c.Lang.type(E[F]);if(N.hasOwnProperty(F)){if(L&&K=="object"){c.mix(E[F],N[F]);}else{if(G||!(F in E)){E[F]=N[F];}}}}}else{for(I in N){if(N.hasOwnProperty(I)){if(L&&c.Lang.isObject(E[I],true)){c.mix(E[I],N[I],G,M,0,true);}else{if(G||!(I in E)){E[I]=N[I];}}}}if(c.UA.ie){a(E,N);}}return E;};c.cached=function(G,E,F){E=E||{};return function(I){var H=(arguments.length>1)?Array.prototype.join.call(arguments,o):I;if(!(H in E)||(F&&E[H]==F)){E[H]=G.apply(G,arguments);}return E[H];};};var q=function(){},h=function(E){q.prototype=E;return new q();},j=function(F,E){return F&&F.hasOwnProperty&&F.hasOwnProperty(E);},v,d=function(I,H){var G=(H===2),E=(G)?0:[],F;for(F in I){if(j(I,F)){if(G){E++;}else{E.push((H)?I[F]:F);}}}return E;};c.Object=h;
 h.keys=function(E){return d(E);};h.values=function(E){return d(E,1);
+};h.size=Object.size||function(E){return d(E,2);};h.hasKey=j;h.hasValue=function(F,E){return(c.Array.indexOf(h.values(F),E)>-1);};h.owns=j;h.each=function(I,H,J,G){var F=J||c,E;for(E in I){if(G||j(I,E)){H.call(F,I[E],E,I);}}return c;};h.some=function(I,H,J,G){var F=J||c,E;for(E in I){if(G||j(I,E)){if(H.call(F,I[E],E,I)){return true;}}}return false;};h.getValue=function(I,H){if(!c.Lang.isObject(I)){return v;}var F,G=c.Array(H),E=G.length;for(F=0;I!==v&&F<E;F++){I=I[G[F]];}return I;};h.setValue=function(K,I,J){var E,H=c.Array(I),G=H.length-1,F=K;if(G>=0){for(E=0;F!==v&&E<G;E++){F=F[H[E]];}if(F!==v){F[H[E]]=J;}else{return v;}}return K;};h.isEmpty=function(F){for(var E in F){if(j(F,E)){return false;}}return true;};YUI.Env.parseUA=function(K){var J=function(N){var O=0;return parseFloat(N.replace(/\./g,function(){return(O++==1)?"":".";}));},M=c.config.win,E=M&&M.navigator,H={ie:0,opera:0,gecko:0,webkit:0,chrome:0,mobile:null,air:0,ipad:0,iphone:0,ipod:0,ios:null,android:0,webos:0,
 caja:E&&E.cajaVersion,secure:false,os:null},F=K||E&&E.userAgent,L=M&&M.location,G=L&&L.href,I;H.secure=G&&(G.toLowerCase().indexOf("https")===0);if(F){if((/windows|win32/i).test(F)){H.os="windows";}else{if((/macintosh/i).test(F)){H.os="macintosh";}else{if((/rhino/i).test(F)){H.os="rhino";}}}if((/KHTML/).test(F)){H.webkit=1;}I=F.match(/AppleWebKit\/([^\s]*)/);if(I&&I[1]){H.webkit=J(I[1]);if(/ Mobile\//.test(F)){H.mobile="Apple";I=F.match(/OS ([^\s]*)/);if(I&&I[1]){I=J(I[1].replace("_","."));}H.ios=I;H.ipad=H.ipod=H.iphone=0;I=F.match(/iPad|iPod|iPhone/);if(I&&I[0]){H[I[0].toLowerCase()]=H.ios;}}else{I=F.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/);if(I){H.mobile=I[0];}if(/webOS/.test(F)){H.mobile="WebOS";I=F.match(/webOS\/([^\s]*);/);if(I&&I[1]){H.webos=J(I[1]);}}if(/ Android/.test(F)){H.mobile="Android";I=F.match(/Android ([^\s]*);/);if(I&&I[1]){H.android=J(I[1]);}}}I=F.match(/Chrome\/([^\s]*)/);if(I&&I[1]){H.chrome=J(I[1]);}else{I=F.match(/AdobeAIR\/([^\s]*)/);if(I){H
 .air=I[0];}}}if(!H.webkit){I=F.match(/Opera[\s\/]([^\s]*)/);if(I&&I[1]){H.opera=J(I[1]);I=F.match(/Opera Mini[^;]*/);if(I){H.mobile=I[0];}}else{I=F.match(/MSIE\s([^;]*)/);if(I&&I[1]){H.ie=J(I[1]);}else{I=F.match(/Gecko\/([^\s]*)/);if(I){H.gecko=1;I=F.match(/rv:([^\s\)]*)/);if(I&&I[1]){H.gecko=J(I[1]);}}}}}}YUI.Env.UA=H;return H;};c.UA=YUI.Env.UA||YUI.Env.parseUA();},"3.3.0");YUI.add("get",function(f){var b=f.UA,a=f.Lang,d="text/javascript",e="text/css",c="stylesheet";f.Get=function(){var m,n,j,l={},k=0,u,w=function(A,x,B){var y=B||f.config.win,C=y.document,D=C.createElement(A),z;for(z in x){if(x[z]&&x.hasOwnProperty(z)){D.setAttribute(z,x[z]);}}return D;},t=function(y,z,x){var A={id:f.guid(),type:e,rel:c,href:y};if(x){f.mix(A,x);}return w("link",A,z);},s=function(y,z,x){var A={id:f.guid(),type:d};if(x){f.mix(A,x);}A.src=y;return w("script",A,z);},p=function(y,z,x){return{tId:y.tId,win:y.win,data:y.data,nodes:y.nodes,msg:z,statusText:x,purge:function(){n(this.tId);}};},o=func
 tion(B,A,x){var y=l[B],z;if(y&&y.onEnd){z=y.context||y;y.onEnd.call(z,p(y,A,x));}},v=function(A,z){var x=l[A],y;if(x.timer){clearTimeout(x.timer);}if(x.onFailure){y=x.context||x;x.onFailure.call(y,p(x,z));}o(A,z,"failure");},i=function(A){var x=l[A],z,y;if(x.timer){clearTimeout(x.timer);}x.finished=true;if(x.aborted){z="transaction "+A+" was aborted";v(A,z);return;}if(x.onSuccess){y=x.context||x;x.onSuccess.call(y,p(x));}o(A,z,"OK");},q=function(z){var x=l[z],y;if(x.onTimeout){y=x.context||x;x.onTimeout.call(y,p(x));}o(z,"timeout","timeout");},h=function(z,C){var y=l[z],B,G,F,D,A,x,H,E;if(y.timer){clearTimeout(y.timer);}if(y.aborted){B="transaction "+z+" was aborted";v(z,B);return;}if(C){y.url.shift();if(y.varName){y.varName.shift();}}else{y.url=(a.isString(y.url))?[y.url]:y.url;if(y.varName){y.varName=(a.isString(y.varName))?[y.varName]:y.varName;}}G=y.win;F=G.document;D=F.getElementsByTagName("head")[0];if(y.url.length===0){i(z);return;}x=y.url[0];if(!x){y.url.shift();retu
 rn h(z);}if(y.timeout){y.timer=setTimeout(function(){q(z);},y.timeout);}if(y.type==="script"){A=s(x,G,y.attributes);}else{A=t(x,G,y.attributes);}j(y.type,A,z,x,G,y.url.length);y.nodes.push(A);E=y.insertBefore||F.getElementsByTagName("base")[0];if(E){H=m(E,z);if(H){H.parentNode.insertBefore(A,H);}}else{D.appendChild(A);}if((b.webkit||b.gecko)&&y.type==="css"){h(z,x);}},g=function(){if(u){return;}u=true;var x,y;for(x in l){if(l.hasOwnProperty(x)){y=l[x];if(y.autopurge&&y.finished){n(y.tId);delete l[x];}}}u=false;},r=function(y,x,z){z=z||{};var C="q"+(k++),A,B=z.purgethreshold||f.Get.PURGE_THRESH;if(k%B===0){g();}l[C]=f.merge(z,{tId:C,type:y,url:x,finished:false,nodes:[]});A=l[C];A.win=A.win||f.config.win;A.context=A.context||A;A.autopurge=("autopurge" in A)?A.autopurge:(y==="script")?true:false;A.attributes=A.attributes||{};A.attributes.charset=z.charset||A.attributes.charset||"utf-8";h(C);return{tId:C};};j=function(z,E,D,y,C,B,x){var A=x||h;if(b.ie){E.onreadystatechange=funct
 ion(){var F=this.readyState;if("loaded"===F||"complete"===F){E.onreadystatechange=null;A(D,y);}};}else{if(b.webkit){if(z==="script"){E.addEventListener("load",function(){A(D,y);});}}else{E.onload=function(){A(D,y);};E.onerror=function(F){v(D,F+": "+y);};}}};m=function(x,A){var y=l[A],z=(a.isString(x))?y.win.document.getElementById(x):x;if(!z){v(A,"target node not found: "+x);}return z;};n=function(C){var y,A,G,D,H,B,z,F,E,x=l[C];if(x){y=x.nodes;A=y.length;G=x.win.document;D=G.getElementsByTagName("head")[0];E=x.insertBefore||G.getElementsByTagName("base")[0];if(E){H=m(E,C);if(H){D=H.parentNode;}}for(B=0;B<A;B=B+1){z=y[B];if(z.clearAttributes){z.clearAttributes();}else{for(F in z){if(z.hasOwnProperty(F)){delete z[F];}}}D.removeChild(z);}}x.nodes=[];};return{PURGE_THRESH:20,_finalize:function(x){setTimeout(function(){i(x);},0);},abort:function(y){var z=(a.isString(y))?y:y.tId,x=l[z];if(x){x.aborted=true;}},script:function(x,y){return r("script",x,y);},css:function(x,y){return 
 r("css",x,y);}};}();},"3.3.0",{requires:["yui-base"]});YUI.add("features",function(b){var c={};
+b.mix(b.namespace("Features"),{tests:c,add:function(d,e,f){c[d]=c[d]||{};c[d][e]=f;},all:function(e,f){var g=c[e],d="";if(g){b.Object.each(g,function(i,h){d+=h+":"+(b.Features.test(e,h,f)?1:0)+";";});}return d;},test:function(e,g,f){f=f||[];var d,i,k,j=c[e],h=j&&j[g];if(!h){}else{d=h.result;if(b.Lang.isUndefined(d)){i=h.ua;if(i){d=(b.UA[i]);}k=h.test;if(k&&((!i)||d)){d=k.apply(b,f);}h.result=d;}}return d;}});var a=b.Features.add;a("load","0",{"test":function(d){return !(d.UA.ios||d.UA.android);},"trigger":"autocomplete-list"});a("load","1",{"test":function(j){var h=j.Features.test,i=j.Features.add,f=j.config.win,g=j.config.doc,d="documentElement",e=false;i("style","computedStyle",{test:function(){return f&&"getComputedStyle" in f;}});i("style","opacity",{test:function(){return g&&"opacity" in g[d].style;}});e=(!h("style","opacity")&&!h("style","computedStyle"));return e;},"trigger":"dom-style"});a("load","2",{"trigger":"widget-base","ua":"ie"});a("load","3",{"test":function(
 e){var d=e.config.doc&&e.config.doc.implementation;return(d&&(!d.hasFeature("Events","2.0")));},"trigger":"node-base"});a("load","4",{"test":function(d){return(d.config.win&&("ontouchstart" in d.config.win&&!d.UA.chrome));},"trigger":"dd-drag"});a("load","5",{"test":function(e){var d=e.config.doc.documentMode;return e.UA.ie&&(!("onhashchange" in e.config.win)||!d||d<8);},"trigger":"history-hash"});},"3.3.0",{requires:["yui-base"]});YUI.add("rls",function(a){a._rls=function(g){var d=a.config,f=d.rls||{m:1,v:a.version,gv:d.gallery,env:1,lang:d.lang,"2in3v":d["2in3"],"2v":d.yui2,filt:d.filter,filts:d.filters,tests:1},b=d.rls_base||"load?",e=d.rls_tmpl||function(){var h="",i;for(i in f){if(i in f&&f[i]){h+=i+"={"+i+"}&";}}return h;}(),c;f.m=g;f.env=a.Object.keys(YUI.Env.mods);f.tests=a.Features.all("load",[a]);c=a.Lang.sub(b+e,f);d.rls=f;d.rls_tmpl=e;return c;};},"3.3.0",{requires:["get","features"]});YUI.add("intl-base",function(b){var a=/[, ]/;b.mix(b.namespace("Intl"),{lookup
 BestLang:function(g,h){var f,j,c,e;function d(l){var k;for(k=0;k<h.length;k+=1){if(l.toLowerCase()===h[k].toLowerCase()){return h[k];}}}if(b.Lang.isString(g)){g=g.split(a);}for(f=0;f<g.length;f+=1){j=g[f];if(!j||j==="*"){continue;}while(j.length>0){c=d(j);if(c){return c;}else{e=j.lastIndexOf("-");if(e>=0){j=j.substring(0,e);if(e>=2&&j.charAt(e-2)==="-"){j=j.substring(0,e-2);}}else{break;}}}}return"";}});},"3.3.0",{requires:["yui-base"]});YUI.add("yui-log",function(d){var c=d,e="yui:log",a="undefined",b={debug:1,info:1,warn:1,error:1};c.log=function(j,s,g,q){var l,p,n,k,o,i=c,r=i.config,h=(i.fire)?i:YUI.Env.globalEvents;if(r.debug){if(g){p=r.logExclude;n=r.logInclude;if(n&&!(g in n)){l=1;}else{if(p&&(g in p)){l=1;}}}if(!l){if(r.useBrowserConsole){k=(g)?g+": "+j:j;if(i.Lang.isFunction(r.logFn)){r.logFn.call(i,j,s,g);}else{if(typeof console!=a&&console.log){o=(s&&console[s]&&(s in b))?s:"log";console[o](k);}else{if(typeof opera!=a){opera.postError(k);}}}}if(h&&!q){if(h==i&&(!h.
 getEvent(e))){h.publish(e,{broadcast:2});}h.fire(e,{msg:j,cat:s,src:g});}}}return i;};c.message=function(){return c.log.apply(c,arguments);};},"3.3.0",{requires:["yui-base"]});YUI.add("yui-later",function(a){a.later=function(c,i,d,h,g){c=c||0;var b=d,e,j;if(i&&a.Lang.isString(d)){b=i[d];}e=!a.Lang.isUndefined(h)?function(){b.apply(i,a.Array(h));}:function(){b.call(i);};j=(g)?setInterval(e,c):setTimeout(e,c);return{id:j,interval:g,cancel:function(){if(this.interval){clearInterval(j);}else{clearTimeout(j);}}};};a.Lang.later=a.later;},"3.3.0",{requires:["yui-base"]});YUI.add("yui-throttle",function(a){
+/*! Based on work by Simon Willison: http://gist.github.com/292562 */
+a.throttle=function(c,b){b=(b)?b:(a.config.throttleTime||150);if(b===-1){return(function(){c.apply(null,arguments);});}var d=a.Lang.now();return(function(){var e=a.Lang.now();if(e-d>b){d=e;c.apply(null,arguments);}});};},"3.3.0",{requires:["yui-base"]});YUI.add("yui",function(a){},"3.3.0",{use:["yui-base","get","features","rls","intl-base","yui-log","yui-later","yui-throttle"]});
\ No newline at end of file

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/scripts/yui-min.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/controls.css
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/controls.css?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/controls.css (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/controls.css Fri Jun 24 13:31:43 2011
@@ -0,0 +1,168 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+ 
+ /* css to make accessibility controls look betterer. */
+
+#accessibility_controls .access-button {
+  display: inline-block;
+  vertical-align: middle;
+  margin: 0 .2em;
+  border: 1px solid #ccc;
+  border-radius: 3px;
+  font-size: 1em;
+  width: 2em;
+  line-height: 2em;
+  text-align: center;
+}
+#accessibility_controls .access-button.disabled {
+  border: 1px solid #eee;
+  color: #ccc;
+}
+
+#accessibility_controls .access-button a {
+  display: block;
+  cursor: hand;
+  border-radius: 2px;
+  
+  background: -moz-linear-gradient(top, rgba(254,255,232,0) 0%, rgba(214,219,191,0.3) 100%); /* FF3.6+ */
+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(254,255,232,0)), color-stop(100%,rgba(214,219,191,0.3))); /* Chrome,Safari4+ */
+background: -webkit-linear-gradient(top, rgba(254,255,232,0) 0%,rgba(214,219,191,0.3) 100%); /* Chrome10+,Safari5.1+ */
+background: -o-linear-gradient(top, rgba(254,255,232,0) 0%,rgba(214,219,191,0.3) 100%); /* Opera11.10+ */
+background: -ms-linear-gradient(top, rgba(254,255,232,0) 0%,rgba(214,219,191,0.3) 100%); /* IE10+ */
+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00feffe8', endColorstr='#4dd6dbbf',GradientType=0 ); /* IE6-9 */
+background: linear-gradient(top, rgba(254,255,232,0) 0%,rgba(214,219,191,0.3) 100%); /* W3C */
+
+}
+#accessibility_controls .access-button a:hover {
+  
+  background: -moz-linear-gradient(top, rgba(254,255,232,0) 0%, rgba(214,219,191,0.5) 50%); /* FF3.6+ */
+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(254,255,232,0)), color-stop(50%,rgba(214,219,191,0.5))); /* Chrome,Safari4+ */
+background: -webkit-linear-gradient(top, rgba(254,255,232,0) 0%,rgba(214,219,191,0.5) 50%); /* Chrome10+,Safari5.1+ */
+background: -o-linear-gradient(top, rgba(254,255,232,0) 0%,rgba(214,219,191,0.5) 50%); /* Opera11.10+ */
+background: -ms-linear-gradient(top, rgba(254,255,232,0) 0%,rgba(214,219,191,0.5) 50%); /* IE10+ */
+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00feffe8', endColorstr='#80d6dbbf',GradientType=0 ); /* IE6-9 */
+background: linear-gradient(top, rgba(254,255,232,0) 0%,rgba(214,219,191,0.5) 50%); /* W3C */
+}
+
+#accessibility_controls .access-button a#block_accessibility_colour2 {
+
+  
+  background: rgb(255,255,204); /* Old browsers */
+background: -moz-linear-gradient(top, rgba(255,255,204,1) 0%, rgba(242,242,145,1) 100%); /* FF3.6+ */
+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,204,1)), color-stop(100%,rgba(242,242,145,1))); /* Chrome,Safari4+ */
+background: -webkit-linear-gradient(top, rgba(255,255,204,1) 0%,rgba(242,242,145,1) 100%); /* Chrome10+,Safari5.1+ */
+background: -o-linear-gradient(top, rgba(255,255,204,1) 0%,rgba(242,242,145,1) 100%); /* Opera11.10+ */
+background: -ms-linear-gradient(top, rgba(255,255,204,1) 0%,rgba(242,242,145,1) 100%); /* IE10+ */
+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffcc', endColorstr='#f2f291',GradientType=0 ); /* IE6-9 */
+background: linear-gradient(top, rgba(255,255,204,1) 0%,rgba(242,242,145,1) 100%); /* W3C */
+}
+#accessibility_controls .access-button a#block_accessibility_colour2:hover {
+  
+  background: -moz-linear-gradient(top, rgba(255,255,204,1) 0%, rgba(229,229,103,1) 50%, rgba(229,229,103,0.9) 51%); /* FF3.6+ */
+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,204,1)), color-stop(50%,rgba(229,229,103,1)), color-stop(51%,rgba(229,229,103,0.9))); /* Chrome,Safari4+ */
+background: -webkit-linear-gradient(top, rgba(255,255,204,1) 0%,rgba(229,229,103,1) 50%,rgba(229,229,103,0.9) 51%); /* Chrome10+,Safari5.1+ */
+background: -o-linear-gradient(top, rgba(255,255,204,1) 0%,rgba(229,229,103,1) 50%,rgba(229,229,103,0.9) 51%); /* Opera11.10+ */
+background: -ms-linear-gradient(top, rgba(255,255,204,1) 0%,rgba(229,229,103,1) 50%,rgba(229,229,103,0.9) 51%); /* IE10+ */
+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffcc', endColorstr='#e6e5e567',GradientType=0 ); /* IE6-9 */
+background: linear-gradient(top, rgba(255,255,204,1) 0%,rgba(229,229,103,1) 50%,rgba(229,229,103,0.9) 51%); /* W3C */
+}
+#accessibility_controls .access-button a#block_accessibility_colour3 {
+
+  
+  background: rgb(153,204,255); /* Old browsers */
+background: -moz-linear-gradient(top, rgba(153,204,255,1) 0%, rgba(91,160,229,1) 100%); /* FF3.6+ */
+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(153,204,255,1)), color-stop(100%,rgba(91,160,229,1))); /* Chrome,Safari4+ */
+background: -webkit-linear-gradient(top, rgba(153,204,255,1) 0%,rgba(91,160,229,1) 100%); /* Chrome10+,Safari5.1+ */
+background: -o-linear-gradient(top, rgba(153,204,255,1) 0%,rgba(91,160,229,1) 100%); /* Opera11.10+ */
+background: -ms-linear-gradient(top, rgba(153,204,255,1) 0%,rgba(91,160,229,1) 100%); /* IE10+ */
+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99ccff', endColorstr='#5ba0e5',GradientType=0 ); /* IE6-9 */
+background: linear-gradient(top, rgba(153,204,255,1) 0%,rgba(91,160,229,1) 100%); /* W3C */
+}
+#accessibility_controls .access-button a#block_accessibility_colour3:hover {
+  
+  background: rgb(153,204,255); /* Old browsers */
+background: -moz-linear-gradient(top, rgba(153,204,255,1) 0%, rgba(86,151,216,1) 50%); /* FF3.6+ */
+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(153,204,255,1)), color-stop(50%,rgba(86,151,216,1))); /* Chrome,Safari4+ */
+background: -webkit-linear-gradient(top, rgba(153,204,255,1) 0%,rgba(86,151,216,1) 50%); /* Chrome10+,Safari5.1+ */
+background: -o-linear-gradient(top, rgba(153,204,255,1) 0%,rgba(86,151,216,1) 50%); /* Opera11.10+ */
+background: -ms-linear-gradient(top, rgba(153,204,255,1) 0%,rgba(86,151,216,1) 50%); /* IE10+ */
+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#99ccff', endColorstr='#5697d8',GradientType=0 ); /* IE6-9 */
+background: linear-gradient(top, rgba(153,204,255,1) 0%,rgba(86,151,216,1) 50%); /* W3C */
+}
+#accessibility_controls .access-button a#block_accessibility_colour4 {
+
+  
+  background: rgb(0,0,0); /* Old browsers */
+background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(102,102,102,1) 100%); /* FF3.6+ */
+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,1)), color-stop(100%,rgba(102,102,102,1))); /* Chrome,Safari4+ */
+background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(102,102,102,1) 100%); /* Chrome10+,Safari5.1+ */
+background: -o-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(102,102,102,1) 100%); /* Opera11.10+ */
+background: -ms-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(102,102,102,1) 100%); /* IE10+ */
+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#666666',GradientType=0 ); /* IE6-9 */
+background: linear-gradient(top, rgba(0,0,0,1) 0%,rgba(102,102,102,1) 100%); /* W3C */
+    color: #ff0 !important;
+}
+#accessibility_controls .access-button a#block_accessibility_colour4:hover {
+  
+  background: rgb(0,0,0); /* Old browsers */
+background: -moz-linear-gradient(top, rgba(0,0,0,1) 0%, rgba(178,178,178,1) 100%); /* FF3.6+ */
+background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,1)), color-stop(100%,rgba(178,178,178,1))); /* Chrome,Safari4+ */
+background: -webkit-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(178,178,178,1) 100%); /* Chrome10+,Safari5.1+ */
+background: -o-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(178,178,178,1) 100%); /* Opera11.10+ */
+background: -ms-linear-gradient(top, rgba(0,0,0,1) 0%,rgba(178,178,178,1) 100%); /* IE10+ */
+filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#b2b2b2',GradientType=0 ); /* IE6-9 */
+background: linear-gradient(top, rgba(0,0,0,1) 0%,rgba(178,178,178,1) 100%); /* W3C */
+}
+
+#accessibility_controls .access-button a:active, #accessibility_controls .access-button a:focus {
+  border: 1px solid #F24602
+}
+
+
+
+#accessibility_controls .access-button img {
+  vertical-align: middle;
+}
+
+#accessibility_controls input {
+  margin: 0 .2em;
+}
+
+#accessibility_controls ul {
+  list-style: none;
+  margin: .4em 0;
+  padding: 0;
+  padding-right: 2em;
+}
+
+#accessibility_controls li {
+  
+}
+#block_accessibility_dec {
+    font-size: 12px !important;
+}
+
+#block_accessibility_inc {
+    font-size: 20px !important;
+
+}
+
+#wookie-widget .access-button {
+    cursor: pointer;
+}

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/controls.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/screen.css
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/screen.css?rev=1139303&view=auto
==============================================================================
--- incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/screen.css (added)
+++ incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/screen.css Fri Jun 24 13:31:43 2011
@@ -0,0 +1,206 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+html, body {
+  height:100%; 
+  max-height:100%; 
+  padding:0; 
+  margin:0; 
+  border:0; 
+  font-family: "trebuchet ms", tahoma, verdana, arial, sans-serif;
+}
+
+#wookie-widget {
+	min-height:100%;
+    position:relative;
+}
+
+#wookie-toolbar {
+	background-color:#C0C0C0;
+    text-align:center;
+    font-size:75%;
+    height:16px;
+}
+
+#wookie-widget-icon {
+	float:left;
+}
+
+#wookie-content {
+    padding-bottom:1em;   /* Height of the footer */
+}
+
+#wookie-settings {
+	display:none;
+}
+
+#wookie-footer {
+	background-color:#C0C0C0;
+	position:absolute;
+    bottom:0;
+    width:100%;
+    font-size:75%;
+    text-align:center;
+    height:1.5em;   /* Height of the footer */
+}
+
+input.wookie-form-button {
+   font-size:9px;
+   font-family:Verdana,sans-serif;
+   font-weight:bold;
+   color:#fcfcfc;
+   background-color:#000000;
+   border-style:solid;
+   border-color:#cccccc;
+   border-width:1px;
+}
+
+body.jsdisabled #block_accessibility_launchtoolbar {
+    display: none;
+}
+/*
+#block_accessibility_textresize,  #block_accessibility_changecolour {
+    margin-left: auto;
+    margin-right: auto;
+    width: 160px;
+    height: 34px;
+}
+
+#block_accessibiltiy_textresize div, #block_accessibility_changecolour div {
+	display:inline;
+}
+
+#wookie-widget .outer {
+    width: 32px;
+    height: 32px;
+    border: 1px solid black;
+    color: black;
+    list-style: none;
+    display: table;
+    float: left;
+    cursor: pointer;
+    text-align: center;
+    overflow: hidden;
+    position: relative;
+    font-size: 16px !important;
+}
+
+#wookie-widget .outer {
+    background-color: #fcfcfc !important;
+color: #000 !important;
+}
+
+
+#wookie-widget .outer[id] {
+    display: table;
+    position: static;
+    list-style: none;
+}
+
+#wookie-widget .middle {
+    position: absolute;
+}
+
+#wookie-widget .middle[class] {
+    display: table-cell;
+    vertical-align: middle;
+    position: static;
+}*/
+
+#wookie-widget .inner {
+    position: relative;
+    top: 25%;
+    text-align:center;
+    vertical-align:center;
+    margin: 0;
+    padding: 0;
+}
+/*
+#block_accessibility_textresize .outer *:hover {
+    background-color: #9cf !important;
+    text-decoration:none;
+}
+
+#block_accessibility_textresize .inner {
+    background-color: inherit !important;
+
+}
+
+
+#block_accessibility_textresize .outer.disabled {
+    color: grey;
+    cursor: pointer;
+}
+
+#block_accessibility_textresize .outer.disabled:hover {
+    background-color: #fcfcfc !important;
+}
+
+
+#block_accessibility_dec {
+    font-size: 12px !important;
+}
+
+#block_accessibility_inc {
+    font-size: 20px !important;
+
+}
+
+#wookie-widget .right {
+    margin-left: 5px;
+}
+*/
+#wookie-widget .row {
+    margin-top: 5px;
+}/*
+
+#block_accessibility_changecolour .outer:hover {
+    font-weight: bold;
+}
+
+#wookie-widget .outer:hover {
+    text-decoration:none;
+}
+
+#block_accessibility_colour2 {
+    background-color: #ffc !important;
+}
+
+#block_accessibility_colour3 {
+    background-color: #9cf !important;
+}
+
+#block_accessibility_colour4 {
+    background-color: #000 !important;
+    color: #ff0 !important;
+}
+*/
+a.accessibility_colour4 {
+    color: #f00 !important;
+}
+
+#wookie-widget #requiresjavascript {
+    z-index: 10;
+    position: absolute;
+    color: rgba(0, 0, 0, 0); 
+}
+
+#wookie-widget #requiresjavascript:hover {
+    background-color: #fff;
+    color: rgba(0, 0, 0, 1); 
+}

Propchange: incubator/wookie/trunk/scratchpad/widgets/accessibility_controls/style/screen.css
------------------------------------------------------------------------------
    svn:eol-style = native